Applied Econometrics with. Financial Econometrics

Similar documents
Lecture Note of Bus 41202, Spring 2017: More Volatility Models. Mr. Ruey Tsay

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

Financial Time Series Lecture 4: Univariate Volatility Models. Conditional Heteroscedastic Models

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

Econometrics III: Financial Time Series

Econometrics III: Financial Time Series

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

Financial Time Series Analysis: Part II

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

Conditional Heteroscedasticity

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

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

Time series: Variance modelling

Lecture 5a: ARCH Models

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

Chapter 4 Level of Volatility in the Indian Stock Market

GARCH Models for Inflation Volatility in Oman

Amath 546/Econ 589 Univariate GARCH Models

Projects for Bayesian Computation with R

Research Article The Volatility of the Index of Shanghai Stock Market Research Based on ARCH and Its Extended Forms

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

VOLATILITY. Time Varying Volatility

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

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

Time series analysis on return of spot gold price

Risk Management and Time Series

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

NORTHERN ILLINOIS UNIVERSITY. Application of Time Series Models (ARIMA, GARCH, and ARMA-GARCH) for Stock Market Forecasting. A Thesis Submitted to the

Modeling Exchange Rate Volatility using APARCH Models

Indian Institute of Management Calcutta. Working Paper Series. WPS No. 797 March Implied Volatility and Predictability of GARCH Models

Volatility Analysis of Nepalese Stock Market

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

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

Lecture 1: Empirical Properties of Returns

Financial Times Series. Lecture 8

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

Downside Risk: Implications for Financial Management Robert Engle NYU Stern School of Business Carlos III, May 24,2004

GARCH Models. Instructor: G. William Schwert

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

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

Modelling volatility - ARCH and GARCH models

Lecture Note: Analysis of Financial Time Series Spring 2017, Ruey S. Tsay

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

Time Series Models on High Frequency Trading Data of SHA:600519

Modelling Stock Market Return Volatility: Evidence from India

Financial Econometrics Notes. Kevin Sheppard University of Oxford

Bayesian Estimation of the Markov-Switching GARCH(1,1) Model with Student-t Innovations

Financial Econometrics: Problem Set # 3 Solutions

STAT758. Final Project. Time series analysis of daily exchange rate between the British Pound and the. US dollar (GBP/USD)

Forecasting Volatility of USD/MUR Exchange Rate using a GARCH (1,1) model with GED and Student s-t errors

Properties of financail time series GARCH(p,q) models Risk premium and ARCH-M models Leverage effects and asymmetric GARCH models.

Quantitative Finance Conditional Heteroskedastic Models

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

Recent analysis of the leverage effect for the main index on the Warsaw Stock Exchange

ARIMA ANALYSIS WITH INTERVENTIONS / OUTLIERS

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

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

MODELING EXCHANGE RATE VOLATILITY OF UZBEK SUM BY USING ARCH FAMILY MODELS

Assicurazioni Generali: An Option Pricing Case with NAGARCH

Lecture Note: Analysis of Financial Time Series Spring 2008, Ruey S. Tsay. Seasonal Time Series: TS with periodic patterns and useful in

Financial Times Series. Lecture 6

Modelling Stock Returns Volatility on Uganda Securities Exchange

Fin285a:Computer Simulations and Risk Assessment Section 7.1 Modeling Volatility: basic models Daníelson, ,

Modelling Joint Distribution of Returns. Dr. Sawsan Hilal space

Time Series with R. Summer School on Mathematical Methods in Finance and Economy. Thibault LAURENT. Toulouse School of Economics

Course information FN3142 Quantitative finance

Testing the Long-Memory Features in Return and Volatility of NSE Index

ARCH and GARCH models

INTERNATIONAL JOURNAL OF ADVANCED RESEARCH IN ENGINEERING AND TECHNOLOGY (IJARET)

Volatility Model for Financial Market Risk Management : An Analysis on JSX Index Return Covariance Matrix

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

Financial Econometrics

Portfolio construction by volatility forecasts: Does the covariance structure matter?

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

Financial Risk Forecasting Chapter 5 Implementing Risk Forecasts

Global Volatility and Forex Returns in East Asia

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

Modeling Long Memory in REITs

Forecasting Value at Risk in the Swedish stock market an investigation of GARCH volatility models

REALIZED VOLATILITY MODEL FOR MARKET RISKMEASUREMENT IN INDONESIA STOCK EXCHANGE

The Impact of Falling Crude Oil Price on Financial Markets of Advanced East Asian Countries

Market Risk Management for Financial Institutions Based on GARCH Family Models

