~/talk

Time Series Analysis with StatsModels

Talkat PyData Global 2024 · 2024-12-03..12-05· [python, machine-learning]
slides:none on file

Shows how to build time‑series models from first principles with pandas then switch to StatsModels: compute a 12‑month moving average, extract a repeated monthly seasonal_decompose pattern, fit additive vs multiplicative model, and build AR/MA/I(S) predictors and ARIMA-style forecasts. Uses EIA monthly renewable electricity (2001–present) and Our World in Data surface temperatures (1950–present). Seasonal decomposition captures most variance (R² ≈ 0.905 for electricity); solar projections consistently underpredict actual rapid growth.

AI-written summary · about

  1. 0:00Time series intro
  2. 5:44Seasonal decomposition basics
  3. 13:13Moving average trends
  4. 16:48Detrending and seasonal extraction
  5. 23:25Residual analysis and R-squared
  6. 28:35Seasonal decomposition recap
  7. 30:01Temperature data exercise
  8. 34:04Statsmodels auto decomposition
  9. 37:26Fetching temperature data
  10. 41:57Temperature data decomposition
  11. 46:58Multiplicative models intro
  12. 48:21Solar power setup
  13. 50:11Train-test split
  14. 51:23Multiplicative decomposition
  15. 54:00Quadratic trend modeling
  16. 57:33Plotting predictions
  17. 1:00:53Prediction accuracy
  18. 1:03:07Q&A
  19. 1:06:17ARIMA models intro
  20. 1:10:41Year-over-year differences
  21. 1:11:47Auto regression with lags
  22. 1:15:00AR model fit
  23. 1:17:31ARIMA moving average
  24. 1:19:36Combining AR and MA
  25. 1:21:01Reconstructing values
  26. 1:23:54ARIMA components
  27. 1:26:28Statsmodels ARIMA
  28. 1:27:10Summary and resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.