What is Time-Series Analysis (AR/MA)?
AR/MA time-series analysis, told as a story about an inspector who guesses tomorrow's harvest from the last few days' numbers and how far recent guesses missed.
The daily harvest count bounces around.The harvest count bounces every day — so the next day's count is hard to guess.
Just copying yesterday's number often misses.One prior day can't capture the ups and downs.
AR/MA time-series analysis estimates the next value from the last few days plus recent errors.The green dashed line is the forecast, bars are the real count — they never match exactly.
AR is a weighted sum of past values; MA corrects using recent errors.Combine AR and MA for ARMA; add seasonality for SARIMA.
Time-series forecasts are weak against sudden events.Time-series analysis reads ordinary days well — sudden events need separate planning.
AR/MA time-series analysis blends recent past values with weights to estimate what's next (AR), then corrects using how far recent forecasts missed (MA).
AR (AutoRegressive) models the current value as a linear combination of the past p values; MA (Moving Average) models it as a linear combination of past white-noise error terms. Together they form ARMA(p,q); differencing a non-stationary series to make it stationary gives ARIMA(p,d,q); adding seasonality gives SARIMA. The core assumption — that past patterns persist into the future — makes these models fragile against structural breaks like sudden events.
When grown-ups say it
- AR (AutoRegressive)
- A weighted sum of the last few days. Weights are estimated from data, often larger for recent values.
- MA (Moving Average)
- A correction from recent forecast errors. Multiplies how far off you were by a weight and feeds it into the next guess.
- Stationarity
- The assumption that the pattern doesn't shift over time. AR/MA only fits well when the pattern holds steady.
- Seasonality
- A pattern that repeats, like holidays or harvest season. If present, add a seasonal term as in SARIMA.
- Regression Assumptions
- The conditions that keep the scale hanging straight. Time series is a cousin of regression and shares similar conditions. → what keeps the scale hanging straight
- Unbiased Estimator
- A scale dial with no systematic tilt. How a forecast's coefficients are estimated is also checked for bias. → the dial with no systematic tilt
- Cross Validation
- Splitting into groups and testing in rotation. Time-series forecasts are cross-validated over past windows too. → see it in full
- Reinforcement Learning
- A sorter that learns from rewards instead of an answer key. A different style of learning from forecasting. → see it in full