modelling volatility: arch and garch models - personal www

31
Modelling Volatility: ARCH and GARCH Models January 24, 2012 () Applied Economoetrics: Topic 8 January 24, 2012 1 / 31

Upload: others

Post on 09-Feb-2022

24 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Modelling Volatility: ARCH and GARCH Models - Personal WWW

Modelling Volatility: ARCH and GARCH Models

January 24, 2012

() Applied Economoetrics: Topic 8 January 24, 2012 1 / 31

Page 2: Modelling Volatility: ARCH and GARCH Models - Personal WWW

Introduction

Regressions (and extensions of regression considered in this course)seek to explain the mean of YtThat is, the regression model says:

E (Yi ) = βXi

But in some cases we want a model for the variance of YtThis usually (but not always) occurs in �nance

Variance (volatility) of the price of an asset relates to its riskiness

ARCH and GARCH models which are the most popular ways ofmodelling volatility

Reading: Gujarati, Chapter 14 and Koop, pages 197-205

() Applied Economoetrics: Topic 8 January 24, 2012 2 / 31

Page 3: Modelling Volatility: ARCH and GARCH Models - Personal WWW

ARCH and GARCH are time series topics

Notation: Yt for t = 1, ..,T are our observations (e.g. on a stockreturn for each of T days)

Univariate time series econometric methods were discussed in 3rd yearcourse.

You may wish to review this material (although I will try and brie�yexplain relevant background below).

Review of basic univariate time series: my textbook (Koop,Introduction to Econometrics) pages 173-196.

Note: material on autoregressive (AR) model is of particular use

The material in this set of slides is taken from my textbook (pages197-205) and Gujarati chapter 15.

() Applied Economoetrics: Topic 8 January 24, 2012 3 / 31

Page 4: Modelling Volatility: ARCH and GARCH Models - Personal WWW

Volatility in Asset Prices

Recall the random walk (with drift) model:

Yt = α+ Yt�1 + εt

or∆Yt = α+ εt

where ∆Yt is the �rst di¤erence or change in YtNote: if Yt is the log of a variable (e.g. Yt = log (Pt ) where Pt is theprice of an asset) then ∆Yt is the percentage change in the variableE.g. ∆Yt could be stock return (exclusive of dividends)

() Applied Economoetrics: Topic 8 January 24, 2012 4 / 31

Page 5: Modelling Volatility: ARCH and GARCH Models - Personal WWW

Financial assets like stock prices often found to follow random walkwith drift.

Stock prices, on average, increase by α per period, but are otherwiseunpredictable.

Stock returns (exclusive of dividends) are on average α but areotherwise unpredictable.

Hard to predict stock returns (if it were easy to do, manyeconometricians would be rich).

However, it is easier to predict variance (volatility) of stock returns

Why is this interesting?

Volatilities appear in many places in �nance relating to risk: portfoliomanagement, option pricing, pricing of �nancial derivatives, VIX,Black-Scholes, etc.

This is not a �nance course, so I will just say: having estimates of thevolatilities of asset prices is very useful for �nance people

() Applied Economoetrics: Topic 8 January 24, 2012 5 / 31

Page 6: Modelling Volatility: ARCH and GARCH Models - Personal WWW

Assume asset price does follow a random walk

To eliminate worrying about the drift, work with

∆yt = ∆Yt � ∆Y

where ∆Y = ∑ ∆YtT

Taking deviations from the mean implies that there is no intercept inthe model.

So assume the model is:∆yt = εt

() Applied Economoetrics: Topic 8 January 24, 2012 6 / 31

Page 7: Modelling Volatility: ARCH and GARCH Models - Personal WWW

Before getting to ARCH and GARCH, let me introduce some ideasusing simpler methods

Remember some basic statistics:

If you have a random sample, X1, ..,XN then an estimate of thevariance is:

∑Ni=1

�Xi � X

�2N

This result assumes all of Xi have same variance

What if each Xi has a di¤erent variance? Cannot average them alltogether.

Think of Xi as a random sample of size N = 1 and assume its meanis zero and you get X 2i as an estimate of the variance.

Applying these ideas to ∆yt :∆y2t is an estimate of volatility of the asset price at time t.

() Applied Economoetrics: Topic 8 January 24, 2012 7 / 31

Page 8: Modelling Volatility: ARCH and GARCH Models - Personal WWW

Example: Volatility in Stock Prices

Figures on next 3 slides illustrate common pattern with asset prices.

First �gure plots of weekly observations of the (logged) stock price ofcertain company.

Second �gure plots ∆Y , the percentage change in Y .Third �gure plots ∆y2t - an estimate of volatilityNote clustering in volatility : there are times stock price is much morevolatile than other times

