Chapter 9: Univariate Time Series Analysis



Similar documents
A Review of Cross Sectional Regression for Financial Data You should already know this material from previous study

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

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

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

Time Series Analysis

Chapter 5: Bivariate Cointegration Analysis

Econometrics I: Econometric Methods

Forecasting the US Dollar / Euro Exchange rate Using ARMA Models

TIME SERIES ANALYSIS

GRADO EN ECONOMÍA. Is the Forward Rate a True Unbiased Predictor of the Future Spot Exchange Rate?

Non-Stationary Time Series andunitroottests

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

TIME SERIES ANALYSIS

Examining the Relationship between ETFS and Their Underlying Assets in Indian Capital Market

Week TSX Index

Macroeconomic Variables and the Demand for Life Insurance in Malaysia. Chee Chee Lim Steven Haberman

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

Empirical Properties of the Indonesian Rupiah: Testing for Structural Breaks, Unit Roots, and White Noise

Univariate and Multivariate Methods PEARSON. Addison Wesley

ANALYSIS OF EUROPEAN, AMERICAN AND JAPANESE GOVERNMENT BOND YIELDS

Algorithmic Trading Session 6 Trade Signal Generation IV Momentum Strategies. Oliver Steinki, CFA, FRM

Integrated Resource Plan

Testing for Unit Roots: What Should Students Be Taught?

Time Series Analysis of Aviation Data

Advanced Forecasting Techniques and Models: ARIMA

4. Simple regression. QBUS6840 Predictive Analytics.

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

Chapter 4: Vector Autoregressive Models

Univariate Time Series Analysis; ARIMA Models

FORECASTING DEPOSIT GROWTH: Forecasting BIF and SAIF Assessable and Insured Deposits

Analysis of algorithms of time series analysis for forecasting sales

Working Papers. Cointegration Based Trading Strategy For Soft Commodities Market. Piotr Arendarski Łukasz Postek. No. 2/2012 (68)

THE PRICE OF GOLD AND STOCK PRICE INDICES FOR

Time Series Analysis: Basic Forecasting.

Powerful new tools for time series analysis

Stock Returns and Equity Premium Evidence Using Dividend Price Ratios and Dividend Yields in Malaysia

Paper for session 49 in Helsinki 2006

Introduction to Time Series Regression and Forecasting

FDI and Economic Growth Relationship: An Empirical Study on Malaysia

The information content of lagged equity and bond yields

Time Series Analysis of the Somalian Export Demand Equations: A Co-integration Approach

Testing for Granger causality between stock prices and economic growth

THE EFFECTS OF BANKING CREDIT ON THE HOUSE PRICE

Implied Volatility Skews in the Foreign Exchange Market. Empirical Evidence from JPY and GBP:

THE UNIVERSITY OF CHICAGO, Booth School of Business Business 41202, Spring Quarter 2014, Mr. Ruey S. Tsay. Solutions to Homework Assignment #2

Time Series Analysis

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

2. What is the general linear model to be used to model linear trend? (Write out the model) = or

Promotional Forecast Demonstration

Forecasting of Paddy Production in Sri Lanka: A Time Series Analysis using ARIMA Model

Unit root properties of natural gas spot and futures prices: The relevance of heteroskedasticity in high frequency data

Performing Unit Root Tests in EViews. Unit Root Testing

How To Model A Series With Sas

Unit 31 A Hypothesis Test about Correlation and Slope in a Simple Linear Regression

Chapter 6: Multivariate Cointegration Analysis

UNIT ROOT TESTING TO HELP MODEL BUILDING. Lavan Mahadeva & Paul Robinson

3.1 Stationary Processes and Mean Reversion

COINTEGRATION AND CAUSAL RELATIONSHIP AMONG CRUDE PRICE, DOMESTIC GOLD PRICE AND FINANCIAL VARIABLES- AN EVIDENCE OF BSE AND NSE *

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

A Trading Strategy Based on the Lead-Lag Relationship of Spot and Futures Prices of the S&P 500

Time Series Analysis and Spurious Regression: An Error Correction

