Explanation 1
The live starter code is self-contained and uses only runner-compatible functions.
Loading
Lesson 15 of 22
Advanced Topic – Optional. Model volatility clustering with conditional variance recursions and distribution-aware diagnostics.
Advanced Topic – Optional
This chapter extends the core pathway. Complete Chapters 1–14 first, then use this material when your question and data justify the added model complexity.
Motivation
Returns may show little linear predictability while their variance remains strongly predictable, affecting intervals and risk forecasts.
Why this matters
Model volatility clustering with conditional variance recursions and distribution-aware diagnostics.
Packages and data
Base-R simulation; rugarch 1.5-6 is recommended for full estimation.
Explanation 1
The live starter code is self-contained and uses only runner-compatible functions.
Explanation 2
Book-only outputs are labelled when the separate source dataset or advanced package was not supplied.
Explanation 3
R code, paths, function names, and formulas remain left-to-right in every locale.
Terminology
Variance given information available at time t-1.
Latent model quantity
alpha + beta in GARCH(1,1).
Near one implies slow decay
Residual divided by fitted conditional standard deviation.
Inspect values and squares
Notation and formulas
sigma_t^2 = omega + alpha error_(t-1)^2 + beta sigma_(t-1)^2
With positive omega, nonnegative alpha/beta, and alpha+beta<1, the standard model has finite unconditional variance.
Worked example
Scenario
How persistent is a GARCH model with alpha 0.08 and beta 0.90?
R check
omega <- .000004; alpha <- .08; beta <- .90
persistence <- alpha + beta
unconditional_vol <- sqrt(omega/(1-persistence))
half_life <- log(.5)/log(persistence)
print(c(persistence=persistence, unconditional_vol=unconditional_vol, half_life=half_life))A volatility shock decays slowly even though raw return signs may remain difficult to predict. Limitation: Conditional variance is latent; squared return is only a noisy proxy. This is educational model analysis, not financial advice.
Visual
Illustrative conditional volatility decays slowly after a shock.
R connection
Run the self-contained starter code in the protected STATLAB R runner. The code prints an auditable result and avoids network or unrestricted file access.
Live R Lab
Run a self-contained example, verify its output, and explain one limitation for arch and garch volatility models.
Ready to run
Common mistake
alpha + beta is a persistence measure, not a probability.
STATLAB Tip
Inspect standardized residuals, squared standardized residuals, and a QQ plot.
Guided practice
Scenario
Hold unconditional variance fixed and compare persistence 0.70 with 0.98 after a common shock.
Compare your result with the definition, units, and model assumptions—not only with a target number.
Exercises
Complete these without looking at the selected solutions. More than one defensible program may exist.
Explanation 1
Compute half-life.
Explanation 2
Derive unconditional variance by expectations.
Explanation 3
Explain why price levels are usually inappropriate inputs.
Selected solutions
These are compact solution routes. Confirm dimensions, units, and any changed modelling choices.
Explanation 1
log(.5)/log(.98)
Explanation 2
Set E[sigma_t^2]=V and solve V=omega+(alpha+beta)V.
Explanation 3
Nonstationary price levels do not represent mean-zero innovations.
Chapter summary
Model volatility clustering with conditional variance recursions and distribution-aware diagnostics.
Explanation 1
GARCH models conditional variance.
Explanation 2
Persistence controls shock decay.
Explanation 3
Distribution and recursion are separate choices.
Explanation 4
Diagnostics use standardized residuals and squares.
Terminology
volatility diagnostic
Use in ARCH and GARCH Volatility Models.
specify
Use in ARCH and GARCH Volatility Models.
estimate
Use in ARCH and GARCH Volatility Models.
conditional volatility
Use in ARCH and GARCH Volatility Models.
References and provenance
Engle (1982); Bollerslev (1986); Safavi (2026), Chapter 15. Student notes: Mohammad Safavi, Ph.D., STATLAB Academy, Version 1.0.
Resource
The authoritative 125-page English PDF accompanies this native lesson.
DownloadReflection
Name the assumption, evidence you would seek, and how the recommendation might change.
Exit check
Reach 70% to complete the chapter. Explanations appear after submission.
Checkpoint
Question 1 of 2. Answered 0/2. Passing score: 70%.