Risk Management and Time Series

Similar documents
IEOR E4602: Quantitative Risk Management

Financial Econometrics

Course information FN3142 Quantitative finance

The University of Chicago, Booth School of Business Business 41202, Spring Quarter 2012, Mr. Ruey S. Tsay. Solutions to Final Exam

Amath 546/Econ 589 Univariate GARCH Models

MEASURING PORTFOLIO RISKS USING CONDITIONAL COPULA-AR-GARCH MODEL

Financial Risk Forecasting Chapter 9 Extreme Value Theory

Lecture Note 9 of Bus 41914, Spring Multivariate Volatility Models ChicagoBooth

Chapter 5 Univariate time-series analysis. () Chapter 5 Univariate time-series analysis 1 / 29

12. Conditional heteroscedastic models (ARCH) MA6622, Ernesto Mordecki, CityU, HK, 2006.

Introduction to Risk Management

The University of Chicago, Booth School of Business Business 41202, Spring Quarter 2011, Mr. Ruey S. Tsay. Solutions to Final Exam.

Modelling financial data with stochastic processes

Backtesting Trading Book Models

The University of Chicago, Booth School of Business Business 41202, Spring Quarter 2009, Mr. Ruey S. Tsay. Solutions to Final Exam

Financial Econometrics Jeffrey R. Russell. Midterm 2014 Suggested Solutions. TA: B. B. Deng

ADVANCED OPERATIONAL RISK MODELLING IN BANKS AND INSURANCE COMPANIES

Time series: Variance modelling

The University of Chicago, Booth School of Business Business 41202, Spring Quarter 2010, Mr. Ruey S. Tsay Solutions to Final Exam

The University of Chicago, Booth School of Business Business 41202, Spring Quarter 2017, Mr. Ruey S. Tsay. Solutions to Final Exam

VALUE AT RISK BASED ON ARMA-GARCH AND GARCH-EVT: EMPIRICAL EVIDENCE FROM INSURANCE COMPANY STOCK RETURN

Conditional Heteroscedasticity

Statistical Inference and Methods

ARCH and GARCH models

Lecture 5a: ARCH Models

Variance clustering. Two motivations, volatility clustering, and implied volatility

Booth School of Business, University of Chicago Business 41202, Spring Quarter 2010, Mr. Ruey S. Tsay. Solutions to Midterm

Booth School of Business, University of Chicago Business 41202, Spring Quarter 2012, Mr. Ruey S. Tsay. Solutions to Midterm

Modelling Returns: the CER and the CAPM

Chapter 6 Forecasting Volatility using Stochastic Volatility Model

Scaling conditional tail probability and quantile estimators

Two hours. To be supplied by the Examinations Office: Mathematical Formula Tables and Statistical Tables THE UNIVERSITY OF MANCHESTER

Financial Mathematics III Theory summary

Some Simple Stochastic Models for Analyzing Investment Guarantees p. 1/36

Measuring Financial Risk using Extreme Value Theory: evidence from Pakistan

The GARCH-GPD in market risks modeling: An empirical exposition on KOSPI

Modelling Joint Distribution of Returns. Dr. Sawsan Hilal space

Booth School of Business, University of Chicago Business 41202, Spring Quarter 2014, Mr. Ruey S. Tsay. Solutions to Midterm

FE570 Financial Markets and Trading. Stevens Institute of Technology

Portfolio Optimization. Prof. Daniel P. Palomar

SOCIETY OF ACTUARIES Quantitative Finance and Investment Advanced Exam Exam QFIADV AFTERNOON SESSION

Graduate School of Business, University of Chicago Business 41202, Spring Quarter 2007, Mr. Ruey S. Tsay. Solutions to Final Exam

Backtesting Trading Book Models

MEASURING EXTREME RISKS IN THE RWANDA STOCK MARKET

Vladimir Spokoiny (joint with J.Polzehl) Varying coefficient GARCH versus local constant volatility modeling.

The Fundamental Review of the Trading Book: from VaR to ES

Optimal Hedge Ratio and Hedging Effectiveness of Stock Index Futures Evidence from India

19 Risk Management The Need for Risk Management

Study on Dynamic Risk Measurement Based on ARMA-GJR-AL Model

Lecture 6: Non Normal Distributions

