Analysis of Financial Time Series with EViews

Similar documents
Some useful concepts in univariate time series analysis

Univariate and Multivariate Methods PEARSON. Addison Wesley

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

Advanced Forecasting Techniques and Models: ARIMA

Time Series - ARIMA Models. Instructor: G. William Schwert

Univariate Time Series Analysis; ARIMA Models

Time Series Analysis

TIME SERIES ANALYSIS

Time Series Analysis

Analysis and Computation for Finance Time Series - An Introduction

Time Series Analysis

Univariate Time Series Analysis; ARIMA Models

Software Review: ITSM 2000 Professional Version 6.0.

Luciano Rispoli Department of Economics, Mathematics and Statistics Birkbeck College (University of London)

Promotional Forecast Demonstration

Charles University, Faculty of Mathematics and Physics, Prague, Czech Republic.

Sales forecasting # 2

Wooldridge, Introductory Econometrics, 3d ed. Chapter 12: Serial correlation and heteroskedasticity in time series regressions

ADVANCED FORECASTING MODELS USING SAS SOFTWARE

Graphical Tools for Exploring and Analyzing Data From ARIMA Time Series Models

Overview of Violations of the Basic Assumptions in the Classical Normal Linear Regression Model

Volatility modeling in financial markets

1 Short Introduction to Time Series

Rob J Hyndman. Forecasting using. 11. Dynamic regression OTexts.com/fpp/9/1/ Forecasting using R 1

Forecasting Using Eviews 2.0: An Overview

Threshold Autoregressive Models in Finance: A Comparative Approach

Lecture 2: ARMA(p,q) models (part 3)

Lecture 4: Seasonal Time Series, Trend Analysis & Component Model Bus 41910, Time Series Analysis, Mr. R. Tsay

Chapter 1. Vector autoregressions. 1.1 VARs and the identi cation problem

Time Series Analysis

Performing Unit Root Tests in EViews. Unit Root Testing

TIME SERIES ANALYSIS

Time Series Analysis

The VAR models discussed so fare are appropriate for modeling I(0) data, like asset returns or growth rates of macroeconomic time series.

APPLICATION OF THE VARMA MODEL FOR SALES FORECAST: CASE OF URMIA GRAY CEMENT FACTORY

Forecasting the US Dollar / Euro Exchange rate Using ARMA Models

How To Model A Series With Sas

Chapter 4: Vector Autoregressive Models

Preholiday Returns and Volatility in Thai stock market

Sensex Realized Volatility Index

Causes of Inflation in the Iranian Economy

USE OF ARIMA TIME SERIES AND REGRESSORS TO FORECAST THE SALE OF ELECTRICITY

Time Series Analysis of Aviation Data

Non-Stationary Time Series andunitroottests

4. Simple regression. QBUS6840 Predictive Analytics.

Vector Time Series Model Representations and Analysis with XploRe

PITFALLS IN TIME SERIES ANALYSIS. Cliff Hurvich Stern School, NYU

Forecasting methods applied to engineering management

Volatility Forecasting Performance: Evaluation of GARCH type volatility models on Nordic equity indices

INDIRECT INFERENCE (prepared for: The New Palgrave Dictionary of Economics, Second Edition)

Price volatility in the silver spot market: An empirical study using Garch applications

2. Linear regression with multiple regressors

Using JMP Version 4 for Time Series Analysis Bill Gjertsen, SAS, Cary, NC

Chapter 7. Univariate Volatility Modeling. 7.1 Why does volatility change?

Fairfield Public Schools

ARMA, GARCH and Related Option Pricing Method

ITSM-R Reference Manual

Integrated Resource Plan

Is the Forward Exchange Rate a Useful Indicator of the Future Exchange Rate?

Non Linear Dependence Structures: a Copula Opinion Approach in Portfolio Optimization

Studying Achievement

Chapter 9: Univariate Time Series Analysis

Note 2 to Computer class: Standard mis-specification tests

The SAS Time Series Forecasting System

SYSTEMS OF REGRESSION EQUATIONS

ER Volatility Forecasting using GARCH models in R

Readers will be provided a link to download the software and Excel files that are used in the book after payment. Please visit

Analysis of Financial Time Series

Time Series Analysis: Basic Forecasting.

Volatility Forecasting I: GARCH Models

Testing for Granger causality between stock prices and economic growth

Time Series Analysis 1. Lecture 8: Time Series Analysis. Time Series Analysis MIT 18.S096. Dr. Kempthorne. Fall 2013 MIT 18.S096