Financial Econometrics Lecture 5: Modelling Volatility and Correlation

Oil Price Effects on Exchange Rate and Price Level: The Case of South Korea

Regime-dependent Characteristics of KOSPI Return

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

Modeling the volatility of FTSE All Share Index Returns

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

MODELING ROMANIAN EXCHANGE RATE EVOLUTION WITH GARCH, TGARCH, GARCH- IN MEAN MODELS

ARCH modeling of the returns of first bank of Nigeria

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

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

Statistical Models and Methods for Financial Markets

Volatility Clustering of Fine Wine Prices assuming Different Distributions

On modelling of electricity spot price

Computer Lab Session 2 ARIMA, ARCH and GARCH Models

Forecasting jumps in conditional volatility The GARCH-IE model

Exchange Rate Regime Classification with Structural Change Methods

Empirical Analysis of the US Swap Curve Gough, O., Juneja, J.A., Nowman, K.B. and Van Dellen, S.

Dependence Structure between TOURISM and TRANS Sector Indices of the Stock Exchange of Thailand

Transcription:

Applied Econometrics with Extension 1 Financial Econometrics Christian Kleiber, Achim Zeileis 2008 2017 Applied Econometrics with R Ext. 1 Financial Econometrics 0 / 21

Financial Econometrics Overview Christian Kleiber, Achim Zeileis 2008 2017 Applied Econometrics with R Ext. 1 Financial Econometrics 1 / 21

Overview Further packages for time series analysis dse Multivariate time series modeling with state-space and vector ARMA (VARMA) models. FinTS R companion to Tsay (2005). forecast Univariate time series forecasting, including exponential smoothing, state space, and ARIMA models. fracdiff ML estimation of ARFIMA models and semiparametric estimation of the fractional differencing parameter. longmemo Convenience functions for long-memory models. mfilter Time series filters, including Baxter-King, Butterworth, and Hodrick-Prescott. Rmetrics Some 20 packages for financial engineering and computational finance, including GARCH modeling in fgarch. tsdyn Nonlinear time series models: STAR, ESTAR, LSTAR. vars (Structural) vector autoregressive (VAR) models Christian Kleiber, Achim Zeileis 2008 2017 Applied Econometrics with R Ext. 1 Financial Econometrics 2 / 21

Financial Econometrics GARCH Modelling via tseries Christian Kleiber, Achim Zeileis 2008 2017 Applied Econometrics with R Ext. 1 Financial Econometrics 3 / 21

GARCH models MarkPound 2 1 0 1 2 3 0 500 1000 1500 2000 Time Christian Kleiber, Achim Zeileis 2008 2017 Applied Econometrics with R Ext. 1 Financial Econometrics 4 / 21

GARCH models tseries function garch() fits GARCH(p, q) with Gaussian innovations. Default is GARCH(1, 1): y t = σ t ν t, ν t N (0, 1) i.i.d., σ 2 t = ω + αy 2 t 1 + βσ 2 t 1, ω > 0, α > 0, β 0. Example: DEM/GBP FX returns for 1984-01-03 through 1991-12-31 R> library("tseries") R> mp <- garch(markpound, grad = "numerical", trace = FALSE) R> summary(mp) Call: garch(x = MarkPound, grad = "numerical", trace = FALSE) Model: GARCH(1,1) Residuals: Min 1Q Median 3Q Max -6.79739-0.53703-0.00264 0.55233 5.24867 Christian Kleiber, Achim Zeileis 2008 2017 Applied Econometrics with R Ext. 1 Financial Econometrics 5 / 21

GARCH models Coefficient(s): Estimate Std. Error t value Pr(> t ) a0 0.0109 0.0013 8.38 <2e-16 a1 0.1546 0.0139 11.14 <2e-16 b1 0.8044 0.0160 50.13 <2e-16 Diagnostic Tests: Jarque Bera Test data: Residuals X-squared = 1100, df = 2, p-value <2e-16 Box-Ljung test data: Squared.Residuals X-squared = 2.5, df = 1, p-value = 0.1 Remarks: Warning: OPG standard errors assuming Gaussian innovations. More flexible GARCH modeling via garchfit() in fgarch. Christian Kleiber, Achim Zeileis 2008 2017 Applied Econometrics with R Ext. 1 Financial Econometrics 6 / 21

Financial Econometrics GARCH Modelling via Rmetrics Christian Kleiber, Achim Zeileis 2008 2017 Applied Econometrics with R Ext. 1 Financial Econometrics 7 / 21