Booth School of Business, University of Chicago Business 41202, Spring Quarter 2016, Mr. Ruey S. Tsay. Solutions to Midterm

Short-selling constraints and stock-return volatility: empirical evidence from the German stock market

Bloomberg. Portfolio Value-at-Risk. Sridhar Gollamudi & Bryan Weber. September 22, Version 1.0

Amath 546/Econ 589 Univariate GARCH Models: Advanced Topics

An Application of Extreme Value Theory for Measuring Financial Risk in the Uruguayan Pension Fund 1

FINITE SAMPLE DISTRIBUTIONS OF RISK-RETURN RATIOS

Risk Measurement in Credit Portfolio Models

VaR Prediction for Emerging Stock Markets: GARCH Filtered Skewed t Distribution and GARCH Filtered EVT Method

Much of what appears here comes from ideas presented in the book:

The Great Moderation Flattens Fat Tails: Disappearing Leptokurtosis

Week 2 Quantitative Analysis of Financial Markets Hypothesis Testing and Confidence Intervals

A Copula-GARCH Model of Conditional Dependencies: Estimating Tehran Market Stock. Exchange Value-at-Risk

IEOR E4602: Quantitative Risk Management

Stochastic Volatility (SV) Models

Graduate School of Business, University of Chicago Business 41202, Spring Quarter 2007, Mr. Ruey S. Tsay. Midterm

Advanced Extremal Models for Operational Risk

Financial Time Series and Their Characterictics

Quantitative Risk Management

High-Frequency Data Analysis and Market Microstructure [Tsay (2005), chapter 5]

Discussion of Elicitability and backtesting: Perspectives for banking regulation

Forecasting Volatility of Hang Seng Index and its Application on Reserving for Investment Guarantees. Herbert Tak-wah Chan Derrick Wing-hong Fung

INTERTEMPORAL ASSET ALLOCATION: THEORY

Lecture Note of Bus 41202, Spring 2008: More Volatility Models. Mr. Ruey Tsay

Introduction to Algorithmic Trading Strategies Lecture 8

An Introduction to Statistical Extreme Value Theory

Strategies for High Frequency FX Trading

Martingale Pricing Theory in Discrete-Time and Discrete-Space Models

IEOR E4703: Monte-Carlo Simulation

MFM Practitioner Module: Quantitative Risk Management. John Dodson. September 6, 2017

Tests for Two ROC Curves

Financial Time Series Analysis (FTSA)

John Hull, Risk Management and Financial Institutions, 4th Edition

Value at Risk Estimation Using Extreme Value Theory

ROM SIMULATION Exact Moment Simulation using Random Orthogonal Matrices

Linda Allen, Jacob Boudoukh and Anthony Saunders, Understanding Market, Credit and Operational Risk: The Value at Risk Approach

FINANCIAL ECONOMETRICS AND EMPIRICAL FINANCE MODULE 2

Value at Risk Ch.12. PAK Study Manual

Forecasting Stock Index Futures Price Volatility: Linear vs. Nonlinear Models

Chapter 5 Univariate time-series analysis. () Chapter 5 Univariate time-series analysis 1 / 59

Projects for Bayesian Computation with R

ANALYZING VALUE AT RISK AND EXPECTED SHORTFALL METHODS: THE USE OF PARAMETRIC, NON-PARAMETRIC, AND SEMI-PARAMETRIC MODELS

Does Systemic Risk in the Financial Sector Predict Future Economic Downturns?

Cross-Sectional Distribution of GARCH Coefficients across S&P 500 Constituents : Time-Variation over the Period

Financial Risk Forecasting Chapter 5 Implementing Risk Forecasts

A potentially useful approach to model nonlinearities in time series is to assume different behavior (structural break) in different subsamples

Final Exam Suggested Solutions

Estimating Bivariate GARCH-Jump Model Based on High Frequency Data : the case of revaluation of Chinese Yuan in July 2005

The University of Chicago, Booth School of Business Business 41202, Spring Quarter 2011, Mr. Ruey S. Tsay. Final Exam

Booth School of Business, University of Chicago Business 41202, Spring Quarter 2013, Mr. Ruey S. Tsay. Midterm

Jaime Frade Dr. Niu Interest rate modeling

Transcription:

IEOR E4602: Quantitative Risk Management Spring 2016 c 2016 by Martin Haugh Risk Management and Time Series Time series models are often employed in risk management applications. They can be used to estimate conditional loss distributions which in turn can be used to estimate risk measures such as VaR and CVaR. In these notes we will briefly describe GARCH models which are often used in financial applications. In addition to describing how these models can be used to estimate loss measures based on the conditional loss distribution, we can also use GARCH models for more sophisticated risk management applications. These applications include using GARCH to model the dynamics of principal components in a factor model or combining GARCH with extreme value theory to estimate the conditional probability of extreme losses in a given portfolio. We note that these methods can of course also be used with other time series models. 1 A Brief Introduction to GARCH Models Let r t denote the log-return of a portfolio between periods t 1 and t and let F t denote the information filtration generated by these returns. We assume where E[r t F t 1 ] = µ t and r t = µ t + a t (1) σ 2 t := Var (r t F t 1 ) = Var (a t F t 1 ) (2) Note that µ t and σ t are known at time t 1 and are therefore predictable processes. It is common to assume that µ t follows a stationary time series model such as an ARMA(m, s) process in which case µ t = φ 0 + m φ i r t i + i=1 s γ j a t j (3) where the φ i s and γ j s are parameters to be estimated. Note that a t is the innovation or random component of the log-return and in practice, the conditional variance of this innovation, σ 2 t, is time varying and stochastic. GARCH models may be used to model this dynamics behavior of conditional variances. In particular, we say σ 2 t follows a GARCH(p, q) model 1 if j=1 a t = σ t ɛ t (4) p q and σt 2 = α 0 + α i a 2 t i + β j σt j 2 (5) i=1 where α 0 > 0, α i 0 for i = 1,..., p, β j 0 for j = 1,..., q and where the ɛ t s are IID random variables with mean zero and variance one. It should be clear from (4) and (5) that the volatility clustering effect we observe in the market-place is therefore captured by the GARCH(p, q) model. Fat tails are also captured by this model in the sense that the log-returns in (1) have heavier tails (when a t satisfies (4) and (5)) than the corresponding normal distribution. GARCH models are typically estimated jointly with the conditional mean equation in (3) using maximum likelihood techniques. The fitted model can then be checked for goodness-of-fit using standard diagnostic methods. See, for example, Ruppert (2011) or Tsay (2010). 1 See Chapter 18 of Statistics and Data Analysis for Financial Engineering (2011) by Ruppert or Chapter 3 of Analysis of Financial Time Series (2010) by Tsay for a discussion of volatility modeling in general and additional details on the GARCH(p, q) model. Our modal description here follows Tsay. The acronym GARCH stands for generalized autoregressive conditional heteroscedastic. j=1

Risk Management and Time Series 2 1.1 The GARCH(1, 1) Model The GARCH(1, 1) is obtained when we take p = q = 1 in (5) and it is the most commonly used GARCH model in practice. It is not too difficult to see that the GARCH(1, 1) model is stationary if and only α 1 + β 1 < 1 in which case the unconditional variance, θ, is given by α 0 θ =. 1 α 1 β 1 Exercise 1 Under what condition(s) is the GARCH(p, q) model stationary? Give an expression for the unconditional variance, θ, when these condition(s) are satisfied. Exercise 2 Assuming α 1 + β 1 < 1 show that we may write σt+1 2 = κθ + (1 κ) [ (1 λ)a 2 t + λσt 2 ] for some constants κ and λ. What are the values of κ and λ? Forecasting with the GARCH(1, 1) Model Noting that E[rt+1 2 F t ] = σt+1 2 we can use (6) to obtain E[σt+2 2 F t ] = κθ + (1 κ) [ (1 λ)e[a 2 t+1 F t ] + λσt+1 2 ] = κθ + (1 κ)σt+1 2 (7) and a similar argument then shows that (7) generalizes to E[σ 2 t+n F t ] = κθ [1 + (1 κ) + + (1 κ) n 2 ] + (1 κ) n 1 σ 2 t+1. (8) It follows from (8) (why?) that E[σ 2 t+n F t ] θ as n so that θ is the best estimate of the long-term conditional variance. Assuming we know σ 2 1 we can use (6) repeatedly together with the observed returns, i.e. the r i s for i = 1,..., t, and the ML estimates of κ, θ, λ and the µ t s to compute an estimate of σ t+1 at time t. In practice we do not know σ 2 1 and so we typically replace it with the ML estimate of the unconditional variance, θ, or an estimate of the sample variance of the a t s. We can then use (8) to forecast return variances n periods ahead. Forecasts of the mean return n periods ahead can be computed in a similar manner by working with the conditional mean equations of (1) and (3). 1.2 Fitting GARCH Models in R When the conditional mean equation satisfies (1) and (3) and the volatility dynamics are GARCH(p, q) as given by (4) and (5) then we have an ARMA(m, s) / GARCH(p, q) model. This model can be fit in R using the garchfit function which is part of the fgarch library. The following code fragment is taken from the R script Ex18.3-18.4Fig18.4.R that is associated with Chapter 18 of Ruppert s Statistics and Data Analysis for Financial Engineering (2011). A Code Fragment from the Script Ex18.3-18.4Fig18.4.R library(fgarch) data(bmw,package="evir") bmw.garch_norm = garchfit(~arma(1,0)+garch(1,1),data=bmw,cond.dist="norm") options(digits=3) summary(bmw.garch_norm) (6) In this code fragment an ARMA(1, 0) / GARCH(1, 1) model was fit to BMW return data. Of course it s important to check how well the fitted model actually fits the data by performing various diagnostics tests. In this example Ruppert ultimately settled on an ARMA(1, 1) / GARCH(1, 1) model where the ɛ t s had a t-distribution rather than the normal distribution used in the code fragment above. Typing? garchfit at the R prompt will provide further details on the garchfit function.

