Classical Time Series — Course Guide

A matrix-first course in covariance-stationary processes, ARMA equations, linear prediction, likelihood, state space, and spectra.

Classical Time Series — Covariance, Operators, and Prediction

Course identity

This is a traditional statistical time-series course for advanced undergraduates and graduate students. Its central object is a stochastic process, not a collection of empirical forecasting recipes. Data examples are short simulations or hand-checkable numerical cases used to verify theory.

For a finite block,

Xn=(X1,,Xn),μn=E(Xn),Γn=Cov(Xn),\mathbf X_n=(X_1,\ldots,X_n)^\top,\qquad \boldsymbol\mu_n=E(\mathbf X_n),\qquad \Gamma_n=\operatorname{Cov}(\mathbf X_n),

the course repeatedly asks four questions:

  1. What structure must Γn\Gamma_n have?
  2. Which linear operator generates or transforms Xn\mathbf X_n?
  3. Which normal equations define an estimator or predictor?
  4. Which matrix recursion propagates uncertainty?
Whenever a scalar formula appears, identify its vector, matrix, and quadratic-form version. The scalar formula builds intuition; the matrix form reveals what generalises.

Preparation

You should already be able to:

  • calculate expectation, variance, covariance, and conditional expectation;
  • multiply partitioned matrices and solve Ax=b\mathbf A\mathbf x=\mathbf b;
  • interpret eigenvalues, positive definiteness, and a Cholesky factor;
  • use likelihood, least squares, and asymptotic standard errors;
  • read elementary R code.

If stationarity is unfamiliar, begin with the 30-minute preparation note.

Ten-minute diagnostic
  1. Why must every covariance matrix be positive semidefinite?
  2. If Γij=γ(ij)\Gamma_{ij}=\gamma(i-j), what pattern appears along each diagonal?
  3. What does ρ(F)<1\rho(F)<1 mean for powers FhF^h?
  4. Why is solving Γa=g\Gamma\mathbf a=\mathbf g preferable to computing Γ1\Gamma^{-1} explicitly?
  5. What does a Kalman update do when an observation is missing?

Answers: variances of all linear combinations are non-negative; the matrix is Toeplitz; the powers decay to zero; linear solves are more stable and efficient; it performs prediction but skips measurement correction.

Learning outcomes

By the end, you will be able to:

  • construct and test Toeplitz covariance matrices for stationary processes;
  • derive ARMA autocovariances from difference equations and lag polynomials;
  • move between AR(pp) equations, companion matrices, roots, and impulse responses;
  • obtain best linear predictors from projection normal equations;
  • derive Yule–Walker, conditional least-squares, and Gaussian-likelihood estimators;
  • express multivariate, seasonal, spectral, and state-space models with block matrices;
  • implement each derivation in base R and check dimensions, symmetry, eigenvalues, and numerical error;
  • explain which conclusions require Gaussianity and which use second moments only.

The matrix spine

Statistical ideaMatrix statementR operation
stationary covarianceΓn=[γ(ij)]\Gamma_n=[\gamma(i-j)]toeplitz(gamma)
valid covarianceaΓna0\mathbf a^\top\Gamma_n\mathbf a\ge0eigen(..., symmetric=TRUE)
Gaussian simulationX=μ+Lz\mathbf X=\boldsymbol\mu+L\mathbf z, LL=ΓLL^\top=\Gammachol and %*%
AR(pp) recursionst=Fst1+Gεt\mathbf s_t=F\mathbf s_{t-1}+G\varepsilon_teigen(F) and recursive %*%
Yule–WalkerΓpϕ=γp\Gamma_p\boldsymbol\phi=\boldsymbol\gamma_psolve(Gamma, gamma)
linear predictionΓa=Cov(X,Y)\Gamma\mathbf a=\operatorname{Cov}(\mathbf X,Y)solve and a Schur complement
Gaussian likelihood$\log\Sigma_\theta
VAR covariancevec(Γ0)=(IAA)1vec(Σ)\operatorname{vec}(\Gamma_0)=(I-A\otimes A)^{-1}\operatorname{vec}(\Sigma)kronecker
Fourier transformd=Fnx\mathbf d=F_n\mathbf xcomplex outer and %*%
Kalman filterprediction and correction of (at,Pt)(\mathbf a_t,P_t)matrix recursion

Course map