Often happens with �nancial assets

() Applied Economoetrics: Topic 8 January 24, 2012 8 / 31

Page 9: Modelling Volatility: ARCH and GARCH Models - Personal WWW

0 50 100 150 200 2503.15

3.2

3.25

3.3

3.35

3.4

3.45Figure 6.7: Time Series Plot of Log of Stock Price

Week() Applied Economoetrics: Topic 8 January 24, 2012 9 / 31

Page 10: Modelling Volatility: ARCH and GARCH Models - Personal WWW

0 50 100 150 200 250-1.5

-1

-0.5

0

0.5

1

1.5

2Figure 6.8: Time Series Plot of Change in Stock Price

Week() Applied Economoetrics: Topic 8 January 24, 2012 10 / 31

Page 11: Modelling Volatility: ARCH and GARCH Models - Personal WWW

0 50 100 150 200 2500

0.5

1

1.5

2

2.5

3x 10-4 Figure 6.9: Time Series Plot of Volatility

Week() Applied Economoetrics: Topic 8 January 24, 2012 11 / 31

Page 12: Modelling Volatility: ARCH and GARCH Models - Personal WWW

A Review of the Autoregressive (AR) Model

In 3rd year course, we used the AR(p), model for Yt :

Yt = α+ ρ1Yt�1 + ..+ ρpYt�p + εt

for t = p + 1, ..,T

Properties of this model:

Yt depends on past values of itself

Yt depends on lags of itself

() Applied Economoetrics: Topic 8 January 24, 2012 12 / 31

Page 13: Modelling Volatility: ARCH and GARCH Models - Personal WWW

Properties of AR(1) model:

If Y is high at time t � 1 it will also tend to be high at time t (ifρ > 0)

Clustering in time of high values of Y

Assume jρj < 1 (this is stationarity restrictions, if ρ = 1 we have unitroot)

corr (Yt ,Yt�1) = ρ

corr (Yt ,Yt�s ) = ρs

We will use AR models (or similar) but not for Yt , instead forvolatilities

() Applied Economoetrics: Topic 8 January 24, 2012 13 / 31

Page 14: Modelling Volatility: ARCH and GARCH Models - Personal WWW

Return to Volatility Modelling

Clustering in volatility is often present in �nancial time series data.

Why not use an AR(1) model for volatility?

That is, use ∆y2t as the dependent variable:

∆y2t = α+ ρ∆y2t�1 + εt

Volatility in a period depends on volatility in the previous period.

If ρ > 0 (as it often is in �nancial applications), then if volatility wasunusually high last period (e.g. ∆y2t�1was very large), also tends tobe unusually high this period.

If volatility unusually low last period (e.g. ∆y2t�1 was near zero) thenthis period�s volatility will also tend to be low.

Standard OLS econometric techniques can be used to estimate thismodel (provided jρj < 1)

() Applied Economoetrics: Topic 8 January 24, 2012 14 / 31

Page 15: Modelling Volatility: ARCH and GARCH Models - Personal WWW

Example: Volatility in Stock Prices (continued)

Use data in Figure 6.9 and estimate AR(p) model using ∆y2t asdependent variable

Remember: to select lag length can use sequential testing procedure

E.g. estimate AR(4) and if coe¢ cient on 4th lag insigni�cant, movethe AR(3) model, etc.

This strategy yields the AR(1) model for ∆y2t .

Table 6.6: AR(1) Model for ∆y2tVariable OLS Estimate t-statistic P-valueIntercept 0.024 1.624 0.106∆y2t�1 0.737 15.552 0.000

Last week�s volatility has strong explanatory power for this week�svolatility

Clustering in volatility is found

() Applied Economoetrics: Topic 8 January 24, 2012 15 / 31

Page 16: Modelling Volatility: ARCH and GARCH Models - Personal WWW

Autoregressive Conditional Heteroskedasticity (ARCH)

ARCH models (including extensions of them) are the most popularmodels for �nancial volatility.

To allow for generality and conform with how econometrics packageswork context of regression model:

Yt = α+ β1X1t + ..+ βkXkt + εt

Note if X1t = Yt�1 then this is an AR model.

If no explanatory variables at all (i.e. α = β1 = .. = βk = 0) thenmodelling volatility in dependent variable

Common for dependent variable is a stock return

Common to include at least an intercept

() Applied Economoetrics: Topic 8 January 24, 2012 16 / 31

Page 17: Modelling Volatility: ARCH and GARCH Models - Personal WWW

ARCH model relates to the variance (or volatility) of the error, εt .

Use the following notation:

σ2t = var (εt )

σ2t is volatility at time t.

Error variances are not constant: thus we have heteroskedasticitywhich accounts for the �H� in ARCH.