Risk Management and Time Series 3 2 Applications to Risk Management Time series models can be used to estimate conditional loss distributions as well as risk measures associated with these loss distributions. Towards this end, we need to be able to construct a time series of historical returns on a portfolio assuming the current portfolio composition. Whether or not this is possible will depend on whether historical return data is available for the individual securities in the portfolio. More generally, we need historical data for the changes in the risk factors, X, that drive the portfolio loss distribution. This data is usually available for equities, currencies, futures and government bonds. It is also often available for exchange-traded derivatives but is generally not available for OTC securities, structured products and other exotic securities. 2.1 Estimating Risk Measures If we assume that historical data for the changes in the risk factors, X, are available then we can use this data to construct a time series of portfolio returns assuming the current portfolio composition. We can then fit a time series model to these portfolio returns and use the fitted model to estimate risk measures such as VaR or ES. Suppose for example that today is date t and we wish to estimate the portfolio VaR over the period t to t + 1. Our fitted time series model will then take the form r t+1 = µ t+1 + a t+1 (9) a t+1 = σ t+1 ɛ t+1 (10) where µ t+1 and σ t+1 are the time t estimates of the next periods mean log-return and volatility. They are obtained of course from the MLE estimates of the fitted time series model. In the setup of Section 1, we would obtain µ t+1 and σ t+1 from the fitted versions of (3) and (5), respectively. We could now use (9) and (10) to obtain the desired risk measures. For example, we could estimate the current period s VaR α and ÊS α according to VaR t α = µ t+1 + σ t+1 q α (ɛ t+1 ) (11) ÊS t α = µ t+1 + σ t+1 ES α (ɛ t+1 ). (12) The distribution of ɛ t+1 will have been estimated when the time-series of portfolio returns was fitted. Note that (11) and (12) are estimates of loss measures based on the conditional loss distribution. We therefore expect them to be considerably more accurate than estimates based on the unconditional loss distribution, particularly over short horizons. Figure 1 displays the daily price level and daily returns of the S&P 500 from January 2006 to July 2011. Figure 2 then displays the daily VaR.99 violations for the S&P 500 over this period where the daily VaR was estimated using one of four possible methods: (1) historical Monte-Carlo (2) a normal approximation (3) a t 6 approximation and (4) a GARCH(1, 1) model. Each method used a rolling window of one year s worth of daily returns to estimate the VaR. Note that only the GARCH model attempts to estimate the conditional loss distribution. Over this time period the percentages of VaR violations for the four methods were 1.86%, 2.48%, 1.95% and 1.06%, respectively. Clearly the GARCH model performs best according to this metric. Equally importantly we see that the GARCH violations are not clustered and appear much closer to an IID sequence of Bernoulli(p =.01) trials than the VaR violations of the unconditional methods. (Standard statistical tests could be used to test this observation more formally.) This is particularly noticeable during the height of the global financial crisis in the latter half of 2009. The unconditional methods were clearly underestimating VaR in this extremely volatile period. 2.2 Combining Time Series Models with Factor Models Let X t+1 represent the changes in n risk factors between periods t and t + 1. Suppose also that we have a factor model of the form X t+1 = µ + B F t+1 + ɛ t+1 (13)

