Rolling market-exposure estimates with statsmodels
Published by statsmodels developers
This credits the original publisher. Better Loop membership or a shared assessment is not implied.
The public work
The notebook applies a 60-month rolling CAPM to technology-industry excess returns using Ken French’s factor and industry data. It displays coefficient tables, confidence-interval plots, and an expanding-window example.
What to notice
Check date alignment, missing windows and observation counts before interpreting a changing coefficient; a moving estimate is not evidence of an investable forecasting advantage.
Keep the context
Historical regression demonstration, with pointwise uncertainty. Live data downloads and package versions can change results. No realized investment performance or AI benefit is established.
AI use: Not reported in the source.
The inspected source does not report AI-assistant use by its authors.
A useful public example is not an assessment of a reader, a publisher or a Better Loop member.
Authored practice suggestion
Try the idea. Check your own work.
Use material you are allowed to work with. This suggestion is preparation; it does not record a completed task or an improvement.
A check to adapt
The selected window and independent regression agree within a stated tolerance; initial missing estimates remain missing, and the risk-free adjustment is explicit.
The notebook joins Minnesota household and county data, fits pooled, unpooled and hierarchical radon models, and displays posterior diagnostics and comparisons. The partial-pooling plots show how estimates change with county sample size.
Published byChris Fonnesbeck and contributors / PyMC
The tutorial concatenates NO2 and particulate-measurement tables, shows row-count checks, and joins station coordinates and parameter descriptions. Displayed tables trace how the measurement dataset gains metadata.
Using Australian quarterly beer-production data, the book compares mean, naïve, and seasonal-naïve forecasts against later observations. Its displayed example shows the seasonal baseline following the observed pattern more closely.
Published byRob J Hyndman and George Athanasopoulos / OTexts