A Time Series Analysis of the Chicago Board Options Exchange Volatility Index (VIX)

**BEGINNING OF EXAMINATION** The annual number of claims for an insured has probability function: , 0 < q < 1.

Introduction to Regression and Data Analysis

Forecasting model of electricity demand in the Nordic countries. Tone Pedersen

GARCH 101: An Introduction to the Use of ARCH/GARCH models in Applied Econometrics. Robert Engle

Exam Solutions. X t = µ + βt + A t,

Betting on Volatility: A Delta Hedging Approach. Liang Zhong

16 : Demand Forecasting

11. Time series and dynamic linear models

Module 5: Multiple Regression Analysis

Pricing Corn Calendar Spread Options. Juheon Seok and B. Wade Brorsen

A comparison between different volatility models. Daniel Amsköld

Bias in the Estimation of Mean Reversion in Continuous-Time Lévy Processes

9th Russian Summer School in Information Retrieval Big Data Analytics with R

IBM SPSS Forecasting 22

COMP6053 lecture: Time series analysis, autocorrelation.

Examples. David Ruppert. April 25, Cornell University. Statistics for Financial Engineering: Some R. Examples. David Ruppert.

Java Modules for Time Series Analysis

Do Electricity Prices Reflect Economic Fundamentals?: Evidence from the California ISO

3.1 Stationary Processes and Mean Reversion

Statistics Graduate Courses

Please follow the directions once you locate the Stata software in your computer. Room 114 (Business Lab) has computers with Stata software

Time Series Analysis and Forecasting

Transcription:

Analysis of Financial Time Series with EViews Enrico Foscolo Contents 1 Asset Returns 2 1.1 Empirical Properties of Returns................. 2 2 Heteroskedasticity and Autocorrelation 4 2.1 Testing for serial correlation................... 5 2.2 AR estimation........................... 5 3 General ARMA Processes 6 3.1 ARMA estimation........................ 6 3.2 ARMA Equation Diagnostics.................. 6 4 GARCH Models 7 4.1 Basic GARCH Specifications................... 8 4.2 Diagnostic Checking....................... 11 4.3 Regressors in the Variance Equation............... 12 4.4 The GARCH M Model...................... 12 4.5 The Threshold GARCH (TARCH) Model............ 12 4.6 The Exponential GARCH (EGARCH) Model......... 13 4.7 The Power ARCH (PARCH) Model............... 13 4.8 The Component GARCH (CGARCH) Model.......... 13 1

1 Asset Returns Most financial studies involve returns (more precisely, log return r t of a stock) instead of prices. Why? Economic perspective Return of an asset is a scale free summary of the investment opportunity. Statistical perspective Return series are easier to handle than price series because of the more attractive statistical properties of the former (persistent effects in the second moment). About our approch. One approach to forecast future values of an economic variable is to build a more or less structural econometric model, describing the relationship between the variable of interest with other economic quantities. Although this approach has the advantage of giving economic content to one s predictions, it is not always very useful. Here, we follow a pure time series approach. In this approach the current values of an economic variable are related to past values. The emphasis is purely on making use of the information in past values of a variable for forecasting its future. 1.1 Empirical Properties of Returns High frequency of observation (cf. Figure 1). Non normal empirical distribution (cf. Figure 2). The empirical density function has a higher peak around its mean, but fatter tails than that of the corresponding normal distribution. Daily returns of the market indexes and individual stocks tend to have high excess kurtosis (cf. Figure 2). The mean of log return series is close to zero (cf. Figure 1). p t I (1), so r t := log p t I () (cf. Figure 1). We do not recognize autocorrelation in levels (r t ), but we do with squares of log returns (cf. Figure 3). In depth 1 Stationary versus Nonstationary stochastic process 2

7.2.35 6.15.3 5.1.25 4.5.2 3.15 2 -.5.1 1 -.1.5 2 22 24 26 28 21 (a) -.15 2 22 24 26 28 21 (b) 2 22 24 26 28 21 (c) Figure 1: Plot of prices, log returns, and squares of log returns for Unicredit S.p.A. (ISIN code IT4781412), respectively. 3 25 Test statistic for normality: Chi-square(2) = 2495.155 [.] log returns N(-.17554,.23299) 2 Density 15 1 5 -.15 -.1 -.5.5.1.15 log returns Figure 2: Frequency distribution of log returns for Unicredit S.p.A. (ISIN code IT4781412). If the process for p t has one unit root, we can eliminate the nonstationarity by transforming the series into first differences (changes). A series which becomes stationary after first differencing is said to be integrated of order one, denoted I (1). The main differences between I () and I (1) processes: I () series fluctuates around its mean (it is said mean reverting) with a finite variance that does not depend on time, while I (1) series wanders widely, I () series has a limited memory of its past behavior (the effects of random innovations are only transitory), while a I (1) series has an infinitely long memory (innovations permanently affect the process), autocorrelations of a I () series rapidly decline as the lag increases, 3

