Topics Covered
Contents
- 1. Time Series & Descriptive Measures
- 2. ACVF, ACF, PACF & Correlogram
- 3. Strong & Weak Stationarity, Ergodicity
- 4. General Linear Process & Wold Decomposition
- 5. Moving Average (MA) Process
- 6. Autoregressive (AR) Process
- 7. ARMA Process & Conditions
- 8. Yule–Walker Equations
- 9. Identification, Estimation, Order Selection
- 10. Forecasting
- 11. Non-stationary: Random Walk & ARIMA
- 12. Spectral Analysis
- 13. Periodogram
Topic Overview — What & Why
Unit VII deals with data observed over time — ordered observations exhibit temporal dependence that classical iid methods cannot handle. Time-series analysis builds models for this dependence and uses them to forecast.
- Time series & descriptive measures: components (trend, seasonality, cycle, irregular); sample autocovariance and autocorrelation summarise temporal dependence.
- ACVF, ACF, PACF, correlogram: the diagnostic plots that reveal structure — cut-off vs decay patterns identify MA vs AR.
- Strong & weak stationarity, ergodicity: stationarity ensures that statistical properties don't drift with time; ergodicity allows time-averages to estimate ensemble averages.
- General linear process & Wold decomposition: any stationary process equals a deterministic part plus an MA($\infty$) of innovations — foundation of linear time-series modelling.
- MA, AR, ARMA processes: three model families; stationarity (AR roots) and invertibility (MA roots) conditions must hold for usable models.
- Yule-Walker equations: link AR coefficients to autocorrelations; provide simple estimation method.
- Identification, estimation, order selection: Box-Jenkins methodology — identify $(p,q)$ from ACF/PACF, estimate, diagnose with Ljung-Box, select via AIC/BIC.
- Forecasting: minimum MSE prediction using past observations; forecast variance grows with horizon.
- Random walk & ARIMA: non-stationary cases (unit roots, integrated processes); differencing $d$ times to achieve stationarity.
- Spectral analysis & periodogram: view the series in the frequency domain; detect hidden periodicities and energy concentration. Spectral density is the Fourier transform of the autocovariance.
1. Time Series & Descriptive Measures
Why this section? Before any model, students must learn how time-series data differ from iid samples and how to describe them with sample autocovariance and autocorrelation.
Descriptive Measures
- Sample mean: $\bar Y=\tfrac{1}{T}\sum Y_t.$
- Sample variance: $c_0=\tfrac{1}{T}\sum(Y_t-\bar Y)^2.$
- Sample autocovariance: $c_k=\tfrac{1}{T}\sum_{t=k+1}^T(Y_t-\bar Y)(Y_{t-k}-\bar Y).$
- Sample ACF: $r_k=c_k/c_0.$
🌍 Where it's used in real life
- Tracking monthly sales.
- Daily temperature records.
- A stock's price history.
- Website traffic over time.
- Electricity-demand logs.
2. Autocovariance, ACF, PACF, Correlogram
Autocovariance Function (ACVF)
$$\gamma_k=\text{Cov}(Y_t,Y_{t+k})=E[(Y_t-\mu)(Y_{t+k}-\mu)],\quad \gamma_0=\sigma_Y^2.$$Autocorrelation Function (ACF)
$$\rho_k=\gamma_k/\gamma_0,\quad \rho_0=1,\,|\rho_k|\le 1.$$Partial ACF (PACF)
$\phi_{kk}$ = correlation between $Y_t$ and $Y_{t-k}$ removing effect of intermediate lags. Found via Yule–Walker equations.Correlogram
Plot of $\rho_k$ vs $k$. For white noise: $\rho_k=0$ for $k\ne 0$; $r_k\sim N(0,1/T)$ approximately. 95% bands: $\pm 1.96/\sqrt T.$Bartlett's Formula
For MA($q$): $\text{Var}(r_k)\approx \frac{1}{T}(1+2\sum_{i=1}^q\rho_i^2)$ for $k>q.$🌍 Where it's used in real life
- Detecting weekly or seasonal patterns in sales.
- Checking whether returns are predictable.
- Diagnosing the order of a forecasting model.
- Finding the lag structure in demand.
- Testing residuals for leftover pattern.
3. Stationarity & Ergodicity
Weak (covariance / second-order) stationary: $E(Y_t)=\mu$, $\text{Var}(Y_t)=\sigma^2<\infty,\,\gamma_k$ depends only on $k.$
Strong stationarity with finite second moments $\Rightarrow$ weak stationarity. Converse not true unless Gaussian.
Intuition. Stationarity is what makes a single observed series useful: because the statistical “rules” (mean, variance, autocorrelations) do not drift over time, we can pool information across time to estimate them. Without it, every time point would effectively be a sample of size one from a different distribution.
Ergodicity
A process is ergodic in mean if $\bar Y_T\xrightarrow{P}\mu$ as $T\to\infty.$ Sufficient: $\sum_{k=0}^\infty|\gamma_k|<\infty.$🌍 Where it's used in real life
- Checking a series is stable before modelling.
- Detecting a trend or drift in a process.
- Differencing data to prepare for forecasts.
- Monitoring process stability.
- Validating that time-averages are meaningful.
4. General Linear Process & Wold Decomposition
General Linear Process
$$Y_t=\mu+\sum_{j=0}^\infty\psi_j\varepsilon_{t-j},\quad \varepsilon_t\sim\text{WN}(0,\sigma^2),\,\sum\psi_j^2<\infty.$$Wold Decomposition
🌍 Where it's used in real life
- The foundation for ARMA modelling.
- Separating predictable from random parts.
- Signal-plus-noise decomposition.
- Understanding the limits of forecastability.
- Building linear forecasting models.
5. Moving Average (MA) Process
MA($q$): $$Y_t=\mu+\varepsilon_t+\theta_1\varepsilon_{t-1}+\cdots+\theta_q\varepsilon_{t-q}.$$
Properties
- Always stationary.
- $\gamma_0=\sigma^2(1+\sum\theta_j^2).$
- $\rho_k=0$ for $k>q$ — ACF cuts off at lag $q.$
- PACF tails off geometrically.
Invertibility
MA($q$) invertible if all roots of $\theta(B)=1+\theta_1 B+\cdots+\theta_q B^q$ lie outside unit circle. Then $\varepsilon_t=\sum\pi_j Y_{t-j}.$Intuition. Invertibility lets us rewrite the unobservable shock $\varepsilon_t$ as a convergent weighted sum of present and past observed values $Y_{t-j}$ — without it, forecasting is impossible. It also fixes identifiability: an MA(1) with parameter $\theta$ and one with $1/\theta$ have identical ACFs, and the invertibility requirement $|\theta|<1$ singles out the unique usable version.
🌍 Where it's used in real life
- Smoothing short-lived shocks in demand.
- Modelling noisy measurement series.
- Economic surprise/innovation effects.
- Filtering short-term quality signals.
- Modelling short-memory data.
6. Autoregressive (AR) Process
AR($p$): $$Y_t=\phi_1 Y_{t-1}+\cdots+\phi_p Y_{t-p}+\varepsilon_t.$$
Stationarity
AR($p$) stationary iff all roots of $\phi(B)=1-\phi_1 B-\cdots-\phi_p B^p$ lie outside unit circle.Properties
- ACF: tails off (geometric / damped sinusoidal).
- PACF: cuts off after lag $p.$
- For AR(1): $\rho_k=\phi^k,\,\gamma_0=\sigma^2/(1-\phi^2).$
🌍 Where it's used in real life
- Forecasting from recent past values.
- Persistence in interest rates and inflation.
- Predicting temperature or river flow.
- Modelling speech and audio.
- Inventory and demand forecasting.
7. ARMA Process & Conditions
ARMA($p,q$): $$\phi(B)Y_t=\theta(B)\varepsilon_t.$$
- Stationary iff roots of $\phi(B)=0$ outside unit circle.
- Invertible iff roots of $\theta(B)=0$ outside unit circle.
- Both ACF and PACF tail off.
MA($\infty$) Representation
$Y_t=\Psi(B)\varepsilon_t,\,\Psi(B)=\theta(B)/\phi(B).$AR($\infty$) Representation
$\Pi(B)Y_t=\varepsilon_t,\,\Pi(B)=\phi(B)/\theta(B).$🌍 Where it's used in real life
- General short-term sales and demand forecasts.
- Modelling economic indicators.
- Energy-load forecasting.
- Modelling correlated process data.
- Signal modelling in engineering.
8. Yule–Walker Equations
For AR($p$), multiplying by $Y_{t-k}$ and taking expectations: $$\rho_k=\phi_1\rho_{k-1}+\cdots+\phi_p\rho_{k-p},\quad k\ge 1.$$
Matrix form for first $p$ equations: $$\begin{pmatrix}\rho_1\\\vdots\\\rho_p\end{pmatrix}=\begin{pmatrix}1&\rho_1&\cdots&\rho_{p-1}\\\rho_1&1&\cdots&\rho_{p-2}\\\vdots&&\ddots&\\\rho_{p-1}&\cdots&\rho_1&1\end{pmatrix}\begin{pmatrix}\phi_1\\\vdots\\\phi_p\end{pmatrix}.$$ Solve to obtain Yule–Walker estimates of $\phi_j.$
🌍 Where it's used in real life
- Estimating AR coefficients for forecasts.
- Linear prediction in speech coding.
- Spectral estimation.
- Fitting autoregressive demand models.
- Radar and signal parameter estimation.
9. Identification, Estimation, Order Selection
| Process | ACF | PACF |
|---|---|---|
| White noise | 0 for all $k\ne 0$ | 0 for all $k\ne 0$ |
| AR($p$) | tails off | cuts off after lag $p$ |
| MA($q$) | cuts off after lag $q$ | tails off |
| ARMA($p,q$) | tails off | tails off |
Estimation
- Yule-Walker (AR).
- Method of Moments.
- Maximum Likelihood (assuming Gaussian).
- Conditional / Unconditional Least Squares.
Order Selection Criteria
$$\text{AIC}=-2\log L+2k,\qquad \text{BIC}=-2\log L+k\log T.$$ Minimize over $(p,q)$. BIC penalizes more heavily for large $T$ — chooses parsimonious models.Box–Jenkins Methodology
- Identification: examine ACF/PACF.
- Estimation.
- Diagnostic checking: residual ACF, Ljung–Box test $Q^*=T(T+2)\sum_{k=1}^h r_k^2/(T-k)\sim\chi^2_{h-p-q}.$
- Forecasting.
🌍 Where it's used in real life
- Choosing the right model with AIC/BIC.
- Box–Jenkins model building for sales.
- Avoiding over- and under-fitting.
- Residual diagnostics (Ljung–Box).
- Automated forecasting pipelines.
10. Forecasting
Minimum MSE forecast for $h$-step ahead: $\hat Y_t(h)=E(Y_{t+h}\mid \mathcal F_t).$ For ARMA in MA($\infty$) form: $$\hat Y_t(h)=\sum_{j=h}^\infty\psi_j\varepsilon_{t-j+h}.$$ Forecast error: $e_t(h)=\sum_{j=0}^{h-1}\psi_j\varepsilon_{t+h-j},\,V[e_t(h)]=\sigma^2\sum_{j=0}^{h-1}\psi_j^2.$
AR(1) Forecast
$\hat Y_t(h)=\phi^h Y_t.$ Variance $\sigma^2(1-\phi^{2h})/(1-\phi^2).$Exponential Smoothing (Holt–Winters)
Optimal under specific ARIMA: $\text{ETS}(A,N,N)\equiv\text{ARIMA}(0,1,1).$🌍 Where it's used in real life
- Next-quarter sales forecasts.
- Weather and rainfall prediction.
- Planning electricity demand.
- Inventory planning from demand forecasts.
- Staffing forecasts for call centres.
11. Non-stationary Time Series — Random Walk & ARIMA
Random Walk
$Y_t=Y_{t-1}+\varepsilon_t.$ Non-stationary: $\text{Var}(Y_t)=t\sigma^2\to\infty.$ With drift: $Y_t=\delta+Y_{t-1}+\varepsilon_t.$ First differences $\Delta Y_t=\varepsilon_t$ are stationary.ARIMA($p,d,q$)
$\phi(B)(1-B)^d Y_t=\theta(B)\varepsilon_t.$ Differencing $d$ times yields a stationary ARMA process.Tests for Unit Root
- Dickey-Fuller: $\Delta Y_t=\rho Y_{t-1}+\varepsilon_t,$ test $\rho=0.$
- Augmented DF: include lagged $\Delta Y$ terms.
- Phillips-Perron: nonparametric correction for serial correlation.
Parameter Estimation
After differencing, fit ARMA via MLE / least squares. Include constant if drift suspected.🌍 Where it's used in real life
- Modelling stock prices as a random walk.
- Forecasting GDP and inflation by differencing.
- Sales with a trend via ARIMA.
- Modelling exchange rates.
- Testing for unit roots in economics.
12. Spectral Analysis
Spectral Density
For stationary process with absolutely summable ACVF: $$f(\omega)=\frac{1}{2\pi}\sum_{k=-\infty}^\infty\gamma_k e^{-ik\omega},\quad\omega\in[-\pi,\pi].$$ Inverse: $\gamma_k=\int_{-\pi}^\pi f(\omega)e^{ik\omega}d\omega.$ $f(\omega)\ge 0,\,f(-\omega)=f(\omega).$White noise
$f(\omega)=\sigma^2/(2\pi)$ — flat.AR(1)
$f(\omega)=\frac{\sigma^2}{2\pi|1-\phi e^{-i\omega}|^2}=\frac{\sigma^2}{2\pi(1-2\phi\cos\omega+\phi^2)}.$MA(1)
$f(\omega)=\frac{\sigma^2}{2\pi}|1+\theta e^{-i\omega}|^2=\frac{\sigma^2}{2\pi}(1+2\theta\cos\omega+\theta^2).$ARMA
$f(\omega)=\frac{\sigma^2}{2\pi}\frac{|\theta(e^{-i\omega})|^2}{|\phi(e^{-i\omega})|^2}.$🌍 Where it's used in real life
- Finding cycles and periodicities in data.
- Vibration analysis of machinery.
- EEG and ECG frequency analysis.
- Detecting business cycles.
- Frequency content of audio signals.
13. Periodogram & Spectral Estimation
Periodogram
$$I(\omega_j)=\frac{1}{2\pi T}\left|\sum_{t=1}^T Y_t e^{-i\omega_j t}\right|^2,\quad \omega_j=2\pi j/T.$$ $E[I(\omega)]\to f(\omega)$ as $T\to\infty$, but $\text{Var}[I(\omega)]\not\to 0$ — inconsistent.Smoothed Periodogram
$\hat f(\omega)=\sum_k W_k I(\omega_{j+k})$ — average periodogram values over neighbouring frequencies. Window functions: Daniell, Bartlett, Parzen.Frequency Resolution vs Variance Trade-off
Wider window → lower variance but lower resolution.🌍 Where it's used in real life
- Detecting hidden seasonal cycles.
- Sunspot and climate cycle detection.
- Finding machinery fault frequencies.
- Tidal and astronomical periodicities.
- Signal periodicity in engineering.