Marginal

Time Series Econometrics

Modeling data that arrive over time: autocorrelation, MA and ARMA processes, AR(2) dynamics and stationarity, forecast uncertainty, unit roots and Dickey–Fuller tests, cointegration and error correction, vector autoregressions, impulse responses, structural identification, variance decompositions, GARCH volatility, HAC standard errors and the Kalman filter.

37 lessons in 4 units

Start your free trial14 days free. No card needed.
What you'll learn

37 lessons, one small step at a time

Each lesson states its goal, then works up to it in short steps with practice after each. A placement test at the start skips what you already know.

Univariate Models

14 lessons
  1. Sample autocorrelationCompute autocorrelations from autocovariances and from data, and judge with the white-noise band and the correlogram whether they are more than noise.
  2. AR(1) varianceCompute the variance of a stationary AR(1) from its shocks, and explain how persistence amplifies shocks.
  3. Autocorrelation functionsCompute the autocorrelations of an AR(1), and read its persistence from them.
  4. MA(1) momentsCompute the mean, variance and autocovariances of an MA(1), and its autocorrelation at lag one.
  5. Reading the ACFTell AR from MA processes by their ACF and PACF, compute a partial autocorrelation, and apply the Box–Jenkins table, differencing first when the ACF decays very slowly.
  6. ARMA meansCompute the mean of an ARMA(1,1) and the constant behind it, and explain why combining AR and MA terms pays.
  7. ARMA & the Wold representationCompute the Wold weights of ARMA processes, write models with the lag operator, and sum impulse responses into the cumulative effect of a shock.
  8. Choosing lag lengthCompute the AIC and BIC of autoregressions, pick a lag length with them, and compare the two criteria.
  9. The companion matrixWrite an AR(2) as a first-order system with its companion matrix, decide stationarity from its eigenvalues, and translate them into roots of the AR polynomial.
  10. AR(2) impulse responsesCompute AR(2) impulse responses by recursion and with the companion matrix, and add them up into the long-run effect.
  11. Cycles in AR(2) modelsCompute the damping and the cycle length of an AR(2) with complex eigenvalues, and check stationarity with the triangle of coefficients.
  12. AR(1) point forecastsForecast a stationary AR(1) at any horizon, measure how fast its forecasts converge with the half-life, and contrast them with random-walk forecasts.
  13. Forecast error varianceCompute the variance of AR(1) forecast errors at each horizon, and its long-run limit.
  14. Forecast intervalsBuild 95% forecast intervals one step ahead and at longer horizons, as in a fan chart.

Unit Roots & Cointegration

7 lessons
  1. The Dickey–Fuller regressionRewrite an AR(1) as the Dickey–Fuller regression, and compute its test statistic.
  2. Unit-root testsDecide a unit-root test with Dickey–Fuller critical values, and use the test well.
  3. Structural breaksCompute the Chow statistic for a break at a known date, decide with it, and recognize how breaks matter in practice.
  4. Trends & the HP filterTell deterministic from stochastic trends, measure the cycle as a percentage gap from trend, and explain the HP filter's trade-off and limits.
  5. Testing for cointegrationExplain when two I(1) series are cointegrated, and apply the Engle–Granger test.
  6. Error-correction modelsCompute the error-correction response to last period's gap, and combine short-run and long-run effects.
  7. Speed of error correctionCompute how fast a gap closes from the adjustment coefficient, find which series does the adjusting, and compute half-lives.

Vector Autoregressions

8 lessons
  1. VAR forecastsForecast a VAR equation by equation, count its coefficients, and test Granger causality within it.
  2. VAR stabilityCompute the eigenvalues of a VAR's coefficient matrix, and decide whether the VAR is stable or explosive.
  3. Long-run means of VARsFind a stable VAR's long-run means one equation at a time and as a system, and show that its forecasts converge to them.
  4. Impulse responsesCompute VAR impulse responses one period and several periods after a shock, and read them with their confidence bands.
  5. Local projectionsEstimate the impulse response at one horizon with a local projection, and compare local projections with VARs.
  6. Identifying restrictionsExplain why VAR errors mix structural shocks, and count the identifying restrictions a structural VAR needs.
  7. Cholesky identificationCompute the Cholesky impact matrix from the covariances of VAR errors, and explain why its ordering is an assumption.
  8. Variance decompositionsCompute forecast error variance decompositions one step ahead and at longer horizons.