Minimum LM Unit Root Test with One Structural Break. Junsoo Lee Department of Economics University of Alabama

Business cycles and natural gas prices

Some useful concepts in univariate time series analysis

Predicting Indian GDP. And its relation with FMCG Sales

A cointegration and causality analysis of Scandinavian stock markets

Financial Integration of Stock Markets in the Gulf: A Multivariate Cointegration Analysis

Module 5: Multiple Regression Analysis

I. Basic concepts: Buoyancy and Elasticity II. Estimating Tax Elasticity III. From Mechanical Projection to Forecast

Promotional Analysis and Forecasting for Demand Planning: A Practical Time Series Approach Michael Leonard, SAS Institute Inc.

VARIABLES EXPLAINING THE PRICE OF GOLD MINING STOCKS

The Relationship Between Crude Oil and Natural Gas Prices

Dr. Pushpa Bhatt, Sumangala JK Department of Commerce, Bangalore University, India

National Institute for Applied Statistics Research Australia. Working Paper

Forecasting Stock Market Series. with ARIMA Model

Earnings Announcement and Abnormal Return of S&P 500 Companies. Luke Qiu Washington University in St. Louis Economics Department Honors Thesis

Market Efficiency and Behavioral Finance. Chapter 12

1 Short Introduction to Time Series

Time Series Analysis

Vector Time Series Model Representations and Analysis with XploRe

Sales forecasting # 2

Regression step-by-step using Microsoft Excel

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

IS THERE SEASONALITY IN THE SENSEX MONTHLY RETURNS? I M Pandey Indian Institute of Management Ahmedabad Vastrapur, Ahmedabad India

KSTAT MINI-MANUAL. Decision Sciences 434 Kellogg Graduate School of Management

ijcrb.com INTERDISCIPLINARY JOURNAL OF CONTEMPORARY RESEARCH IN BUSINESS AUGUST 2014 VOL 6, NO 4

ADVANCED FORECASTING MODELS USING SAS SOFTWARE

Getting Correct Results from PROC REG

Introduction to Regression and Data Analysis

Econometric Modelling for Revenue Projections

The price-volume relationship of the Malaysian Stock Index futures market

16 : Demand Forecasting

EMPIRICAL INVESTIGATION AND MODELING OF THE RELATIONSHIP BETWEEN GAS PRICE AND CRUDE OIL AND ELECTRICITY PRICES

Department of Economics

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

Do Global Oil Price Changes Affect Indian Stock Market Returns?

Transcription:

Chapter 9: Univariate Time Series Analysis In the last chapter we discussed models with only lags of explanatory variables. These can be misleading if: 1. The dependent variable Y t depends on lags of the dependent variable as well, possibly, as X t, X t-1,...,x t-q. 2. The variables are nonstationary. In this chapter and the next, we develop tools for dealing with both issues and define what we mean by nonstationary. To simplify the analysis, focus solely on one time series, Y. Hence, univariate time series analysis. It is important to understand the properties of each individual series before proceeding to regression modelling involving several series. 1

Example: Stock Prices on the NYSE Figure 9.1: natural logarithm of monthly data from 1952 through 1995 on a major stock price index provided by the New York Stock Exchange Aside on logs It is common to take the natural logarithm of time series which are growing over time (i.e. work with ln(y) instead of Y). Why? A time series graph of ln(y) will often approximate a straight line. In regressions with logged variables coefficients can be interpreted as elasticities. ln(y t )-ln(y t-1 ) is (approximately) the percentage change in Y between period t-1 and t. 2

Figure 9.1: Log of Stock Price Index 9 8 7 6 Log of Price index 5 4 3 2 1 0 Months 3

Example: NYSE Data (cont.) Note trend behaviour of personal income series. Many macroeconomic time series exhibit such trends. 4

Differencing ΔY t = Y t Y t-1 ΔY t measures the change (or growth) in Y between periods t-1 and t. If Y t is the log of a variable, then ΔY t is the percentage change. ΔY t is the difference of Y (or first difference). ΔY t is often called delta Y. 5

Example: NYSE Data (cont.) See Figure 9.2. ΔY = % change in personal income Not trending, very erratic. The differences/growth rates/returns of many financial time series have such properties. 6

Figure 9.2: Stock Price Return 0.2 0.15 0.1 Change in log stock price index 0.05 0-0.05-0.1-0.15-0.2-0.25 Months 7

The Autocorrelation Function Correlation between Y and lags of itself shed important light of the properties of Y. Relates to the idea of a trend (discussed above) and nonstationarity (not discussed yet). Example: Y = NYSE stock price Correlation between Y t and Y t-1 is.999! Correlation between ΔY t and ΔY t-1 is.0438. These are autocorrelations (i.e. correlations between a variable and lags of itself). 8

The Autocorrelation Function: Notation r 1 = correlation between Y and Y lagged one period. r p = correlation between Y and Y lagged p periods. Autocorrelation function treats r p as a function of p. 9

Example: NYSE Data (cont.) Autocorrelation functions of Y and ΔY Lag length (p) Stock Price Change in Stock Price 1.9990.0438 2.9979 -.0338 3.9969.0066 4.9958.0297 5.9947.0925 6.9934 -.0627 7.9923 -.0451 8.9912 -.0625 9.9902 -.0113 10.9893 -.0187 11.9885 -.0119 12.9876.0308 Y is highly correlated with lags of itself, but the change in Y is not. Information could also be presented on bar charts. See Figures 9.3 and 9.4. 10

Figure 9.3: Autocorrelation Function for Stock Prices 1 0.998 0.996 0.994 Autocorrelation 0.992 0.99 0.988 0.986 0.984 0.982 0.98 1 2 3 4 5 6 7 8 9 10 11 12 Time lag (months) 11

Figure 9.4: Autocorrelation Function for Stock Returns 0.12 0.1 0.08 0.06 A utocorrelation 0.04 0.02 0 1 2 3 4 5 6 7 8 9 10 11 12-0.02-0.04-0.06-0.08 Time lag (months) 12

Autocorrelation: Intuition Y is highly correlated over time. ΔY does not exhibit this property. If you knew past values of stock price, you could make a very good estimate of what stock price was this month. However, knowing past values of the change in stock price will not help you predict the change in stock price this month (not change in stock price is return, exclusive of dividends). Y remembers the past. ΔY does not. Y is a nonstationary series while ΔY is stationary. (Note: These words not formally defined yet.) 13

The Autoregressive Model Previous discussion has focussed on graphs and correlations, now we go on to regression. Autoregressive model of order 1 is written as AR(1) and given by: Y t = α + φy t-1 + e t Figures 9.5, 9.6 and 9.7 indicate the types of behaviour that this model can generate. φ = 1 generates trending behaviour typical of financial time series. φ = 0 looks more like change in financial time series. 14

Figure 9.5: AR(1) Time Series with Phi=0 0.035 0.03 0.025 0.02 0.015 0.01 0.005 0 1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 73 77 81 85 89 93 97-0.005-0.01-0.015 15

Figure 9.6: AR(1) Time Series with Phi=.8 0.08 0.07 0.06 0.05 0.04 0.03 0.02 0.01 0 1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 73 77 81 85 89 93 97 16

Figure 9.7: AR(1) Time Series with Phi=1 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 73 77 81 85 89 93 97 17

Nonstationary vs. Stationary Time Series Formal definitions require difficult statistical theory. Some intuition will have to suffice. Nonstationary means anything which is not stationary. Focus on a case of great empirical relevance: unit root nonstationarity. 18

Ways of Thinking about Whether Y is Stationary or has a Unit Root 1. If φ = 1, then Y has a unit root. If φ <1 then Y is stationary. 2. If Y has a unit root then its autocorrelations will be near one and will not drop much as lag length increases. 3. If Y has a unit root, then it will have a long memory. Stationary time series do not have long memory. 4. If Y has a unit root then the series will exhibit trend behaviour. 5. If Y has a unit root, then ΔY will be stationary. Hence, series with unit roots are often referred to as difference stationary. 19

