Professional Documents
Culture Documents
Danielsson Financial Risk Forecasting Slides 2 - 1 41
Danielsson Financial Risk Forecasting Slides 2 - 1 41
Volatility
• In this Chapter we focus on the estimation and forecasting of volatility for a single
asset (univariate)
• The next Chapter does multivariate volatility
• The focus in this Chapter is on estimation, both of a model and in–sample
volatilities
• Chapter 5 introduces (out–of–sample) forecasting of volatilities
Structure
Notation
WE Estimation window
λ Decay factor in EWMA
ǫt Residuals
ω, α, β Main model parameters
ζ, δ Other model parameters
L1 , L2 Lags in volatility models
Simple models
• Recall from the last Chapter that the mean of daily returns is very low
• For www.financialriskforecasting.com/data/sp-500.csv
• It is 0.0001007711
• While the standard error is more than 100 times larger at 0.01245144
• With daily returns it is usually quite safe to assume the mean is zero
• Convenient because it makes the mathematics simpler
• We will return to this issue several times later in the book
Volatility
Moving average
Moving average
Hypothetical returns
40
20
return
−20
−40
Hypothetical returns
40
20
12
return
−20
−40
Hypothetical returns
40
20
12
9
return
−20
−40
Hypothetical returns
40
20
1112 9
return
−20
−40
Hypothetical returns
40
20
16
1112 9
return
−20
−40
Hypothetical returns
40
20 21
16
1112 9
return
−20
−40
EWMA
EWMA
σ̂t2 = w1 yt−1
2 2
+ w2 yt−2 2
. . . + wWE yt−W E
σ̂t2 = λyt−1
2
+ λ2 yt−2
2 2
. . . + λWE yt−W E
• 1>λ>0
• If WE is large enough, the terms λn are negligible for all n ≥ WE
• So set WE = ∞
• However, we have to ensure the sum of the weights is one
λ
Sum = = λ + λ2 + λ3 + . . . + λ∞
1−λ
• Then since this is the sum of a geometric progression:
σ̂t2 = λyt−1
2
+ λ2 yt−2
2 2
. . . + λ∞ yt−∞
• Then
∞
1−λX i 2
σ̂t2 = λ yt−i
λ
i=1
• Rewriting
∞
1−λX i 2
σ̂t2 = (1 − 2
λ)yt−1 + λ yt−i
λ
i=2
• Since
∞
X
(1 − λ) λi = (1 − λ)(λ1 + · · · + λ∞ ) = λ
i=1
• We get the EWMA equation
σ̂t2 = (1 − λ)yt−1
2 2
+ λσ̂t−1
What is λ ?
σ̂t2 = (1 − λ)yt−1
2 2
+ λσ̂t−1
• It is possible to estimate EWMA with the methods discussed later in this Chapter
• Since the EWMA is a reduced GARCH model, we could simply estimate λ with
maximum likelihood (See GARCH discussion below)
• JP Morgan set for daily data
λ = 0.94
• And when we use the term EWMA we are assuming that value
0
σ2 =
0
• In other words, undefined
• We can explore that more with simulations
Simulation analysis
N=1000
y=rnorm (N)
lambda =0.94
s i g m a=v e c t o r ( l e n g t h=N)
sigma [1]=1
f o r ( i i n 2 :N) {
s i g m a [ i ]= lambda ∗ s i g m a [ i −1] +
(1− lambda ) ∗ y [ i −1]ˆ2
y [ i ]= y [ i ] ∗ s q r t ( s i g m a [ i ] )
}
p l o t ( y , t y p e= ’ l ’ )
p l o t ( sigma , t y p e= ’ l ’ , l o g= ’ y ’ )
Simulate EWMA
1.5
1.0
0.5
0.0
−0.5
−1.0
1e−02
1e−05
1e−08
1e−11
0 1000 2000 3000 4000 5000
Financial Risk Forecasting © 2011-2022 Jon Danielsson, page 28 of 146
Simple ARCH GARCH Extensions ML Code Sim Diagnosis Alt Sum Covid
• Pros
• It is really simple to implement
• And not that inaccurate compared to the more sophisticated GARCH
• And multivatiate (see Chapter 3) versions are really easy
• Cons
• By definition it is less accurate than GARCH
• Which can become important in some cases
• The unconditional volatility is not defined which can be a problem
Yt ∼ N (0, σt2 )
• Or we can write
Yt = σt ǫ t , ǫt ∼ N (0, 1)
• Where ǫt is called residual
ARCH
σt2 = ω + αyt−1
2
Moments
• Then:
σ 2 = E(ω + αYt−1
2
) = ω + ασ 2
• Because the parameters are constant
• So, the unconditional volatility of the ARCH(1) model is:
ω
σ2 =
1−α
Fat tails
• Recall the discussion in the last chapter which said that a distribution is fat tailed
if it has more extreme outcomes than a normal with the same mean and variance
• Kurtosis is normalized forth moment
E(Y 4 )
Kurtosis =
(E(Y 2 ))2
• Kurtosis is 3 for the normal
• Regardless of what the mean and variance are
E[ǫ4t ] = 3
• Then
ω
E(Y 4 )(1 − 3α2 ) = 3ω 2 + 6αω
1−α
ω 2 (1 + α)
=3
1−α
Financial Risk Forecasting © 2011-2022 Jon Danielsson, page 40 of 146
Simple ARCH GARCH Extensions ML Code Sim Diagnosis Alt Sum Covid
• Solve for
3ω 2 (1 + α)
E(Y 4 ) =
(1 − α)(1 − 3α2 )
3σ 4 (1 − α2 )
=
1 − 3α2
• If that exceeds three then Yt must be fat tailed
3 1 − α2
Kurtosis = > 3 if 3α2 < 1.
1 − 3α2
• The table below shows that the the higher the α the fatter the tails (lower tail
index ι implies fatter tails)
α > 0, ω > 0
0<α<1