GARCH(1,1): volatility clustering

The question
Tune the mechanism, compare the records, then examine a forecast.
- 1 SeeTune a volatility model to a target.
- 2 TryPredict a forecast, then test persistence.
- 3 ProveDerive the long-run variance.
- 4 ApplyCalculate updates and interpret units.
Before you start · 3 quick checks on variance, lags, and conditioning
Two ideas before you start
2 ideasA shock has a sign and a size
A parabola maps a return shock to its square.
Squaring measures size without preserving direction. A large negative return can matter for variance just as a large positive return does.
Exact definition
At equally spaced trading observations, write return \(r_t=\mu+\varepsilon_t\). The constant \(\mu\) is the model's conditional mean; \(\varepsilon_t\) is the surprise, or residual. We model returns in percentage points. Squared residuals and variances therefore have squared percentage-point units. Volatility is a standard deviation, not a variance.
The teaching simulations set \(\mu=0\), so residuals equal returns. For data with a nonzero or changing conditional mean, first specify and fit that mean; squaring raw returns can otherwise mix mean behavior with changing spread.
The spread is known before the draw
A conditional normal density changes width when its variance changes.
The solid density is centered at zero. Change its variance; the next shock is still an unknown draw.
Exact definition
Let \(\mathcal F_{t-1}\) contain the information available before observation \(t\). Assume \(z_t\) is independent of that past, identically distributed over time, with mean zero and variance one. Set
\[\varepsilon_t=\sqrt{h_t}\,z_t,\]where \(h_t\gt0\) is determined by the past. Then the conditional mean of the shock is zero and its conditional variance is \(h_t\). The density card additionally assumes standard normal \(z_t\); normality is not required for these two conditional moments.
Refresher: conditional expectation and the GARCH rule
Conditional expectation averages only the uncertainty that remains after the stated information is known. A past-measurable factor can leave the conditional average. Averaging that conditional average again gives the unconditional expectation; this is the tower property. These rules are enough for the proof below.
GARCH means generalized autoregressive conditional heteroskedasticity. Here the last word means that the conditional spread can change. The order (1,1) uses one previous squared shock and one previous conditional variance:
\[\begin{aligned}h_t&=\omega+\alpha\varepsilon_{t-1}^2\\ &\quad+\beta h_{t-1}.\end{aligned}\]Assume constant \(\omega\gt0\), \(\alpha,\beta\ge0\), and a positive initial variance. The recursion stays positive. The coefficients are dimensionless except for \(\omega\), which has variance units. This is a statistical return model; it does not assume or derive an asset pricing rule.
For background, stationarity distinguishes constant population moments from a flat realized record. Autocorrelation explains the lag summaries used next.
Match the pattern of squared returns
- Move α or β to generate your candidate on the same sequence of standardized shocks.
- Compare the solid target ACF with your dashed candidate, then press Check my match.
Volatility clustering here is a property of the model. With \(\alpha\gt0\), a large squared shock raises the next conditional variance; with \(\beta\gt0\), part of that rise carries into later variances. So in this model large moves tend to arrive in runs. Whether a particular market's returns behave this way is a question for its data, which this simulation does not answer.
Large neighboring squared returns can make positive short-lag ACF values. A negative return followed by a positive return may still be part of the same high-volatility episode. The ACF of signed returns and the ACF of their squares ask different questions.
Your match concerns one finite simulated record. Sharing random draws makes parameter comparisons reproducible; it also makes this a teaching exercise rather than an estimator for unseen market data. Several settings can be close under this score. A good match neither proves the parameters are correct nor tests the GARCH family.
Exactly what the score measures
For squared returns \(x_t=\varepsilon_t^2\), subtract their full-record average to obtain \(d_t\). At lag \(k\), use the same full-record denominator for every lag:
\[\widehat\rho_k=\frac{\sum_{t=k+1}^n d_t d_{t-k}}{\sum_{t=1}^n d_t^2}.\]The score is the square root of the mean squared difference between the two ACF vectors over the displayed positive lags. Smaller is closer; zero means the displayed vectors agree. We do not call this score a likelihood or attach a statistical significance level to it. The target itself is generated by the model, not observed from an exchange.
The simulations start from a fixed variance and discard an initial segment. This reduces initialization effects but does not make a finite record an exact draw from the stationary distribution. All figures display actual computed samples; no bars are replaced by theoretical decay curves.
What happens beyond the next observation?
A fitted variance for the next observation is already determined by today's information. Later variances contain future squared shocks that have not been seen. Before opening the forecast explorer, decide how to average one of those unknown shocks.
Write \(f_k=E[h_{t+k}\mid\mathcal F_t]\), the variance forecast at horizon \(k\). With iid standardized innovations independent of the past and finite second moments, averaging the next squared shock gives the forecast variance at that time. Put \(p=\alpha+\beta\). Then
\[f_{k+1}=\omega+p f_k.\]When \(p\lt1\), define the fixed level \(v=\omega/(1-p)\). Subtract its own recursion:
\[\begin{aligned}f_{k+1}-v&=p(f_k-v),\\ f_k&=v+p^{k-1}(f_1-v).\end{aligned}\]The exponent counts additional forecast steps after the known next variance. It does not count from the observed return. A larger nonnegative \(p\) below one retains more of the same initial excess at each additional step. This is a statement about expected variance, not a guarantee that a realized variance path falls smoothly.
Use the forecast rule to meet two goals
- Change persistence p, then press Check this goal.
- Advance to a fresh setting after each goal.
A zero future return is a different experiment
Setting every future shock to zero would leave only the intercept and the old variance term. Forecasting instead averages all possible future shocks. Their conditional mean is zero, but their expected square is positive. Confusing these operations drops the α contribution.
The square root of a variance forecast is often reported as a volatility summary. It is generally not the conditional expectation of future volatility: taking a square root and taking an expectation do not commute.
Find the population variance
Assume the GARCH recursion above with \(\omega\gt0\), \(\alpha,\beta\ge0\), and \(p=\alpha+\beta\lt1\). Assume a strictly stationary causal solution with finite \(m=E[h_t]\): causal means that the variance depends only on past innovations. The iid innovations are independent of that past, with mean zero and variance one. Then
\[E[\varepsilon_t^2]=m=\frac{\omega}{1-p}.\]Also, for the forecasts \(f_k=E[h_{t+k}\mid\mathcal F_t]\), with \(f_1=h_{t+1}\) known at time \(t\), the two-step forecast is \(f_2=\omega+pf_1\); this step uses the recursion and the innovation assumptions, not stationarity. The return mean is the constant μ; hence \(m\) is also the unconditional return variance. The proof derives the moments of the assumed stationary solution. It does not claim that arbitrary fixed initialization is stationary.
Stationarity, boundaries, and squared-return ACFs
With finite variance and the stated zero conditional mean, shocks at distinct times are uncorrelated: condition the later shock on the earlier information. They can still be dependent through their conditional variances. Thus weakly stationary returns need not have constant conditional volatility.
If \(p\ge1\) and \(\omega\gt0\), the moment equation cannot have a finite nonnegative solution. That rules out a stationary solution with finite return variance. It does not rule out every form of strict stationarity with infinite variance. At \(p=0\), both coefficients vanish and the conditional variance is simply the positive intercept.
A population correlation of squared returns requires a finite fourth return moment as well as nonzero variance of the squares. For iid standard normal innovations in the stationary causal model, a sufficient condition is \(3\alpha^2+2\alpha\beta+\beta^2\lt1\). The simulation controls satisfy this condition. A finite sample ACF is still just a descriptive statistic; it is not the population ACF.
Update, forecast, and check units
Use each problem's assumptions. Enter a decimal without units. The accepted absolute error is shown with each problem; hints and a worked solution are available.
From a teaching fit to a likelihood fit
For observed residuals, assume the conditional mean is correctly specified and iid standard normal innovations. Fix a positive initial variance, then compute every subsequent \(h_t\) from the observed past for each proposed parameter vector. The conditional Gaussian log-likelihood is
\[\begin{aligned}\ell&=-\frac12\sum_t b_t,\\b_t&=\log(2\pi)+\log h_t\\&\quad+\varepsilon_t^2/h_t.\end{aligned}\]Unlike the See score, this objective evaluates the observed residual at its own date-specific variance. Parameters must satisfy the chosen positivity and stationarity restrictions. The maximum likelihood lesson explains why data remain fixed as parameters change. If Gaussianity is dropped, the same formula is a Gaussian quasi-likelihood objective; inferential guarantees require additional regularity assumptions.
After fitting, inspect standardized residuals and their squares for remaining dependence, and evaluate forecasts on data held out of the fit. Symmetric GARCH treats equal-magnitude positive and negative shocks alike. It cannot encode a sign-specific response without an extension.
For several return series, separate variance models do not specify how their shocks move together. A conditional covariance matrix can be written as \(H_t=D_t R_t D_t\), with positive conditional standard deviations on the diagonal of \(D_t\) and a valid correlation matrix \(R_t\). Dynamic conditional correlation (DCC) models add a rule for that changing correlation matrix. This lesson models one return series; its scalar variance recursion alone cannot supply a portfolio covariance forecast.
Further reading
- R. F. Engle, “Autoregressive Conditional Heteroscedasticity with Estimates of the Variance of United Kingdom Inflation,” Econometrica 50 (1982).
- T. Bollerslev, “Generalized Autoregressive Conditional Heteroskedasticity,” Journal of Econometrics 31 (1986).