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/fb28ab0782c1e3aa072340e63a54523c to your computer and use it in GitHub Desktop.
Save SaremS/fb28ab0782c1e3aa072340e63a54523c to your computer and use it in GitHub Desktop.
import numpy as np
import matplotlib.pyplot as plt
np.random.seed(321)
white_noise = np.random.normal(size = (100))
seasonal_series = np.cumsum(white_noise.reshape((25,4)),0).reshape(-1)
plt.figure(figsize = (16,5))
plt.plot(seasonal_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