13 introduction totime-series analysis. what is in this chapter? this chapter discusses –the basic...

49
13 Introduction toTim e-Series Analysis

Post on 18-Dec-2015

215 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13 Introduction toTime-Series Analysis

Page 2: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

What is in this Chapter?

• This chapter discusses – the basic time-series models: autoregressive

(AR) and moving average (MA) models,– stationary and nonstationary time series, – and the Box-Jenkins approach to time-series

modeling – Some R2 measures applicable in evaluating g

oodness of fit in time-series models are also discussed.

Page 3: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.1 Introduction

• A time series is a sequence of numerical data in which each item is associated with a particular instant in time

• One can quote numerous examples: monthly unemployment, weekly measures of money supply, daily closing prices of stock indices, and so on

• In fact with the current progress in computer technology we have daily series on interest rates, the hourly "telerate" interest rate index, and stock prices by the minute (or even second).

Page 4: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.1 Introduction

• An analysis of a single sequence of data is called univariate time-series analysis

• An analysis of several sets of data for the same sequence of time periods is called multivariatetime-series analysis or, more simply, multiple time-series analysis

Page 5: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.1 Introduction

• For a long time there has been very little communication between econometricians and time-series analysts.

• Econometricians have emphasized economic theory and a study of contemporaneous relationships. Lagged variables were introduced but not in a systematic way, and no serious attempts were made to study the temporal structure of the data

• Theories were imposed on the data even when the temporal structure of the data was not in conformity with the theories

Page 6: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.1 Introduction

• The time-series analysts, on the other hand, did not believe in economic theories and thought that they were better off allowing the data to determine the model

• Since the mid-1970s these two approaches—the time-series approach and the econometric approach—have been converging

• Econometricians now use some of the basic elements of time-series analysis in checking the specification of their econometric models, and some economic theories have influenced the direction of time-series work.

Page 7: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.3 Stationary and Nonstationary Time Series

• Strict Stationarity– One way of describing a stochastic process is to sp

ecify the joint distribution of thevariables Xt. This is quite complicated and not usually attempted in practice. Instead, what is usually done is that we define the first and second moments of the variables Xt These are:

Page 8: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.3 Stationary and Nonstationary Time Series

Page 9: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.3 Stationary and Nonstationary Time Series

Page 10: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.3 Stationary and Nonstationary Time Series

Page 11: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.3 Stationary and Nonstationary Time Series

• Weak Stationarity

Page 12: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.3 Stationary and Nonstationary Time Series

• Properties of Autocorrelation Function

Page 13: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.3 Stationary and Nonstationary Time Series

Page 14: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.4 Some Useful Models for Time Series

• In this section we discuss several different types of stochastic processes that are usefulin modeling time series:– (1) a purely random process,– (2) a random walk, – (3) a movingaverage (MA) process, – (4) an autoregressive (AR) process, – (5) an autoregressive movingaverage (ARMA) proces

s, and– (6) an autoregressive integrated moving average (ARI

MA)process.

Page 15: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.4 Some Useful Models for Time Series

Page 16: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.4 Some Useful Models for Time Series

Page 17: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.4 Some Useful Models for Time Series

Page 18: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.4 Some Useful Models for Time Series

Page 19: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.4 Some Useful Models for Time Series

Page 20: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.4 Some Useful Models for Time Series

Page 21: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.4 Some Useful Models for Time Series

Page 22: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.4 Some Useful Models for Time Series

Page 23: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.4 Some Useful Models for Time Series

Page 24: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.4 Some Useful Models for Time Series

Page 25: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.4 Some Useful Models for Time Series

Page 26: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.4 Some Useful Models for Time Series

Page 27: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.4 Some Useful Models for Time Series

Page 28: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.4 Some Useful Models for Time Series

Page 29: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.4 Some Useful Models for Time Series

Page 30: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.4 Some Useful Models for Time Series

Page 31: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.4 Some Useful Models for Time Series

Page 32: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.4 Some Useful Models for Time Series

Page 33: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.5 Estimation of AR, MA, and ARMA Models

• Testing Goodness of Fit– When an AR, MA, or ARMA model has been fitted to

a given time series, it is advisable to check that the model does really give an adequate description of the data