Risk Management and Time Series 4 Figure 1: Price Level and Returns for the S&P 500

Risk Management and Time Series 5 Figure 2: VaR.99 violations for the S&P500. The first three methods (Historical MC, Normal Approx and t Approx) all estimate the VaR using a rolling window of one year s worth of daily closing prices. They are therefore largely based on approximating the unconditional loss distribution. In the case of the t approximation we simply set the degrees of freedom equal to 6. The fourth method (GARCH(1, 1)) is based on approximating the conditional loss distribution with the VaR estimated via (11) with µ t+1 simply taken to be the mean daily return over the previous year.

Risk Management and Time Series 6 where B is an n k matrix of factor loadings, F t+1 is a k 1 vector of factor returns and ɛ t+1 is an n 1 random vector of idiosyncratic error terms which are uncorrelated and have mean zero. We also assume k < n, that F t+1 has a positive-definite covariance matrix and that each component of F t+1 is uncorrelated with each component of ɛ t+1. All of these statements are conditional upon the information available at time t. Equation (13) is then a factor model for X. Given time series data on X t we could simply use the factor model to compute a univariate time series of portfolio losses and then estimate risk measures as described in Section 2.1. An alternative approach, however, would be to fit separate time series models to each factor, i.e. each component of X. We could still use the fitted time series models to estimate conditional loss measures as in (11) and (12) but we could also use the factor model to perform a scenario analysis, however. In particular, we could use the fitted time series models to provide guidance on the range of plausible factor stresses. For example, we could use a principal components analysis to construct a factor model and then fit a separate GARCH model to the time series of each principal component. The estimated conditional variance of each principal component could then be used to determine the range of factor stresses. This is in contrast to the method of using the eigen values to determine the range of factor stresses. Since the eigen values are estimates of the unconditional factor variances we would generally prefer the GARCH approach to construct plausible scenarios. 2.3 Computing Dynamic Risk Measures Using Extreme Value Theory We can also combine extreme value theory (EVT) with time series methods to estimate the tails of conditional loss distributions. Suppose for example, that we have fitted a model such as a GARCH or ARMA / GARCH model to a time series of portfolio returns and have used to fitted model to compute risk measures as in (11) and (12). These estimates will have been obtained assuming that the ɛ t s are IID with some fixed distribution such as the normal or t distribution. We can use the fitted time series to compute the residuals, ɛ t, which should be approximately IID if the fitted time series model is a good fit. We can then apply EVT to the fitted residuals. In particular, we can fit the generalized Pareto distribution (GPD) to the tails of the fitted residuals and estimate the corresponding risk measures to again obtain VaR t α = µ t+1 + σ t+1 q α (ɛ GPD t+1) (14) ÊS t α = µ t+1 + σ t+1 ES α (ɛ GPD t+1) (15) where the superscript GPD in (14) and (15) is used to emphasize that the ɛ t s (or their tails), follow a GPD distribution. Note that there appears to be an inconsistency here in that the original time series model was fitted using one set of assumptions for the ɛ t s, i.e. that they are normally or t distributed, and that a different assumption is used in (14) and (15), i.e. that they have a GPD distribution. This does not present a problem due to the theory of quasi-maximum likelihood estimation (QMLE) which effectively states that µ t+1 and σ t+1 are still consistent estimators of µ t+1 and σ t+1 even though the distributions of the ɛ t s were misspecified. Section 7.2.6 (which refers to results in Section 2.3.6) of Quantitative Risk Management by McNeil, Frey and Embrechts describes several numerical experiments that compare different methods for estimating VaR or ES. They conclude that methods based on GARCH-EVT, i.e. estimators such as (14) and (15), are most accurate. Note that we could also have used the Hill estimator as an alternative to the GPD distribution when estimating VaR t α and ÊSt α. Section 19.6 of Ruppert provides some examples and should be consulted for further details.