Time-series basics
In this chapter: Trends and seasonality · AR(1) models and stationarity · Forecasting from time-series
Time-series analysis decomposes data into trend, seasonality, and random noise. Stock prices are non-stationary (trending); stock returns are usually stationary. This distinction matters because regression and statistical inference assume stationarity. Master this reading and you understand why trying to "predict the next NIFTY value from past NIFTY values" rarely works — and what the right approach is.
Components of a time series: • Trend (T): long-term direction • Seasonality (S): regular cycles (quarterly retail spikes, monthly housing prices, etc.) • Cyclical (C): irregular medium-term patterns • Random noise (ε): unpredictable component Stationarity: statistical properties (mean, variance, autocorrelation) don't change over time. • Strictly stationary: full distribution doesn't change • Weakly stationary: mean, variance, and autocovariance don't change Most time-series analysis assumes weak stationarity. Stock prices: NOT stationary (trending). Stock returns: USUALLY stationary. AR(1) (autoregressive) model: Y_t = α + β · Y_{t−1} + ε_t Today's value depends on yesterday's value plus noise. If |β| < 1: mean-reverting. If |β| ≥ 1: explosive (non-stationary).
Stationarity tests (CFA L2 dives deeper): • Visual: plot data, look for constant mean and variance • Augmented Dickey-Fuller (ADF) test: tests for unit root (β = 1) • KPSS test: tests for stationarity directly If non-stationary: take first differences. ΔY_t = Y_t − Y_{t−1} For stock prices: P_t is non-stationary, but log returns r_t = ln(P_t / P_{t−1}) are usually stationary. This is why we model returns, not prices. AR(1) interpretation: • β > 0: positive autocorrelation (momentum) • β < 0: negative autocorrelation (mean-reversion) • β = 0: independent observations Indian RBI repo rate: high persistence (β ≈ 0.9-0.95) — past values strongly predict next. Indian inflation: moderate persistence (β ≈ 0.3-0.5). Daily stock returns: low persistence (β ≈ 0-0.1). Forecasting from AR(1): Y_{t+1} = α + β · Y_t. Long-run mean = α / (1 − β) for stationary series.
Practitioner traps in time-series: 1. Spurious regression: regress two non-stationary trending variables on each other → get high R² and significant β even when no real relationship. Always check stationarity before regressing. 2. Cointegration: two non-stationary series that move together — their linear combination IS stationary. Useful for pairs trading, cross-currency analysis. 3. Look-ahead bias: using information not available at time of decision. Backtests using "today's knowledge to predict yesterday" produce inflated returns. 4. Survivorship bias: time-series of "surviving" assets understates true average. If you analyse Indian large-cap stocks today, you exclude those that delisted, merged, or went bankrupt. 5. Selection bias: choosing time period that flatters the strategy. Backtesting only the bull market makes everything look good. CFA L1 introduces stationarity; L2 tests modelling; L3 applies in portfolio construction.
- CFA Institute Curriculum — Level 1, Quantitative Methods, Reading 8
- RBI publications on monetary-policy transmission
- BIS analysis of currency-rate persistence
- Regressing two non-stationary series — produces spurious results.
- Using stock prices (non-stationary) instead of returns (stationary) in regressions.
- Assuming AR(1) β is constant when regimes shift.
- Confusing autocorrelation with causation — AR(1) describes pattern, not mechanism.
- Backtesting on entire historical sample — should reserve out-of-sample data.
Frequently asked
Why are stock returns stationary but prices not?
Should I use AR(1) for forecasting stock returns?
What's cointegration?
Practice questions
Click each question to reveal the answer and explanation.
Q 1In AR(1) Y_t = α + βY_{t−1} + ε, the long-run mean (assuming stationarity) is:- (a)α
- (b)β
- (c)α/(1−β)
- (d)β/(1−α)
- (a)α
- (b)β
- (c)α/(1−β)
- (d)β/(1−α)
Q 2A time series with constant mean and variance over time is:- (a)Trending
- (b)Seasonal
- (c)Stationary
- (d)Cyclical
- (a)Trending
- (b)Seasonal
- (c)Stationary
- (d)Cyclical
Q 3For an AR(1) with β = 0.95, the half-life of shocks is closest to:- (a)1 period
- (b)5 periods
- (c)14 periods
- (d)50 periods
- (a)1 period
- (b)5 periods
- (c)14 periods
- (d)50 periods
Q 4Stock prices vs stock returns:- (a)Both are stationary
- (b)Both are non-stationary
- (c)Prices are non-stationary; returns are typically stationary
- (d)Prices are stationary; returns are not
- (a)Both are stationary
- (b)Both are non-stationary
- (c)Prices are non-stationary; returns are typically stationary
- (d)Prices are stationary; returns are not
Q 5A "spurious regression" is most likely when:- (a)Both variables are stationary
- (b)Both variables are non-stationary trending
- (c)There are too many observations
- (d)R² is low
- (a)Both variables are stationary
- (b)Both variables are non-stationary trending
- (c)There are too many observations
- (d)R² is low