ModuleMain derivationExecutable check
Preparation: stationaritystable first and second momentsdistinguish deterministic and stochastic change
1. Processes and covarianceToeplitz Γn\Gamma_n and Wold representationconstruct, factor, and simulate a covariance matrix
2. ARMA difference equationslag polynomials, companion form, Yule–Walker equationscompare roots, eigenvalues, and theoretical ACF
3. Linear predictionprojection equations and state-space recursioncompute predictor weights and error variance
4. Estimation and inferenceOLS, moments, exact Gaussian likelihoodoptimise a covariance-matrix likelihood
5. Multivariate systemsblock companion and Kronecker equationssolve a stationary VAR covariance
6. Spectral analysisFourier matrix and spectral densityrecover frequencies with a discrete transform
7. R matrix laboratoryfour integrated derivation labsbrowser-based base R notebook
8. Optional Python appendixempirical implementation contrastforecasting workflow

The Python appendix is supplementary. It is useful for comparing software conventions, but it is not the conceptual spine of this course.

A finite-block view of one process

Weak stationarity means that every finite block has

E(Xn)=μ1n,Γn=[γ(0)γ(1)γ(n1)γ(1)γ(0)γ(n2)γ(n1)γ(n2)γ(0)].E(\mathbf X_n)=\mu\mathbf 1_n, \qquad \Gamma_n= \begin{bmatrix} \gamma(0)&\gamma(1)&\cdots&\gamma(n-1)\\ \gamma(1)&\gamma(0)&\cdots&\gamma(n-2)\\ \vdots&\vdots&\ddots&\vdots\\ \gamma(n-1)&\gamma(n-2)&\cdots&\gamma(0) \end{bmatrix}.

This one matrix connects the course:

  • ARMA equations restrict its entries;
  • prediction partitions it;
  • Gaussian likelihood evaluates its determinant and quadratic form;
  • the spectrum diagonalises its large-sample analogue;
  • state-space recursions avoid constructing it all at once.

How to read every R example

Each webR cell is self-contained. Read it in this order:

  1. Dimensions: write the size of every vector and matrix.
  2. Identity: name the equation the code implements.
  3. Numerical check: inspect symmetry, eigenvalues, or reconstruction error.
  4. Perturbation: change one parameter and predict the direction of change first.
  5. Conclusion: state a mathematical claim, not merely “the code ran.”

Example conclusion:

The smallest eigenvalue of Γ6\Gamma_6 is positive, so this six-dimensional covariance block is positive definite. As ϕ\phi moves from 0.60.6 to 0.950.95, the condition number increases; near-unit-root covariance matrices are harder to distinguish numerically.

Ten-week route

WeekPreparationSeminar or laboratory output
1random vectors and covariancebuild a Toeplitz covariance by hand
2stationarity and Wold representationprove a covariance sequence is admissible or find a counterexample
3AR, MA, and lag polynomialsconvert an AR(pp) to companion form
4Yule–Walker equationsrecover AR coefficients from autocovariances
5Hilbert-space projectionderive a best linear predictor and its error variance
6estimation and Gaussian likelihoodcompare conditional and exact estimators
7VAR and Kronecker productssolve a discrete Lyapunov equation
8Fourier representationconnect a periodogram to a Fourier matrix
9state-space modelsimplement Kalman prediction and correction
10synthesisdefend every line of one R matrix computation

Assessment alignment

TaskWeightEvidence expected
derivations35%correct assumptions, dimensions, and algebra
R matrix labs30%reproducible code plus numerical verification
theory critique15%identify what fails without stationarity or Gaussianity
final synthesis20%connect covariance, prediction, likelihood, and state space

Graduate extensions ask for proofs, asymptotic arguments, multivariate identification, or computational complexity. Undergraduate solutions may use stated theorems but must still explain dimensions and assumptions.

Reading ladder

ReadingUse in this course
Brockwell & Davis, Time Series: Theory and Methodsstationary processes, Hilbert-space prediction, ARMA, spectra, and asymptotics
Durbin & Koopman, Time Series Analysis by State Space Methodsmatrix filtering, smoothing, likelihood, and initialisation
R stats::ARMAacf documentationimplementation of theoretical ARMA autocorrelations from difference equations
R stats::KalmanLike documentationthe state-space machinery used by R's exact ARIMA likelihood
Düker et al. (2024/25), VARMA reviewgraduate bridge from classical matrix equations to modern identification and estimation
Zheng (2024/25), infinite-order high-dimensional VARrecent example of preserving interpretable linear dynamics under high dimensionality

The first four readings establish the course. The recent papers show where the same matrix ideas lead; they do not replace the foundations.

Start

Complete the stationarity preparation, then open Module 1. Keep one page of matrix dimensions beside every derivation.

Copyright © 2026