() Applied Economoetrics: Topic 8 January 24, 2012 17 / 31

Page 18: Modelling Volatility: ARCH and GARCH Models - Personal WWW

The ARCH model with p lags is denoted by ARCH(p)

Today�s volatility is an average of past errors squared:

σ2t = γ0 + γ1ε2t�1 + ..+ γpε2t�p

γ0,γ1, ..,γp are coe¢ cients that can be estimated in Gretl

We will not discuss estimation of ARCH models: usually maximumlikelihood is used (but other estimators exist)

() Applied Economoetrics: Topic 8 January 24, 2012 18 / 31

Page 19: Modelling Volatility: ARCH and GARCH Models - Personal WWW

If no explanatory variables and dependent variable is the de-meanedstock return, ∆yt , then εt = ∆yt�1In this case the ARCH model becomes:

σ2t = γ0 + γ1∆y2t�1 + ..+ γp∆y2t�p

and volatility depends on recent values of ∆y2t �the metric forvolatility we were using in the preceding section.

ARCH model is closely related to AR

ARCH models have similar properties to AR models � except thatthese properties relate to the volatility of the series.

() Applied Economoetrics: Topic 8 January 24, 2012 19 / 31

Page 20: Modelling Volatility: ARCH and GARCH Models - Personal WWW

Example: Volatility in Stock Prices (continued)

With ARCH models do not need to subtract the mean o¤ of stockreturns as we did previously

By simply including an intercept in regression model we are allowingfor a random walk with drift

Use logged stock price data and take �rst di¤erence to create ∆YEstimate ARCH(1) model with ∆Y as dependent variable and anintercept in the regression equation I get Table 6.7 (next slide)

The upper part of Table 6.7 refers to the coe¢ cients in the regressionequation (here only an intercept)

The lower part of the table refers to the ARCH equation.

I have speci�ed ARCH(1) model, so have an intercept (withcoe¢ cient labeled γ0 in the ARCH equation) and one lag of theerrors squared (labeled γ1 in the ARCH equation).

() Applied Economoetrics: Topic 8 January 24, 2012 20 / 31

Page 21: Modelling Volatility: ARCH and GARCH Models - Personal WWW

Table 6.7: ARCH(1) Model using Stock Return Data

VariableCoe¢ cientEstimate

P-value95% Con�denceInterval

Regression Equation with ∆Y as Dependent VariableIntercept 0.105 0.000 [0.081, 0.129]ARCH EquationIntercept 0.024 0.000 [0.016, 0.032]∆ε2t�1 0.660 0.000 [0.302, 1.018]

() Applied Economoetrics: Topic 8 January 24, 2012 21 / 31

Page 22: Modelling Volatility: ARCH and GARCH Models - Personal WWW

Example: Volatility in Stock Prices (continued)

Numbers labeled �Coe¢ cient Estimate�are estimates of thecoe¢ cients

Numbers labeled �P-value�are P-values for testing whethercorresponding coe¢ cient equals zero.

Here all P-values are all less than 0.05 so all coe¢ cients aresigni�cant at the 5% level.

Estimate of γ1 is 0.660, indicating that volatility this week dependsstrongly on the errors squared last week.

Persistence in volatility of similar degree to what we found before

Remember we previously found the AR(1) coe¢ cient for the variable∆y2t to be 0.737.

() Applied Economoetrics: Topic 8 January 24, 2012 22 / 31

Page 23: Modelling Volatility: ARCH and GARCH Models - Personal WWW

Example: Volatility in Stock Prices (continued)

Lag length selection in ARCH models can be done in the samemanner as with any time series model.

Can use an information criterion to select a model

Or look at P-values for whether coe¢ cients equal zero (and, if theydo seem to be zero, the accompanying variables can be dropped).

E.g. if we estimate an ARCH(2) model table on next slide.

Results similar to ARCH(1) model.

But coe¢ cient on ∆ε2t�2 is not signi�cant, since P-value is greaterthan 0.05.

Thus, ARCH(1) model is adequate and the second lag added byARCH(2) model does not add signi�cant explanatory power

() Applied Economoetrics: Topic 8 January 24, 2012 23 / 31

Page 24: Modelling Volatility: ARCH and GARCH Models - Personal WWW

Table 6.8: ARCH(2) Model using Stock Return Data

VariableCoe¢ cientEstimate

P-value95% Con�denceInterval

Regression Equation with ∆Y as Dependent VariableIntercept 0.109 0.000 [0.087, 0.131]ARCH EquationIntercept 0.025 0.000 [0.016, 0.033]∆ε2t�1 0.717 0.000 [0.328, 1.107]∆ε2t�2 �0.043 0.487 [�0.165, 0.079]

() Applied Economoetrics: Topic 8 January 24, 2012 24 / 31

Page 25: Modelling Volatility: ARCH and GARCH Models - Personal WWW

Extensions of ARCH

Many extensions of ARCH model are used by �nancialeconometricians.

Generalized ARCH (or GARCH) is most popular and we will discuss itbelow

Gretl has a menu of �GARCH variants�with seven variants of thewith acronyms like TARCH, EGARCH, NARCH, etc.

Will not discuss these in this course, but if you are interested in�nancial volatility, you can learn more about these models.

Here focus on GARCH

() Applied Economoetrics: Topic 8 January 24, 2012 25 / 31

Page 26: Modelling Volatility: ARCH and GARCH Models - Personal WWW

ARCH had volatility depending on lagged errors squared

GARCH adds to this lags of volatility itself

Properties of GARCH similar to ARCH

But GARCH is much more �exible, much more capable of matching awide variety of patterns of �nancial volatility

Financial time series often have �fat tails�: more extreme outcomes inthe tails of the distribution than a Normal distribution would allow for

Important property of GARCH: allows for fat tails

GARCH model with (p, q) lags is denoted by GARCH(p, q) and has avolatility equation of:

σ2t = γ0 + γ1ε2t�1 + ..+ γpε2t�p + λ1σ

2t�1 + ..+ λpσ2t�p

Maximum likelihood estimation can be done by Gretl (and otherpackages)

() Applied Economoetrics: Topic 8 January 24, 2012 26 / 31

Page 27: Modelling Volatility: ARCH and GARCH Models - Personal WWW

Example: Volatility in Stock Prices (continued)

Table contains GARCH(1,1) results, we obtain the results in thefollowing table.

Looks like ARCH(1) was good enough for this data set sincecoe¢ cient on σ2t�1 is insigni�cant

Table 6.9: GARCH(1, 1) Model using Stock Return Data

VariableCoe¢ cientEstimate

P-value95% Con�denceInterval

Regression Equation with ∆Y as Dependent VariableIntercept 0.109 0.000 [0.087, 0.131]ARCH EquationIntercept 0.026 0.000 [0.015, 0.038]∆ε2t�1 0.714 0.000 [0.327, 1.101]σ2t�1 �0.063 0.457 [�0.231, 0.104]

() Applied Economoetrics: Topic 8 January 24, 2012 27 / 31

Page 28: Modelling Volatility: ARCH and GARCH Models - Personal WWW

GARCH: Summary

So far our most general model is a regression with GARCH errors.

To summarize, this means:

Yt = α+ β1X1t + ..+ βkXkt + εt

εt is N�0, σ2t

�and

σ2t = γ0 + γ1ε2t�1 + ..+ γpε2t�p + λ1σ

2t�1 + ..+ λpσ2t�p

But it is useful to introduce one more extension

() Applied Economoetrics: Topic 8 January 24, 2012 28 / 31

Page 29: Modelling Volatility: ARCH and GARCH Models - Personal WWW

GARCH in mean (GARCH-M)

What if the volatility directly in�uences the dependent variable?

E.g. volatility in stock markets causes people to worry about riskwhich impacts on stock returns

Volatility is an explanatory variable in the regression:

Yt = α+ β1X1t + ..+ βkXkt + λσt + εt

εt is N�0, σ2t

�and

σ2t = γ0 + γ1ε2t�1 + ..+ γpε2t�p + λ1σ

2t�1 + ..+ λpσ2t�p

Exactly like GARCH model except we have added σt as explanatoryvariable in the regression.

This is the GARCH-M model

() Applied Economoetrics: Topic 8 January 24, 2012 29 / 31

Page 30: Modelling Volatility: ARCH and GARCH Models - Personal WWW

GARCH-M model can be estimated using maximum likelihood in Gretl

These models will be investigated in the computer tutorial

() Applied Economoetrics: Topic 8 January 24, 2012 30 / 31

Page 31: Modelling Volatility: ARCH and GARCH Models - Personal WWW

Summary

With time series regression models errors are often heteroskedastic ina particular way: clustering in volatility

This is especially true with �nancial assets like stock prices

Obtaining estimates of volatilities is important in many areas of�nance (e.g. option pricing, portfolio management)

If Yt is the log of a stock price, then ∆y2t can be used as a measureof volatility and used in AR models or regressions.

However, ARCH and GARCH are better ways of modelling volatilities

ARCH and GARCH share similar intuition with AR models butintuition holds for the volatilities

Estimation of ARCH and GARCH can be done in econometricssoftware packages such as Gretl

Many extensions of ARCH and GARCH are also popular of which Icovered GARCH-M

() Applied Economoetrics: Topic 8 January 24, 2012 31 / 31