– There are two criteria often used that reflect the closeness of fit and the number of parameters estimated.

– One is the Akaike information criterion (AIC), and the other is the Schwartz Bayesiancriterion (SBC)

– The latter is also called the Bayesian information criterion (BIC).

Page 34: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.5 Estimation of AR, MA, and ARMA Models

Page 35: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.5 Estimation of AR, MA, and ARMA Models

Page 36: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.6 The Box-Jenkins Approach

• The Box-Jenkins approach is one of the most widely used methodologies for the analysis of time-series data

• It is popular because of its generality; it can handle any series, stationary or not, with or without seasonal elements, and it has well-documented computer programs

Page 37: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.6 The Box-Jenkins Approach

• Although Box and Jenkins have been neither the originators nor the most important contributors in the field of ARMA models

• They have popularized these models and made them readily accessible to everyone, so much that ARMA models are sometimes referred to as Box-Jenkins models.

Page 38: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.6 The Box-Jenkins Approach

• The basic steps in the Box-Jenkins methodology are – (1) differencing the series so as toachieve stationarity, – (2) identification of a tentative model,– (3) estimation of the model,– (4) diagnostic checking (if the model is found inadequ

ate, we go back to step 2), and– (5) using the model for forecasting and control. Sche

matically, we can describe the steps as in Figure 13.3.

Page 39: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.6 The Box-Jenkins Approach

• 1. Differencing to achieve stationarity: How do we conclude whether a time series is stationary or not? – We can do this by studying the graph of the correlogr

am of the series. – The correlogram of a stationary series drops off as k,

the number of lags, becomes large, but this is not usually the case for a nonstationary series.

– Thus the common procedure is to plot the correlogram of the given series yt and successive differences Δy, Δy, and so on, and look at the correlograms at each stage.

– We keep differencing until the correlogram dampens

Page 40: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.6 The Box-Jenkins Approach

• 2. Once we have used the differencing procedure to get a stationary time series, we examine the correlogram to decide on the appropriate orders of the AR and MA components.– The correlogram of a MA process is zero after a point.

– That of an ARprocess declines geometrically. The cor

relograms of ARMA processes show different patterns (but all dampen after a while).

– Based on these, one arrives at a tentative ARMA model.

– This step involves more of a judgmental procedure than the use of any clear-cut rules.

Page 41: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.6 The Box-Jenkins Approach

• 3. The next step is the estimation of the tentative ARMA model identified in step 2. We have discussed in the preceding section the estimation of ARMA models.

• 4. The next step is diagnostic checking to check the adequacy of the tentative model. We discussed in the preceding section the Q and Q* statistics commonly used in diagnostic checking. As argued there, the (^-statistic is inappropriate in autoregressive models and thus we need to replace it with some LM test statistic.

• 5. The final step is forecasting

Page 42: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.6 The Box-Jenkins Approach

Page 43: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.6 The Box-Jenkins Approach

• Illustrative Example– As an illustrative example we consider the problem of

forecasting hog marketings considered by Leuthold et al.

– It is an old study, but the example illustrates how the correlogram can be used to arrive at a model that uses higher than first-order differences.

– The data consist of 275 daily observations. – The correlograms for the original data are presented i

n Figure 13.4. The correlogram does not damp, thus indicating nonstationarity.

Page 44: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.6 The Box-Jenkins Approach

– The peaks at 5, 10, 15, ... indicate a strong 5-day weekly effect

– Figure 13.5 shows the correlogram of first differences. It still shows peaks at 5, 10, 15, and so on, and it does not show any sign of damping.

– Since the peaks do not damp, it suggests a fifth-order MA component as well

– We next try fifth differences, that is Xt - Xt-5– The correlogram, shown in Figure 13.6, damps. – But the initial decline and oscillation suggest the use o

f an ARMA model rather than a pure AR or MA model– Leuthold et al. finally arrive at the model

Page 45: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.6 The Box-Jenkins Approach

Page 46: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.6 The Box-Jenkins Approach

Page 47: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.6 The Box-Jenkins Approach

Page 48: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.6 The Box-Jenkins Approach

Page 49: 13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving

13.6 The Box-Jenkins Approach