Rmetrics Rmetrics Initiated and mainly developed by D. Würtz (ETH, Dept. of Theoretical Physics). Environment for financial engineering and computational finance. Currently comprises some 20 packages: farma, fasianoptions, fassets, fbasics, fbonds, fcalendar, fcopulae, fecofin, fexoticoptions, fextremes, fgarch, fimport, fmultivar, fnonlinear, foptions, fportfolio, fregression, fseries, ftrading, funitroots, futilities. Unified framework, initially designed for teaching purposes. Unified naming conventions via standardized wrappers. For example, arima() from stats appears as armafit(). We consider GARCH modelling via garchfit() from fgarch. Christian Kleiber, Achim Zeileis 2008 2017 Applied Econometrics with R Ext. 1 Financial Econometrics 8 / 21

GARCH modeling via garchfit() Example: DEM/GBP FX returns for 1984-01-03 through 1991-12-31 R> library("fgarch") R> mp_gf <- garchfit(~garch(1,1), data = MarkPound, trace = FALSE) R> summary(mp_gf) Title: GARCH Modelling Call: garchfit(formula = ~garch(1, 1), data = MarkPound, trace = FALSE) Mean and Variance Equation: data ~ garch(1, 1) <environment: 0x5613f8a63330> [data = MarkPound] Conditional Distribution: norm Coefficient(s): mu omega alpha1 beta1 Christian Kleiber, Achim Zeileis 2008 2017 Applied Econometrics with R Ext. 1 Financial Econometrics 9 / 21

GARCH modeling via garchfit() -0.0061903 0.0107614 0.1531341 0.8059737 Std. Errors: based on Hessian Error Analysis: Estimate Std. Error t value Pr(> t ) mu -0.006190 0.008462-0.732 0.464447 omega 0.010761 0.002838 3.793 0.000149 alpha1 0.153134 0.026422 5.796 6.8e-09 beta1 0.805974 0.033381 24.144 < 2e-16 Log Likelihood: -1107 normalized: -0.5606 Description: Thu Oct 12 13:41:42 2017 by user: zeileis Standardised Residuals Tests: Statistic p-value Jarque-Bera Test R Chi^2 1060 0 Christian Kleiber, Achim Zeileis 2008 2017 Applied Econometrics with R Ext. 1 Financial Econometrics 10 / 21

GARCH modeling via garchfit() Shapiro-Wilk Test R W 0.9623 0 Ljung-Box Test R Q(10) 10.12 0.4299 Ljung-Box Test R Q(15) 17.04 0.3163 Ljung-Box Test R Q(20) 19.3 0.5026 Ljung-Box Test R^2 Q(10) 9.063 0.5262 Ljung-Box Test R^2 Q(15) 16.08 0.3769 Ljung-Box Test R^2 Q(20) 17.51 0.6198 LM Arch Test R TR^2 9.771 0.636 Information Criterion Statistics: AIC BIC SIC HQIC 1.125 1.137 1.125 1.129 Remarks: Benchmark data set for GARCH(1, 1), see McCullough and Renfro (J. Economic and Social Measurement 1998). garchfit() hits the benchmark. Note that constant included by default (not possible with tseries). Standard errors are from the Hessian. Christian Kleiber, Achim Zeileis 2008 2017 Applied Econometrics with R Ext. 1 Financial Econometrics 11 / 21

More on garchfit() garchfit() provides ARMA models with GARCH-type innovations Various innovation distributions: Gaussian, t, GED, including skewed generalizations. Several algorithms for maximizing log-likelihood, default is nlminb. Two methods for initializing recursions. Christian Kleiber, Achim Zeileis 2008 2017 Applied Econometrics with R Ext. 1 Financial Econometrics 12 / 21

ARMA models with GARCH components Mean equation is ARMA y t = µ + m φ i y t i + t i n θ j ε t j + ε t t j Variance equation for GARCH(p, q) is ε t = σ t ν t, ν t D ϑ (0, 1) i.i.d., p σt 2 = ω + α i ε 2 t i + i=1 q β j σt j. 2 t j Christian Kleiber, Achim Zeileis 2008 2017 Applied Econometrics with R Ext. 1 Financial Econometrics 13 / 21

ARMA models with APARCH components Mean equation is ARMA y t = µ + m φ i y t i + t i n θ j ε t j + ε t t j Variance equation for APARCH(p, q) is ε t = σ t ν t, ν t D ϑ (0, 1) i.i.d., p σ δ t = ω + α i ( ε t i γ i ε t i ) δ + i=1 q β j σt j. δ t j where δ > 0 and the leverage parameters 1 < γ i < 1. APARCH comprises various GARCH-type models, including ARCH, GARCH, Taylor/Schwert-GARCH, GJR-GARCH, TARCH, NARCH, log-arch,... Christian Kleiber, Achim Zeileis 2008 2017 Applied Econometrics with R Ext. 1 Financial Econometrics 14 / 21

