Skip to content

Instantly share code, notes, and snippets.

@SaremS
Last active May 9, 2023 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SaremS/2f9293fb023ab49e8c164628ca404a97 to your computer and use it in GitHub Desktop.
Save SaremS/2f9293fb023ab49e8c164628ca404a97 to your computer and use it in GitHub Desktop.
import numpy as np
import matplotlib.pyplot as plt
np.random.seed(123)
white_noise = np.random.normal(size = (240))
integrated_series = np.cumsum(np.cumsum(white_noise.reshape((20,12)),0).reshape(-1))
plt.figure(figsize = (16,5))
plt.plot(integrated_series,color="blue")
plt.margins(x=0)
plt.grid(alpha=0.5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment