Quantitative Finance I Modeling Volatility II (Lecture 5) Winter Semester 2014/2015 by Lukas Vacha * If viewed in .pdf format - for full functionality use Mathematica 7 notebook (.nb) version of this .pdf Conditional Heteroscedastic Models - II Conditional heteroscedastic models are used for modeling Οπt2 as an volatility estimate by "allowing" heteroscedasticity (time-variation) and capturing that dependence. Forecasting with GARCH EWMA GARCH-t IGARCH GARCH-M TAR-GARCH Forecasting with GARCH Forecasts of the GARCH can be obtained recursively at origin h, the 1-step ahead forecast of Οπh2+1 is: Οπh2+1 = Ξ±πΌ0 + Ξ±πΌ1 ah2 + Ξ²π½1 Οπh2 For multi-forecast, we use at2 = Οπt2 Ο΅πt2 and since E οΟ΅πh2+1 οFh ο = 1, we have, Οπh2+1 = Ξ±πΌ0 + (Ξ±πΌ1 + Ξ²π½1 ) Οπh2 Οπh2+2 = Ξ±πΌ0 + (Ξ±πΌ1 + Ξ²π½1 ) Οπh2+1 Οπh2+l = Ξ±πΌ0 + (Ξ±πΌ1 + Ξ²π½1 ) Οπh2+l , l>1 Οπh2+l βο·οο’ Ξ±πΌ0 1-βΞ±πΌ1 -βΞ²π½1 , as lβο·οο’β. Hence, the forecast converges to the unconditional variance. Exponential moving average (EWMA) Alternatively, exponential moving average (EWMA) estimator of volatility can be used. It uses all data points, and recent observations carry larger weights. (weights are exponentially decreasing). It also has the effect of diminishing the problematic βGhost Featuresβ. An m-period EWMA with smooth constant Ξ»π is defined as: 2 QF_I_Lecture5.cdf Alternatively, exponential moving average (EWMA) estimator of volatility can be used. It uses all data points, and recent observations carry larger weights. (weights are exponentially decreasing). It also has the effect of diminishing the problematic βGhost Featuresβ. An m-period EWMA with smooth constant Ξ»π is defined as: Οπt2 = Οπ-β1 2 rt -β1-βΟπ βm Οπ=1 Ξ»π where 0<Ξ»π<1 1+Ξ»π+Ξ»π1 +...+Ξ»πm -β1 2 Οπ 2 Οπt +1ο t = (1 -β Ξ»π) ββ Οπ=0 Ξ»π rt -βΟπ as nβο·οο’β, Οπ-β1 2 Οπt2+1ο t = (1 -β Ξ»π) rt2 + Ξ»π(1 -β Ξ»π) οββ rt -βΟπ ο Οπ=1 Ξ»π using the approximation ββΟ=1 Ξ»Ο-β1 β 1 1-βΞ» we get: Οπt2+1ο t = (1 -β Ξ»π) rt2 + Ξ»πΟπt2ο t -β1 , where initial value could be unconditional variance in a historical sample. In most financial applications, Ξ»π=0.94 is used. The EWMA model is equivalent to the IGARCH model, that is why the next day forecasts look very similar to forecasts based on GARCH type models. The EWMA ignores the long-run variance (unconditional), while the forecasts based on GARCH family models converge in the long-run to the unconditional variance of the sample. Example 1 month, 1 year volatility of Apple. QF_I_Lecture5.cdf 3 Example: Real financial market data -DAX index Forecasts of variance for the DAX index. Two samples with different unconditional variance. GARCH with t innovations Are the GARCH residuals normally distributed ? Usually the financial assets prices are fattailed, i.e. the distribution has more weight in the tails then a normal distribution. In general, there is a higher probability of large gain (or loss) then indicated by the normal distribution. Instead of the Gaussian innovations we can use t-distributed innovations. Example: with Q-Q plot Apple (AAPL) daily closing prices GARCH(1,1), Q-Q plots of residuals against the quantiles of t-distribution (tdof=6.78) and the normal distribution: 4 QF_I_Lecture5.cdf Apple (AAPL) daily closing prices GARCH(1,1), Q-Q plots of residuals against the quantiles of t-distribution (tdof=6.78) and the normal distribution: IGARCH - Integrated GARCH IGARCH models are unit-root (integrated) GARCH models where Ξ±πΌ1 + Ξ²π½1 = 1, their key feature is, that past squared shocks are persistent. The unconditional variance of at is not defined under the IGARCH(1,1) model specification. The IGARCH effect might be caused by level shifts in volatility, i.e., can be spurious, (for example long samples. Similar to simple AR processes.) see Mikosch and StΔricaΜ (2004). IGARCH(1,1) is defined as: at = Οπt Ο΅πt , Οπt2 = Ξ±πΌ0 + Ξ²π½1 Οπt2-β1 + (1 -β Ξ²π½1 ) at2-β1 , where 0 < Ξ²π½1 < 1 For Ξ±πΌ0 = 0, the IGARCH(1,1) βο·οο’ infinite EWMA. Example two samples with different unconditional variance (SPX index): Sample 1: 1/02/1950 12/31/1953: Οπt2 = 0.000011 + 0.64 Οπt2-β1 + 0.14 at2-β1 , t-dof = 5.079. Sample 2: 1/02/2007 12/31/2010: Οπt2 = 0.0000017 + 0.9007 Οπt2-β1 + 0.09989 at2-β1 , t-dof = 5.651. Sample 1: 1/02/1950 12/31/1953: Οπt2 = 0.000011 + 0.64 Οπt2-β1 + 0.14 at2-β1 , t-dof = 5.079. Sample 2: 1/02/2007 12/31/2010: Οπt2 = 0.0000017 + 0.9007 Οπt2-β1 QF_I_Lecture5.cdf + 0.09989 at2-β1 , t-dof = 5.651. Example IGARCH(1,1) artificial processes IGARCH(1,1) Simulated series Simulated Volatility Ξ±πΌ0 0.549 Ξ²π½1 0.613 New Random Case Export Simulated Series 10 5 0 -β5 -β10 0 100 200 300 400 500 GARCH-M model The return of a security may sometimes depend directly on volatility. To model this, we use GARCH in mean (GARCH-M) model. GARCH(1,1) - M is formalized as: rt = ΞΌπ + cΟπt2 + at at = Οπt Ο΅πt , Οπt2 = Ξ±πΌ0 + Ξ±πΌ1 at2-β1 + Ξ²π½1 Οπt2-β1 , where ΞΌπ and ο΄πΈ are constant. ο΄πΈ is also called risk premium 5 6 The return of a security may sometimes depend directly on volatility. To model this, we in mean (GARCH-M) model. GARCH(1,1) - M is formalized as: QF_I_Lecture5.cdf use GARCH rt = ΞΌπ + cΟπt2 + at at = Οπt Ο΅πt , Οπt2 = Ξ±πΌ0 + Ξ±πΌ1 at2-β1 + Ξ²π½1 Οπt2-β1 , where ΞΌπ and ο΄πΈ are constant. ο΄πΈ is also called risk premium Example GARCH(1,1)-M artificial processes Note, that with positive risk premium c, returns are positively skewed, as they are positively related to its past volatility Sample GARCH(1,1)-βM ACF function of a2t PACF function of a2t risk premium c 0.26 Ξ±πΌ0 0.39 Ξ±πΌ1 0.164 Ξ²π½1 0.503 New Random Case Export Simulated Series 4 3 2 1 0 -β1 -β2 0 100 200 300 400 500 Threshold Autoregressive (TAR)-GARCH Model Threshold Autoregressive (TAR) model can be used to refine the model by allowing for asymmetric response in the (volatility) equation to the sign of shock. We can observe asymmetry in declining and rising patterns of examined time series. Model uses simple threshold to improve linear approximation. We demonstrate the idea on a simple two regime AR(1) model and then we proceed to threshold model in the variance equation. QF_I_Lecture5.cdf 7 Examples of Two Regime AR (1) model Two-Regime AR(1) model is represented by: xt =ο Ξ±πΌ1 + Ξ²π½1 xt -β1 + Ο΅πt xt -β1 < k Ξ±πΌ2 + Ξ²π½2 xt -β1 + Ο΅πt xt -β1 β₯ k Parameters are initially set to: Ξ±πΌ1 = Ξ±πΌ2 = 0, Ξ²π½1 = -β1.5 and Ξ²π½2 = 0.5 to obtain following Two Regime AR(1) process: xt =ο -β1.5 xt -β1 + Ο΅πt xt -β1 < 0 0.5 xt -β1 + Ο΅πt xt -β1 β₯ 0 Note, that the process is stationary despite the coefficient -1.5 in the first regime. Series contains large upward jumps when it becomes negative (due to -1.5 coefficient), and there are more positive then negative ones. Model also contains no constant term, but E(xt ) is not zero. Two Regime AR(1) model treshold -β k 0.32 Ξ±πΌ1 -β0.49 Ξ²π½1 -β0.99 Ξ±πΌ2 0 Ξ²π½2 0.66 New Random Case Export Simulated Series 4 2 0 -β2 -β4 0 100 200 300 400 500 Example Set parameters of previous example to: Ξ±πΌ1 = Ξ±πΌ2 = 0, Ξ²π½1 = 0.2 and Ξ²π½2 = 0.9 to obtain following Two Regime AR(1) process 0.2 xt -β1 + Ο΅πt xt -β1 < k 0.9 xt -β1 + Ο΅πt xt -β1 β₯ k and see the mixture of short-memory and long-memory processes xt =ο 8 QF_I_Lecture5.cdf Set parameters of previous example to: Ξ±πΌ1 = Ξ±πΌ2 = 0, Ξ²π½1 = 0.2 and Ξ²π½2 = 0.9 to obtain following Two Regime AR(1) process 0.2 xt -β1 + Ο΅πt xt -β1 < k 0.9 xt -β1 + Ο΅πt xt -β1 β₯ k and see the mixture of short-memory and long-memory processes xt =ο Example of application: AR(1)-TAR-GARCH(1,1) TAR models can be used for capturing asymmetric response in volatility. If we find the series to follow AR(1)-GARCH(1,1) process, we can introduce TAR to model asymmetric response in volatility to shocks. Model is formalized: rt = Οπ0 + Οπ1 rt -β1 + at , at = Οπt Ο΅πt Ξ±πΌ0 + Ξ±πΌ1 at2-β1 + Ξ²π½1 Οπt2-β1 at -β1 β€ 0 Οπt2 = ο Ξ±πΌ2 + Ξ±πΌ3 at2-β1 + Ξ²π½2 Οπt2-β1 at -β1 > 0 QF_I_Lecture5.cdf AR(1)-βTAR-βGARCH(1,1) Simulated series Simulated Volatility treshold -β k 1.7 Οπ0 0.6 Οπ1 0.612 Ξ±πΌ0 0.5 Ξ±πΌ1 0.324 Ξ²π½1 0.2 Ξ±πΌ2 0.5 Ξ±πΌ3 0.3 Ξ²π½2 0.5 New Random Case Export Simulated Series 15 10 5 0 -β5 0 100 200 300 400 500 Empirical example TAR-GARCH(1,1) Apple (AAPL) daily closing prices sample: 9/1/2009 11/18/2011 (561 obs.) Estimated volatility eq. (normal innovations): Οπt2 = 0.00005 + 0.665 Οπt2-β1 + 0.244 at2-β1 I (at -β1 < 0) Estimated volatility eq. (t innovations): Οπt2 = 0.00004 + 0.71 Οπt2-β1 + 0.240 at2-β1 I (at -β1 < 0) where I (at -β1 < 0) = 1 if at -β1 < 0. 9 10 QF_I_Lecture5.cdf EGARCH Model We have demonstrated that the EGARCH (Nelson, 1991) model be used for capturing asymmetric response in volatility - the leverage effect. The EGARCH can be defined as: at = Οπt Ο΅πt lnοΟπt2 ο = Ξ±πΌ0 + 1+Ξ±πΌ1 L +...+Ξ±πΌs L s g (Ο΅πt -β1 ) 1-βΞ²π½1 L ...-βΞ²π½m L m g (Ο΅πt ) = ΞΈπ Ο΅πt + Ξ³πΎ[οΟ΅πt ο -β E οΟ΅πt ο] where Ξ±πΌ0 > 0, ΞΈπ, Ξ³πΎ β βο΅ are real constants. For the standard Gaussian random variable Ο΅πt , E οΟ΅πt ο = 2/βΟπ . Function g (.) captures the asymmetric relations between stock returns and volatility. It is both function of magnitude and sign of Ο΅πt . Each component of g (Ο΅πt ) has mean zero. Thus, g (Ο΅πt ) is a zero mean i.i.d. random sequence. When Ο΅πt is positive (negative) g (Ο΅πt ) is linear in Ο΅πt with slope ΞΈπ+Ξ³πΎ (ΞΈπ-Ξ³πΎ). Thus, g (Ο΅πt ) allows for asymmetrical response of conditional variance (Οπt2 ) to positive or negative returns. Example EGEARCH(1,0) (1 -β Ξ²π½1 L ) lnοΟπt2 ο = Ξ±πΌ0 + g (Ο΅πt -β1 ) REMARK: Check how your software estimates EGARCH. For Example in Eviews and the model is defined as: lnοΟπt2 ο = Οπ + Ξ²π½ lnοΟπt2-β1 ο + Ξ±πΌο at -β1 Οπt -β1 ο + Ξ³πΎο οat -β1 ο Οπt -β1 ο where Οπ > 0, Ξ±πΌ, Ξ³πΎ β βο΅ are real constants. When at is negative (positive), then the effect of the shock on the log of conditional variance is -Ξ±πΌ+Ξ³πΎ (Ξ±πΌ+Ξ³πΎ). Homework #4 Deadline: Tue 11.11.2014 Reading: Starica, C. βIs GARCH (1, 1) as good a model as the Nobel prize accolades would imply.β Preprint (2003). https://notendur.hi.is/~helgito/NobelGarch.pdf Homework #5 QF_I_Lecture5.cdf Homework #5 Deadline: Tue 18.11.2014 3:00 PM Email the homework to [email protected] Estimate any GARCH family model on two non-overlapping time periods (use preferably stock prices and different dataset than in HW 3) and perform out-of-sample forecast (arbitrary period). Compare the estimated GARCH family model forecast with the EWMA forecast using MSE. As a volatility proxy use squared returns. (see paper Startica 2003). 11
© Copyright 2024