ARMA models with APARCH components More complex example: Ding, Granger, Engle (J. Emp. Fin. 1993) MA(1)-APARCH(1,1) model for S&P 500 returns (17055 observations) R> sp_ap <- garchfit(~ arma(0,1) + aparch(1,1), + data = ts(100 * sp500dge), trace = FALSE) Excerpt from summary(sp_ap): Std. Errors: based on Hessian Error Analysis: Estimate Std. Error t value Pr(> t ) mu 0.020595 0.006342 3.247 0.00116 ma1 0.144709 0.008346 17.338 < 2e-16 omega 0.009991 0.001066 9.373 < 2e-16 alpha1 0.083792 0.004343 19.293 < 2e-16 gamma1 0.374182 0.028027 13.351 < 2e-16 Results broadly agree with original paper (p. 99, eq. (19)), where algorithm was BHHH. (Note: percentage returns!) Christian Kleiber, Achim Zeileis 2008 2017 Applied Econometrics with R Ext. 1 Financial Econometrics 15 / 21

ARMA models with APARCH components Further ARCH-type models: Taylor-Schwert ARCH (compare Ding, Granger, Engle, eq. (16)) R> sp_tsarch <- garchfit(~ arma(0,1) + garch(1,1), delta = 1, + data = ts(100 * sp500dge), trace = FALSE) Threshold ARCH (TARCH) R> sp_tarch <- garchfit(~ arma(0,1) + garch(1,1), delta = 1, + leverage = TRUE, data = ts(100 * sp500dge), trace = FALSE) GJR-GARCH R> sp_tarch <- garchfit(~ arma(0,1) + garch(1,1), delta = 2, + leverage = TRUE, data = ts(100 * sp500dge), trace = FALSE) Christian Kleiber, Achim Zeileis 2008 2017 Applied Econometrics with R Ext. 1 Financial Econometrics 16 / 21

ARMA models with APARCH components Specifying innovation distributions: cond.dist specification of conditional distributions allowing for "dnorm", "dged", "dstd", "dsnorm", "dsged", "dsstd". Three of these ("dsnorm", "dsged", "dsstd") are skewed. Thus GARCH(1,1) with Student-t (shape parameter estimated) R> sp_garch_std <- garchfit(~ garch(1,1), cond.dist = "dstd", + data = ts(100 * sp500dge), trace = FALSE) GARCH(1,1) with Student-t 3 (shape parameter fixed at 3) R> sp_garch_std3 <- garchfit(~ garch(1,1), + cond.dist = "dstd", shape = 3, include.shape = FALSE, + data = ts(100 * sp500dge), trace = FALSE) GARCH(1,1) with Laplace (a GED with shape fixed at 1) R> sp_garch_ged <- garchfit(~ garch(1,1), + cond.dist = "dged", shape = 1, include.shape = FALSE, + data = ts(100 * sp500dge), trace = FALSE) Christian Kleiber, Achim Zeileis 2008 2017 Applied Econometrics with R Ext. 1 Financial Econometrics 17 / 21

ARMA models with APARCH components Further remarks: More details regarding fitting process, defaults, etc. upon setting trace = TRUE plot() method offers 12 types of plots: time series, conditional std. dev., ACF of obs. and squared obs., residuals, ACF of residuals and squared residuals,etc. Example: (ARMA-APARCH cont d) Series with superimposed conditional std. dev. is R> plot(sp_ap, which = 3) Christian Kleiber, Achim Zeileis 2008 2017 Applied Econometrics with R Ext. 1 Financial Econometrics 18 / 21

ARMA models with APARCH components Christian Kleiber, Achim Zeileis 2008 2017 Applied Econometrics with R Ext. 1 Financial Econometrics 19 / 21

Financial Econometrics Extensions Christian Kleiber, Achim Zeileis 2008 2017 Applied Econometrics with R Ext. 1 Financial Econometrics 20 / 21

Additional tools for financial engineering Portfolio management: fportfolio, portfolio offer portfolio selection and optimization. Risk management: Classical Value-at-Risk: VaR. Extreme Value Theory models: evd, evdbayes, evir, extrremes, ismec, POT. Multivariate modeling: fcopulae, copula, fgac High-frequency data: realized. More complete overview in CRAN Task View Empirical Finance at http://cran.r-project.org/view=finance Christian Kleiber, Achim Zeileis 2008 2017 Applied Econometrics with R Ext. 1 Financial Econometrics 21 / 21