Volatility, Inference & Filtering

8 lessons
  1. GARCH updatingUpdate tomorrow's variance with an ARCH(1) model and with a GARCH(1,1) model.
  2. Long-run volatilityCompute the long-run variance of a GARCH(1,1), annualize daily volatility, and measure the persistence of volatility shocks.
  3. Volatility forecastsForecast GARCH variances several days ahead, add them up into multi-day risk, and recognize GARCH's uses and extensions.
  4. Long-run varianceCompute the long-run variance of an AR(1), the factor by which naive standard errors of its mean mislead, and its effective sample size.
  5. Newey–West weightsCompute Bartlett weights and the Newey–West estimate of the long-run variance.
  6. HAC standard errorsCompute a HAC standard error of a mean, and choose the truncation lag for HAC standard errors in regressions.
  7. The Kalman gainCompute the Kalman gain in a local-level model, and explain how it balances signal against noise.
  8. The Kalman updateUpdate a Kalman-filter estimate with the gain, and update its uncertainty.
Sample lesson

Sample autocorrelation

Goal: Compute autocorrelations from autocovariances and from data, and judge with the white-noise band and the correlogram whether they are more than noise.

Does a high unemployment rate this quarter predict a high rate next quarter? Does a stock's return today say anything about tomorrow's? Time-series analysis starts by measuring how strongly a series is correlated with its own past.

We will define autocorrelation, estimate it from data, test it against noise, and finish with reading a correlogram.

Step 1: Autocovariance and autocorrelation

For a stationary series the autocovariance at lag k, γk = Cov(yt, yt−k), is the same for every t. Dividing by the variance γ₀ gives the autocorrelation:

ρk = γk ÷ γ₀

Like any correlation it lies between −1 and 1, with ρ₀ = 1, and it is the same whichever direction you look: the link between today and k periods ago equals the link between today and k periods ahead. Example: γ₀ = 20 and γ₂ = 8 give ρ₂ = 0.4; a series with γ₀ = 20 and γ₁ = −5 has ρ₁ = −0.25, so a high value tends to be followed by a low one.

Step 2: Estimating it from data

The sample version uses the full-sample mean ȳ in both terms:

rk = Σ (yt − ȳ)(yt−k − ȳ) ÷ Σ (yt − ȳ)²

The top sum runs over the T − k pairs that are k periods apart; the bottom over every observation. Example: 3, 5, 9, 7, 6 has mean 6 and deviations −3, −1, 3, 1, 0. The bottom sum is 9 + 1 + 9 + 1 + 0 = 20; the lag-1 products are 3, −3, 3 and 0, summing to 3; so r₁ = 0.15. In small samples sample autocorrelations tend to be biased toward zero.

Step 3: Is it more than noise?

A series with no autocorrelation at all is white noise. Even then, sample autocorrelations aren't exactly zero. In a sample of T observations they are roughly normal with standard deviation 1/√T, so

95% band for white noise: ±1.96 ÷ √T, about ±2 ÷ √T

Autocorrelations outside the band are evidence of real persistence. Example: with T = 100 the band is ±0.2, so r₁ = 0.15 is consistent with white noise while r₁ = 0.35 is not; with T = 25 the band widens to ±0.4. Software draws these bands on ACF plots.

Step 4: Reading a correlogram

A plot of rk against the lag k, with the band drawn as two horizontal lines, is a correlogram. Read it by looking for bars that poke out of the band and for the pattern they form: a single spike at lag 1, a slow decay, or a spike at a seasonal lag such as 4 or 12. With 20 lags plotted, about one bar is expected to cross the band by chance, so a lone crossing at an odd lag is weak evidence.

In the app, each step ends with practice questions, new ones every time, and the lesson comes back later in spaced reviews.

Start Time Series Econometrics

Lessons that need something you haven't learned yet bring it in first, from any course.

Start your free trial14 days free. No card needed.