More on the AR(1) Model Y t = α + φy t-1 + e t Can rewrite as: ΔY t = α + ρy t-1 + e t where ρ = φ - 1 If φ = 1 (unit root) then ρ = 0 and: ΔY t = α+ e t Intuition: if Y has a unit root, can work with differenced data --- differences are stationary. 20

More on the AR(1) Model Test if ρ = 0 to see if a unit root is present. 1<φ<1 is equivalent to 2<ρ<0. This is called the stationarity condition. Aside: The Random Walk with drift model: Y t =α+y t-1 + e t This is thought to hold for many financial variables such as stock prices, exchange rates. Intuition: Changes in Y are unpredictable, so no arbitrage opportunities for investors. 21

Extensions of the AR(1) Model AR(p) model: Y α + φ Y +... + φ Y + e t = 1 t 1 p t p t, Properties similar to the AR(1) model. Alternative way of writing AR(p) model: Y = α + ρy + γ ΔY +... + γ ΔY + e t t 1 t 1 p 1 t p 1 Δ 1 + t. Coefficients in this alternative regression (ρ, γ 1,...,γ p-1 ) are simple functions of φ 1,..,φ p. 22

The AR(p) Model AR(p) is in the form of a regression model. ρ=0 implies that the time series Y contains a unit root (and 2<ρ<0 indicates stationarity). If a time series contains a unit root then a regression model involving only ΔY is appropriate (i.e. if ρ = 0 then the term Y t-1 will drop out of the equation). If a unit root is present, then you can difference the data to induce stationarity. 23

More Extensions: Adding a Deterministic Trend Consider the following model: Y = α + δt + t e t. The term δt is a deterministic trend since it is an exact (i.e. deterministic) function of time. Unit root series contain a so-called stochastic trend. Combine with the AR(1) model to obtain: Y = α + φy + δt + e t t 1 t. Can generate behaviour that looks similar to unit root behaviour even if φ <1. (i.e. even if they are stationary). See Figure 9.8. 24

Figure 9.8: Trend Stationary Series 1.4 1.2 1 0.8 0.6 0.4 0.2 0 1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 73 77 81 85 89 93 97 25

Summary The nonstationary time series variables on which we focus are those containing a unit root. These series contain a stochastic trend. If we difference these time series, the resulting time series will be stationary. For this reason, they are also called difference stationary. The stationary time series on which we focus have 2<ρ<0. But these series may exhibit trend behaviour through the incorporation of a deterministic trend. If this occurs, they are also called trend stationary. 26

AR(p) with Deterministic Trend Model Most general model we use: Y = α + ρy + γ ΔY +... + γ ΔY + δt + e t t 1 t 1 p t p 1 Δ 1 + t. Why work with this form of the model? 1. A unit root is present if ρ = 0. Easy to test. 2. The specification is less likely to run into multicollinearity problems. Remember: in finance we often find Y is highly correlated with lags of itself but ΔY is not. 27

Estimation of the AR(p) with Deterministic Trend Model OLS can be done in usual way. Example: Y = NYSE stock price ΔY is the dependent variable in the regression below. AR(4) with Deterministic Trend Model Coeff t Stat P- value Lower 95% Upper 95% Inter.082 2.074.039.004.161 Y t-1 -.016-1.942.053 -.033.0002 ΔY t-1.051 1.169.243 -.035.138 ΔY t-2 -.027 -.623.534 -.114.059 ΔY t-3.015.344.731 -.071.101 time 1E-4 1.979.048 7E-7 0.0002 28

Testing in AR(p) with Deterministic Trend Model For everything except ρ, testing can be done in usual way using t-statistics and P-values. Hence, can use standard tests to decide whether to include deterministic trend. Lag length selection A common practice: begin with an AR(p) model and look to see if the last coefficient, γ p is significant. If not, estimate an AR(p-1) model and see if γ p-1 is significant. If not, estimate an AR(p-2), etc. 29

Example: Y = NYSE Stock Price Data Sequential testing strategy leads us to drop the deterministic trend and go all the way back to a model with one lag, an AR(1). ΔY is the dependent variable in the regression. Coeff t Stat P-value Lower 95% Upper 95% Inter.00763 0.6188.5363 -.0166.0318 Y t-1 -.00012-0.0631.9497 -.0039 -.0037 Note that it looks like the coefficient on Y t-1 is insignificant but this coefficient is ρ (so don t throw out Y t-1 yet!) 30

Testing for a Unit Root You might think you can test ρ = 0 in the same way (i.e. look at P-value and, if it is less than.05, reject the unit root hypothesis, if not accept the unit root). THIS IS INCORRECT! Justification: Difficult statistics. Essentially: The t-statistic correct, but the P- value (and standard error) is wrong. A correct test is the Dickey-Fuller Test, which uses the t-statistic and compares it to a critical value. 31

Practical Advice on Unit Root Testing Most computer packages will do the unit root test for you and provide a critical value or a P-value for the Dickey-Fuller test If the t-statistic is less negative than the Dickey-Fuller critical value then accept the unit root hypothesis. Else reject the unit root and conclude the variable is stationary (or trend stationary if your regression includes a deterministic trend) Alternatively, if you are using software which does not do the Dickey-Fuller test (e.g. Excel), use the following rough rule of thumb which should be okay if sample size is moderately large (e.g. T>50). 32

Testing for a Unit Root: An Approximate Strategy 1. Use the sequential testing strategy outlined above to estimate the AR(p) with deterministic trend model. Record the t-stat corresponding to ρ (i.e. the coefficient on Y t-1 ). 2. If the final version of your model includes a deterministic trend, the Dickey-Fuller critical value is approximately 3.45. If the t-stat on ρ is more negative than 3.45, reject the unit root hypothesis and conclude that the series is stationary. Otherwise, conclude that the series has a unit root. 3. If the final version of your model does not include a deterministic trend, the Dickey- Fuller critical value is approximately 2.89. If the t-stat on ρ is more negative than this, reject the unit root hypothesis and conclude that the series is stationary. Otherwise, conclude that the series has a unit root. 33

Example: Y = NYSE Stock Price Data (continued) The final version of the AR(p) model did not include a deterministic trend. The t-stat on ρ is 0.063, which is not more negative than 2.89. Hence we can accept the hypothesis that NYSE stock prices contain a unit root and are, in fact, a random walk. 34

Example: Y = Long term interest rates Use preceding strategy on a data set containing long term interest rate data Beginning with pmax=4 and sequentially deleting insignificant lagged variables, we end up with an AR(1) model: ΔY = α + ρy + t e t 1 t. OLS estimation results for this model are given in the following table. Coeff t Stat P-value Lower 95% Upper 95% Intercept.039 2.682.008.010.067 Y t-1 -.004-2.130.035 -.0077 -.0003 35

A researcher who did not know about the Dickey-Fuller test would incorrectly say: Since the P-value for ρ is less than.05, we can conclude that ρ is significant. Thus, the long term interest rate variable does not contain a unit root. The correct researcher says: The final version of the AR(p) model I used did not include a deterministic trend. Hence, I must use the Dickey-Fuller critical value of 2.89. The t-stat on ρ is 2.13, which is not more negative than 2.89. Hence we can accept the hypothesis that long term interest rates contain a unit root. 36

Chapter Summary 1. Many financial time series exhibit trend behavior, while their differences do not exhibit such behavior. 2. The autocorrelation function is a common tool for summarizing the relationship between a variable and lags of itself. 3. Autoregressive models are regression models used for working with time series variables and can be written with Y t or ΔY t as the dependent variable. 4. The distinction between stationary and nonstationary models is a crucial one. 5. Series with unit roots are the most common type of non-stationary series considered in financial research. 6. If Y t has a unit root then the AR(p) model with ΔY t as the dependent variable can be estimated using OLS. Standard statistical results hold for all coefficients except the coefficient on Y t-1. 37

7. The Dickey-Fuller test is a test for the presence of a unit root. It involves testing whether the coefficient on Y t-1 is equal to zero (in the AR(p) model with ΔY t being the dependent variable). 38