ACF for log returns.15.1 +- 1.96/T^.5.5 -.5 -.1 -.15 5 1 15 2 25 3 35 lag ACF for log returns.4 +- 1.96/T^.5.2 -.2 -.4 5 1 15 2 25 3 35 lag PACF for log returns.15.1 +- 1.96/T^.5.5 -.5 -.1 -.15 5 1 15 2 25 3 35 lag (a) PACF for log returns.4 +- 1.96/T^.5.2 -.2 -.4 5 1 15 2 25 3 35 lag (b) Figure 3: Autocorrelation functions of log returns and squares of log returns for Unicredit S.p.A. (ISIN code IT4781412), respectively. while for a I (1) process the estimated autocorrelation coefficients decay to zero very slowly. Double click on the series name to open the series window, and choose View / Unit Root Test... The difference operator is given by function d(.). 2 Heteroskedasticity and Autocorrelation We discuss single equation regression techniques r t = x t β + u t The essential Gauss Markov assumptions E {u X } = V ar {u X } = σ 2 I A common finding in time series regressions: residuals are correlated with their own lagged values, error terms do not have identical variances. 4

Problems associated with serial correlation and heteroskedasticity: OLS is no longer efficient among linear estimators (OLS is still unbiased), standard errors computed using the OLS formula are not correct, t and F tests will no longer be valid and inference will be mislead. We start with autocorrelation issue. There are many forms of autocorrelation. Each one leads to a different structure for the error covariance matrix V ar {u X }. Linear time series analysis provides a natural framework to study the dynamic structure of such a series. In general, we will be concerned with specifications of the form of higher order autoregressive models; i.e., AR(p): r t = x t β + u t u t = ρ 1 u t 1 +... + ρ p u t p + ɛ t, ɛ t W N ( ), σɛ 2 The autocorrelations of a stationary AR(p) process gradually die out to zero, while the partial autocorrelations for lags larger than p are zero. 2.1 Testing for serial correlation Correlogram and Ljung Box Q Statistic View / Residual Tests / Correlogram-Q-statistics Breusch Godfrey Lagrange multiplier test statistic View / Residual Tests / Serial Correlation LM Test... 2.2 AR estimation Open an equation by selecting Quick / Estimate Equation... enter your specification, r c x1... xk ar(1)... ar(p) The stationarity condition for general AR(p) processes is that the inverted roots of the lag polynomial lie inside the unit circle. The Inverted AR Roots take place at the bottom of the regression output. 5 and

3 General ARMA Processes ARIMA (Autoregressive Integrated Moving Average) models are generalizations of the simple AR model. ARMA(p, q): r t = x t β + u t u t = ρ 1 u t 1 +... + ρ p u t p + ɛ t + θ 1 ɛ t 1 +... + θ q ɛ t q, ɛ t W N ( ), σɛ 2 The goal of ARIMA analysis is a parsimonious representation of the process governing the residual. The specification can also be applied directly to a series. 3.1 ARMA estimation Open an equation by selecting Quick / Estimate Equation... enter your specification, and y c x1... xk ar(1)... ar(p) ma(1)... ma(q) 3.2 ARMA Equation Diagnostics From the menu of an estimated equation View / ARMA Structure... Roots If the estimated ARMA process is (covariance) stationary, then all inverse AR roots should lie inside the unit circle. If the estimated ARMA process is invertible, then inverse all MA roots should lie inside the unit circle. Correlogram If the ARMA model is correctly specified, the residuals from the model should be nearly white noise. More general tests for serial correlation in the residuals may be carried out with View / Residual Tests / Correlogram-Q-statistic and View / Residual Tests / Serial Correlation LM Test... 6

4 GARCH Models We turn into the heteroskedasticity issue. Besides the return series, we also consider the volatility process. The volatility process is concerned with the evolution of conditional variance of the return over time, denoting by σt 2, namely the one period ahead forecast variance based on past information. Why? The variabilities of returns vary over time and appear in clusters (i.e., volatility may be high for certain time periods and low for other periods). Plots of log returns show the so called volatility clustering phenomenon, where large changes in returns are likely to be followed by further large changes. Moreover, volatility seems to react differently to a big price increase or a big price drop, referred to as the leverage effect. In application, volatility plays an important role in pricing options, risk management (e.g., Value at Risk), and in asset allocation under the mean variance framework. The advantage of knowing about risks is that we can change our behavior to avoid them. Thus, we optimize our reactions and in particular our portfolio, to maximize rewards and minimize risks. A special feature of stock volatility is that it is not directly observable. Forecast confidence intervals may be time varying, so that more accurate intervals can be obtained by modeling the variance of the errors. More efficient estimators can be obtained if heteroskedasticity in the errors is handled properly. The volatility index of a market has recently become a financial instrument. The VIX volatility index compiled by the Chicago Board of Option Exchange (CBOE) started to trade in futures on March 26, 24. In depth 2 Option Pricing 7

Consider the price of an European call option, which is a contract giving its holder the right, but not the obligation, to buy a fixed number of shares of a specified common stock at a fixed price on a given date. The fixed price is called the strike price and is commonly denoted by K. The given date is called the expiration date. The important time span here is the time to expiration, and we denote it by l. The well known Black Scholes option pricing formula states that the price of such a call option is ) c t = p t Φ (x) K r l Φ (x σ t l and x = ln ( p t /K r l) σ t l +.5 σ t l, (1) where p t is the current price of the underlying stock, r is the risk free interest rate, σ t is the conditional standard deviation of the log return of the specified stock, and Φ ( ) is the cumulative distribution function of the standard normal random variable. The conditional standard deviation σ t of the log return of the underlying stock plays an important role and it evolves over time. 4.1 Basic GARCH Specifications In options markets, if one accepts the idea that the prices are governed by an econometric model such as the Black Scholes formula, then one can use the price to obtain the implied volatility. This approach is often criticized because of its own assumptions that might not hold in practice (e.g., the assumed geometric Brownian motion for the price of the underlying asset). For instance, from the observed prices of a European call option, one can use the Black Scholes formula in (1) to deduce the conditional standard deviation σ t. It might be different from the actual volatility. Experience shows that implied volatility of an asset return tends to be larger than that obtained by using a GARCH type of volatility model. For instance, the VIX of CBOE is an implied volatility. A simple approach, called historical volatility, is widely used. In this method, the volatility is estimated by the sample standard deviation of returns over a short period. If the period is too long, then it will not be so relevant for today and if the period is too short, it will be very noisy. It is logically inconsistent to assume, for example, that the variance is constant for a period. 8

Conditional heteroscedastic models can be classified into two general categories. Those in the first category use an exact function to govern the evolution of σ 2 t, whereas those in the second category use a stochastic equation to describe σ 2 t. The GARCH model belongs to the first category. Generalized Autoregressive Conditional Heteroskedasticity (GARCH) models are specifically designed to model and forecast conditional variances. The variance of the dependent variable is modeled as a function of past values of the dependent variable and independent, or exogenous variables. GARCH(1, 1): r t = x t γ + u t u t = σ t ɛ t, ɛ t IID (, 1) σt 2 = ω + α u 2 t 1 + β σt 1 2 An ordinary ARCH model is a special case of a GARCH specification in which there are no lagged forecast variances in the conditional variance equation; i.e., a GARCH(1, ). This specification is often interpreted in a financial context, where an agent or trader predicts this period s variance by forming a weighted average of a long term average (the constant), the forecasted variance from last period (the GARCH term), and information about volatility observed in the previous period (the ARCH term). If the asset return was unexpectedly large in either the upward or the downward direction, then the trader will increase the estimate of the variance for the next period. This model is also consistent with the volatility clustering. Equivalent representations. Rearranging terms and defining υ t = u 2 t σ 2 t u 2 t = ω + (α + β) u 2 t 1 + υ t β υ t 1 the squared errors follow a heteroskedastic ARMA(1, 1) process; the autoregressive root which governs the persistence of volatility shocks is (α + β) and, in many applied settings, this root is very close to unity so that shocks die out rather slowly. Higher order GARCH models, denoted GARCH(p, q), 9

Density..1.2.3.4 Density..1.2.3.4 4 2 2 4 4 2 2 4 (a) (b) Figure 4: Normal density (solid line) versus t Student and GED density with 3 and 1.5 degree of freedom, respectively. r t = x t γ + u t u t = σ t ɛ t, ɛ t IID (, 1) p q σt 2 = ω + α i u 2 t i + β j σt j 2 i=1 j=1 The basic GARCH specification requires an assumption about the conditional distribution of the error term u t. Gaussian distribution (cf. Figure 4). Student s t distribution (cf. Figure 4). Generalized Error distribution (cf. Figure 4). Given a distributional assumption, GARCH models are typically estimated by the method of (quasi) maximum likelihood. Quick / Estimate Equation... or by selecting Object / New Object... / Equation... Select ARCH from the method combo box at the bottom of the dialog. 1

The presence of GARCH errors in a regression or autoregressive model does not invalidate OLS estimation. It does imply, however, that more efficient (nonlinear) estimators exist than OLS. Estimation procedures are often computationally intensive. 4.2 Diagnostic Checking Building a volatility model for an asset return series consists of four steps. 1. Specify a mean equation by testing for serial dependence in the data and, if necessary, building an econometric model (e.g., an ARMA model) for the return series to remove any linear dependence. 2. Use the residuals of the mean equation to test for ARCH effects. To carry out the for autoregressive conditional heteroskedasticity (ARCH) in the residuals, push View / Residual Tests / ARCH LM Test... on the equation toolbar and specify the order of ARCH to be tested against. It carries out Lagrange multiplier tests to test whether the standardized residuals exhibit additional ARCH. If the variance equation is correctly specified, there should be no ARCH left in the standardized residuals. 3. Specify a volatility model if ARCH effects are statistically significant and perform a joint estimation of the mean and volatility equations. 4. Check the fitted model carefully and refine it if necessary. Actual, Fitted, Residual GARCH Graph Covariance Matrix Coefficient Tests Likelihood ratio tests on the estimated coefficient. Residual Tests / Correlogram Q statistics This view can be used to test for remaining serial correlation in the mean equation and to check the specification of the mean equation. If the mean equation is correctly specified, all Q statistics should not be significant. 11

Residual Tests / Correlogram Squared Residuals This view can be used to test for remaining ARCH in the variance equation and to check the specification of the variance equation. If the variance equation is correctly specified, all Q statistics should not be significant. See also Residual Tests / ARCH LM Test. Residual Tests / Histogram Normality Test 4.3 Regressors in the Variance Equation σ 2 t = ω + p α i u 2 t i + i=1 q β j σt j 2 + z t π Note that the forecasted variances from this model are not guaranteed to be positive. 4.4 The GARCH M Model Finance theory suggests that an asset with an higher perceived risk would pay an higher return on average. Then, the theory suggests that the mean return would be related to the conditional variance or standard deviation, j=1 r t = x t γ + λ σ 2 t + u t The parameter λ is called the risk premium parameter. Not so used in practice; i.e., sometimes ˆλ are not interpretable and catch effects different from the influence of volatility on conditional mean. 4.5 The Threshold GARCH (TARCH) Model σ 2 t = ω + p α i u 2 t i + i=1 q β j σt j 2 + j=1 where I t = 1 if u t < and otherwise. r η k u 2 t k I t k Good news, u t i >, and bad news, u t i <, have differential effects on the conditional variance; i.e., good news has an impact of α i, while bad news has an impact of α i + η i. If η i >, bad news increases volatility, and we say that there is a leverage effect for the i th order. If η i, the news impact is asymmetric. k=1 12

4.6 The Exponential GARCH (EGARCH) Model log ( ) p σt 2 u t i = ω + α i + i=1 σ t i q β j log ( ) r σt j 2 u t k + η k σ t k This equation highlights the asymmetric responses in volatility to the past positive and negative shocks. The log of the conditional variance implies that the leverage effect is exponential and that forecasts of the conditional variance are guaranteed to be nonnegative. The presence of leverage effects can be tested by the hypothesis that η i <. The impact is asymmetric if η i. j=1 4.7 The Power ARCH (PARCH) Model σ δ t = ω + p α i ( u t i η i u t i ) δ + i=1 k=1 q β j σt j δ where δ >, η i 1 for i = 1,..., r, η i = for i > r and r p. 4.8 The Component GARCH (CGARCH) Model It allows mean reversion to a varying level m t, j=1 σ 2 t m t = ω + α ( u 2 t 1 ω ) + β ( σ 2 t 1 ω ) m t = ω + ρ (m t 1 ω) + φ ( u 2 t 1 σ 2 t 1 ) σ 2 t 1 is still the volatility, while m t takes the place of ω and is the time varying long run volatility. The first equation describes the transitory component, σ 2 t m t, which converges to zero with powers of (α + β). The second equation describes the long run component m t, which converges to ω with powers of ρ. 13