Skip to content

Instantly share code, notes, and snippets.

@jforge
Last active January 26, 2021 09:27
Show Gist options
  • Select an option

  • Save jforge/91534dc192e829a622d918589bbb6fed to your computer and use it in GitHub Desktop.

Select an option

Save jforge/91534dc192e829a622d918589bbb6fed to your computer and use it in GitHub Desktop.
Calculate the rolling standard deviation of a time series
Python + Pandas:
https://stackoverflow.com/questions/27427618/how-can-i-simply-calculate-the-rolling-moving-variance-of-a-time-series-in-pytho
R:
https://campus.datacamp.com/courses/manipulating-time-series-data-with-xts-and-zoo-in-r/apply-and-aggregate-by-time?ex=11
https://cran.r-project.org/web/packages/PerformanceAnalytics/PerformanceAnalytics.pdf
Node.js:
https://nestedsoftware.com/2019/09/26/incremental-average-and-standard-deviation-with-sliding-window-470k.176143.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment