Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus,...

43
Univariate Time Series Analysis () Introductory Econometrics: Topic 6 1 / 43

Transcript of Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus,...

Page 1: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Univariate Time Series Analysis

() Introductory Econometrics: Topic 6 1 / 43

Page 2: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Univariate Time Series Analysis

End goal: Regression model relating a dependent variable toexplanatory variables.

Before doing this we must understand the property of each variable.Thus, this chapter works with single variable, Yt for t = 1, ..,T

New issues with time series data:

1 One time series variable can influence another with a time lag.2 If the variables are nonstationary, a problem known as spuriousregression may arise.

() Introductory Econometrics: Topic 6 2 / 43

Page 3: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

We will explain terms like nonstationary, stationary and spuriousregression later.

In this course, we use autoregressive model (similar to autocorrelatederrors of Topic 5, but applied to Yt instead of εt)

Using this model, discuss unit root.

If Yt has a unit root then it is nonstationary.

Dickey-Fuller test is test for unit root

() Introductory Econometrics: Topic 6 3 / 43

Page 4: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Trends in Time Series Variables

We have not definited stationary/nonstationary variables, but closelyrelated to the concept of a trend.

Figure 6.1 plots logarithm of personal income in the U.S. from thefirst quarter of 1954 through to the last quarter of 1994.

Note that personal income seems to be increasing over time at aroughly constant rate (although there are fluctuations).

Many macroeconomic and financial variables (e.g. GDP, the pricelevel, industrial production, consumption, government spending, stockmarket indices, etc.) exhibit trends of this sort.

() Introductory Econometrics: Topic 6 4 / 43

Page 5: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

1950 1955 1960 1965 1970 1975 1980 1985 1990 19956.8

7

7.2

7.4

7.6

7.8

8

8.2

8.4Figure 6.1: Time Series Plot of  Log of  US Personal Income

Log 

of P

erso

nal I

ncom

e

() Introductory Econometrics: Topic 6 5 / 43

Page 6: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Differencing

∆Yt = Yt − Yt−1 is the first difference of Yt .∆Yt measures the change or growth in a variable over time.If Yt is variable which has been logged, then 100× ∆Yt measures thepercentage change.

∆Yt is often called “delta Y”or “the change in Y”.Figure 7.2 plots ∆Yt for log personal income data

() Introductory Econometrics: Topic 6 6 / 43

Page 7: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

1950 1955 1960 1965 1970 1975 1980 1985 1990 1995­0.03

­0.02

­0.01

0

0.01

0.02

0.03

0.04

0.05Figure 7.2: Time Series Plot of  Change in US Personal Income

Cha

nge 

in L

og o

f US

 Per

sona

l Inc

ome

() Introductory Econometrics: Topic 6 7 / 43

Page 8: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

With time series often have correlation across observations.

Personal income today highly correlated with personal income lastquarter (correlation is 0.999716)

But change in personal income and change in personal income laggedonce nearly uncorrelated (−0.00235)Many macroeconomic and financial time series exhibit this behavior.

Y tends to exhibit trend behavior and to be highly correlated overtime

∆Y exhibits no trend behavior and is not highly correlated over time.

Relates to issue of nonstationarity.

() Introductory Econometrics: Topic 6 8 / 43

Page 9: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

The Autocorrelation Function

Autocorrelations are correlations involving a variable and a lag ofitself.

The autocorrelation function is

rp = corr (Yt ,Yt−p)

Common pattern in macro/finance variables: autocorrelations tend tobe near one for Y and near zero for ∆YTable 7.2: log personal income data

() Introductory Econometrics: Topic 6 9 / 43

Page 10: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Table 7.2: Autocorrelation FunctionLag Length (p) Y ∆Y1 0.9997 −0.01002 0.9993 0.01213 0.9990 0.13414 0.9986 0.00825 0.9983 −0.15626 0.9980 0.06117 0.9978 −0.03508 0.9975 −0.06559 0.9974 0.074510 0.9972 0.148811 0.9969 0.033012 0.9966 0.0363

() Introductory Econometrics: Topic 6 10 / 43

Page 11: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

The Autoregressive Model

Autoregressive model can be used to formalize ideas about trends,stationarity, etc.

It is a regression model where the explanatory variables are lags of thedependent variable

“autoregressive” is shortened to “AR”.

Some aspects of AR model discussed in Topic 5 (errors in a regressionhad an AR structure — see this material for some relevant derivations)

Here AR structure used for Y (not ε).

() Introductory Econometrics: Topic 6 11 / 43

Page 12: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

The AR(1) ModelYt = α+ ρYt−1 + εt

for t = 2, ..,T .

Jargon: when Yt has an AR model, say it is an autoregressive process.

Properties of Y depend on ρ

Artificially simulate three different time series using ρ = 0,ρ = 0.8and ρ = 1.

All three series have the same values for α (i.e. α=0.01) and thesame errors.

() Introductory Econometrics: Topic 6 12 / 43

Page 13: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

0 10 20 30 40 50 60 70 80 90 100­0.02

­0.01

0

0.01

0.02

0.03

0.04Figure 7.3: AR(1) Time Series withρ = 0

() Introductory Econometrics: Topic 6 13 / 43

Page 14: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

0 10 20 30 40 50 60 70 80 90 1000

0.01

0.02

0.03

0.04

0.05

0.06

0.07

0.08

0.09Figure 7.4: AR(1) Time Series withρ = 0.8

() Introductory Econometrics: Topic 6 14 / 43

Page 15: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

0 10 20 30 40 50 60 70 80 90 1000

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9Figure 7.5: AR(1) Time Series withρ = 1

() Introductory Econometrics: Topic 6 15 / 43

Page 16: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Figure 7.3 (ρ = 0) exhibits random-type fluctuations (like change inpersonal income)

Figure 7.5 (ρ = 1) exhibits trend behavior (like personal income)

Figure 7.4 (ρ = 0.8) exhibits behavior that is somewhere in-between.

Figures illustrate the types of behavior that AR(1) models cancapture.

() Introductory Econometrics: Topic 6 16 / 43

Page 17: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Definition: For the AR(1) model, Y is stationary if |ρ| < 1Y is nonstationary if ρ = 1.

Note: |ρ| > 1, is rarely considered in economics (explosive behaviour).To give some math intuition, here is a result from autocorrelatederrors part of Topic 5

Same proof, but uses Y as variable of interest and assumes ε satisfiesclassical assumptions with var (εt ) = σ2):

var (Yt ) = σ2∞

∑i=0

ρ2i

Note that, if |ρ| < 1 we can then write:

var (Yt ) =σ2

1− ρ2

But if ρ = 1, we cannot (variance is going to infinity, sum does notconverge)

() Introductory Econometrics: Topic 6 17 / 43

Page 18: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

We will not provide proofs/derivations here

Key aspect of them is: If ρ = 1 our basic derivations no longer work(Y will not satisfy classical assumptions, key variances used in ourderivations of confidence intervals and hypothesis tests will be goingto infinity, etc.).

Formally, “nonstationary”means “anything that is not stationary”.

Economists focus on the one particular type: unit root nonstationarity.

() Introductory Econometrics: Topic 6 18 / 43

Page 19: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Following are ways of thinking about whether, Y , is stationary or hasa unit root:

In the AR(1) model , if ρ = 1, then Y has a unit root. If |ρ| < 1 thenY is stationary

If Y has a unit root then its autocorrelations will be near one and willnot drop much as lag length increases.

If Y has a unit root, then it will have a long memory. Stationary timeseries do not have long memory.

If Y has a unit root then the series will exhibit trend behavior(especially if α is non-zero).

If Y has a unit root, then ∆Y will be stationary. For this reason,series with unit roots are often referred to as difference stationaryseries.

() Introductory Econometrics: Topic 6 19 / 43

Page 20: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

A convenient way of writing the AR(1) model (subtract off Yt−1 fromboth sides)

Yt − Yt−1 = α+ ρYt−1 − Yt−1 + εt

which gives∆Yt = α+ φYt−1 + εt

where φ = ρ− 1.Note that, if ρ = 1, then φ = 0 and ∆Yt fluctuates randomly aroundα.

Note we can test φ = 0 to see if a series has a unit root.

Stationary if −1 < ρ < 1 which is equivalent to −2 < φ < 0. This isthe stationarity condition.

() Introductory Econometrics: Topic 6 20 / 43

Page 21: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

More jargon: if ρ = 1 (or, equivalently, φ = 0) can write:

Yt = α+ Yt−1 + εt .

This is random walk model (more precisely, α is called a drift and,thus, random walk with drift)

Many financial and macroeconomic time series variables look likerandom walks with drifts.

The AR(1) model is a regression model.

Accordingly, we can use OLS to regress the variable Y on an interceptand lagged Y .

For personal income, we find α̂ = 0.039 and ρ̂ = 0.996 (pretty closeto random walk with drift)

() Introductory Econometrics: Topic 6 21 / 43

Page 22: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Extensions of the AR(1) Model

Autoregressive of order p, AR(p), model:

Yt = α+ ρ1Yt−1 + ..+ ρpYt−p + εt

for t = p + 1, ..,T

Properties similar to the AR(1) model but are more general.

When discussing unit root behavior, it is convenient to write model ina different way.

Subtract Yt−1 from both sides of the equation and re-arrange toobtain equation on next slide

() Introductory Econometrics: Topic 6 22 / 43

Page 23: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

∆Yt = α+ φYt−1 + γ1∆Yt−1 + ..+ γp−1∆Yt−p+1 + εt

φ,γ1, ..,γp−1 are functions of ρ1, .., ρp from the original AR(p)model.

For instance, φ = ρ1 + ..+ ρp − 1.This is identical to the original AR(p) model, but is just writtendifferently.

φ = 0 implies that the AR(p) time series Y contains a unit root; if−2 < φ < 0, then the series is stationary.

Note: if φ = 0 then Yt−1 will drop out of the equation and only termsinvolving ∆Y or its lags appear in the regression

if a unit root is present, then the series can be differenced to inducestationarity.

() Introductory Econometrics: Topic 6 23 / 43

Page 24: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Adding a deterministic trend as an explanatory variable is anotherway of extending model

Consider a model where time is explanatory variable:

Yt = α+ δt + εt ,

This regression model yields trend behavior.

Jargon, δt is deterministic trend (unit root series contain stochastictrend).

Can add deterministic trend to AR(1) model:

Yt = α+ ρYt−1 + δt + εt

Figure 7.6 which is a time series plot of artificial data generated fromthe previous model with α = 0, ρ = 0.2 and δ = 0.01.

Note it is stationary since |ρ| < 1.Figure 7.6 looks much like Figure 7.5 (or Figure 7.1).

() Introductory Econometrics: Topic 6 24 / 43

Page 25: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

0 10 20 30 40 50 60 70 80 90 1000

0.2

0.4

0.6

0.8

1

1.2

1.4Figure 7.6: Trend Stationary  AR(1) Time Series

() Introductory Econometrics: Topic 6 25 / 43

Page 26: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Stationary models with a deterministic trend can yield time seriesplots that resemble those from unit root.

Thus, you should not rely on looking at graphs, we need a statisticaltest for unit root.

We can add deterministic trend to the AR(p) model to get AR(p)with deterministic trend model

∆Yt = α+ φYt−1 + γ1∆Yt−1 + ..+ γp−1∆Yt−p+1 + δt + εt .

() Introductory Econometrics: Topic 6 26 / 43

Page 27: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

AR models: A summary

The nonstationary time series models we use are those containing aunit root. These series contain a stochastic trend. But if wedifference these time series, the resulting time series will be stationary.For this reason, they are also called difference stationary.

The stationary time series we use have −2 < φ < 0 in the AR(p)with deterministic trend model. However, these series can exhibittrend behavior through the incorporation of a deterministic trend. Inthis case, they are referred to as trend stationary.

Now we have to turn to estimation and testing. We will discusshypothesis testing shortly.

Estimation of AR models (and extensions): OLS is commonly used(although software packages allow other possible estimation methods)

() Introductory Econometrics: Topic 6 27 / 43

Page 28: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Example: U.S. Personal Income

Remember: AR(4) model with deterministic trend can be written as

∆Yt = α+ φYt−1 + γ1∆Yt−1 + γ2∆Yt−2 + γ3∆Yt−3 + δt + εt

Remember φ which is coeffi cient on Yt−1 is the crucial one for unitroot.

Note: if φ = 0 a unit root is present.

Run OLS regression using ∆Yt as dependent variable and variables onright hand side of equation as explanatory variables

See table on next slide

() Introductory Econometrics: Topic 6 28 / 43

Page 29: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Table 7.3: AR(4) with Deterministic Trend ModelVariable OLS Estimate t-statistic P-valueIntercept 0.138 1.279 0.203Yt−1 −0.018 −1.190 0.236∆Yt−1 −0.017 −0.217 0.829∆Yt−2 0.014 0.172 0.863∆Yt−3 0.130 1.627 0.106t 0.0001 0.955 0.341

() Introductory Econometrics: Topic 6 29 / 43

Page 30: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Testing in the AR(p) with Deterministic Trend Model

To preview some material we will discuss later in the course:

with the exception of a case called cointegration, we do not want toinclude unit root variables in regression models.

This motivates why we must know if any variable has a unit root. Weneed a unit root test.

Previously we talked about hypothesis testing to decide whether anexplanatory variable should be included

Same basic ideas hold.

However, one important complication occurs in the AR(p) modelrelating to unit roots.

To understand it, divide coeffi cients into two groups: 1)α,γ1, ..,γp−1, δ, and 2) φ.

In other words, we consider hypothesis tests involving φ independentlyof those involving the other coeffi cients.

() Introductory Econometrics: Topic 6 30 / 43

Page 31: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Begin by discussing testing Involving α,γ1, ..,γp−1 and δ

Many methods exist to determine the appropriate lag length in anAR(p) model

But simply looking at t-statistics or F-statistics can be quiteinformative.

Such tests involving these coeffi cients work in the same way as inprevious chapters.

E.g. In Table 7.3 the P-value associated with the coeffi cients on thelagged ∆Y terms are insignificant (so might want to drop these)

In Table 7.3 the P-value associated with deterministic trend isinsignificant (so might want to drop this)

() Introductory Econometrics: Topic 6 31 / 43

Page 32: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Common strategy: choose maximum lag length, pmax , andsequentially drop lags if relevant coeffi cients are insignificant.A summary of this testing strategy is:Step 1: Choose the maximum lag length, pmax .Step 2: Estimate using OLS the AR(pmax) with deterministic trendmodel. If the P-value for testing γp max−1 = 0 is less than thesignificance level you choose (e.g. 0.05) then go to Step 5, usingpmax as lag length. Otherwise go on to the next step.Step 3: Estimate the AR(pmax − 1) model. If the P-value for testingγp max−2 = 0 is less than the significance level you choose then go toStep 5, using pmax − 1 as lag length. Otherwise go on to the nextstep.Step 4: Repeatedly estimate lower order AR models until you find anAR(p) model where γp−1 = 0 is statistically significant (or you runout of lags).Step 5: Now test for whether the deterministic trend should beomitted; that is, if the P-value for testing δ = 0 is greater than thesignificance level you choose then drop the deterministic trendvariable.

() Introductory Econometrics: Topic 6 32 / 43

Page 33: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Example: U.S. Personal Income (continued)

We did sequential testing beginning with pmax = 4, the modelreduces to:

∆Yt = α+ φYt−1 + εt

Results:

Table 7.4: AR(1) ModelVariable OLS Estimate t-statistic P-valueIntercept 0.039 2.682 0.008Yt−1 −0.004 −2.130 0.035

() Introductory Econometrics: Topic 6 33 / 43

Page 34: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Using Information Criteria to Select a Model

An alternative approach to model selection is to use an informationcriterion: IC

A measure of how good the model is.

You calculate it for every model and select the model which yields thehighest IC.

Warning: this is textbook definition. In some places, including Gretl,IC’s are defined as the negative of textbook definition and you selectmodel with lowest IC.

E.g. if you have two regression models with the same dependentvariable but different explanatory variables, IC can be used to choosebetween them.

E.g. if you have AR(4) and AR(3) can use IC to choose betweenthem (lag length selection)

Most econometric software packages (like Gretl) will automaticallycalculate IC’s for you

() Introductory Econometrics: Topic 6 34 / 43

Page 35: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

We won’t derive and formally define various IC’s in this course

The basic idea is that you want a model which fits well (as measuredby SSR), but you can always improve fit by adding more explanatoryvariables.

Hence, the IC’s combine a part which rewards good fit with a partwhich penalizes model complexity (i.e. adding new explanatoryvariables)

A few of the most common ones are:

Bayesian Information Criterion (or BIC), also known as Schwarzcriterion.

Akaike Information Criterion (or AIC)

Hannan-Quinn Criterion (or HQ)

() Introductory Econometrics: Topic 6 35 / 43

Page 36: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Now let us return to hypothesis testing:

Testing Involving φ: Unit Root Testing

Remember if φ = 0, then Y contains a unit root.

So maybe you can just test φ = 0 in the same manner as you testedthe significance of the other coeffi cients?

E.g. Table 7.4, the t-statistic for the coeffi cient φ is −2.13. If you getcritical values from Student-t statistical tables (or look at P-values),you reject the hypothesis that φ = 0.

So φ is not zero, and, therefore, that Y does not have a unit root??

THIS IS INCORRECT!

In hypothesis testing, φ is different from other coeffi cients and wemust treat it differently.

() Introductory Econometrics: Topic 6 36 / 43

Page 37: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Derivations and proofs a bit hard and will not be provided.Textbook provides some hints about why the derivations are differentthan before.Correct test is Dickey-Fuller test.Dickey-Fuller test uses the familiar t-statistic for testing φ = 0.However, critical values for this t-stat not Student-t, but ratherDickey-Fuller distribution.Another complication: distribution differs between the cases wherethe AR model does or does not include a deterministic trend.Econometric packages like Gretl will provide critical values for you(but not Excel)Also, I provide some Dickey-Fuller critical values below.Note: Some say “Dickey-Fuller test” is for testing for φ = 0 in theAR(1) model and use the term “Augmented Dickey-Fuller test” fortesting in the AR(p) model.But these are basically the same test so I (and many others) just say“Dickey-Fuller test” for both.

() Introductory Econometrics: Topic 6 37 / 43

Page 38: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

How to do Dickey Fuller test in practice?

In computer sessions, you will see how Gretl can be used to do thisautomatically

Here are the steps if you want to do this using only OLS regressionmethods

First estimate the AR(p) model with deterministic trend:

∆Yt = α+ φYt−1 + γ1∆Yt−1 + ..+ γp−1∆Yt−p+1 + δt + εt

use sequential testing procedures to select lag length and decidewhether deterministic trend should be included.

Then, record the t-stat corresponding to the coeffi cient φ andcompare to appropriate Dickey-Fuller critical value from Table 7.5.

() Introductory Econometrics: Topic 6 38 / 43

Page 39: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Dickey Fuller critical values depend on sample size and whether modelhas deterministic trend or not.

Remember φ = 0 implies unit root and −2 < φ < 0, then the seriesis stationary.

So if stationary φ̂ (and, thus, its t-statistic) should be negative.

Thus, unit root hypothesis is rejected if the t-statistic is morenegative than the critical value

Dickey-Fuller test is the most popular unit root test, however thereare many others and many econometrics software packages like Gretlallow you to do them automatically.

() Introductory Econometrics: Topic 6 39 / 43

Page 40: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Table 7.5: Critical Values for the Dickey-Fuller TestT = 25 T = 50 T = 100 T = ∞

AR Model Does Not Have Deterministic Trend1% CriticalValue

−3.75 −3.59 −3.50 −3.42

5% CriticalValue

−2.99 −2.93 −2.90 −2.80

AR Model Does Have Deterministic Trend1% CriticalValue

−4.38 −4.15 −4.04 −3.96

5% CriticalValue

−3.60 −3.50 −3.45 −3.41

() Introductory Econometrics: Topic 6 40 / 43

Page 41: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Example: U.S. Personal Income (continued)

From Table 7.4, Dickey Fuller test statistic is −2.130For T = 163, Table 7.5 says 5% critical value is between −2.90 and−2.80.Test statistic is not more negative than the critical value.

Hence, accept hypothesis that personal income does contain a unitroot at the 5% level of significance.

Note: a formal general definition of stationarity is provided intextbook (but not covered in this course)

Note: the textbook also have a discussion of volatility/ARCH andGARCH. These topics are not covered in the course (but if you areinterested in finance you might want to read them anyway)

() Introductory Econometrics: Topic 6 41 / 43

Page 42: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

Chapter Summary

Regressions with time series variables involve two new issues. First,one variable can influence another with a time lag. Second, if thevariables are nonstationary, the spurious regression problem canresult. The latter issue will be dealt with in next lectures.

Many time series exhibit trend behavior, while their differences do notexhibit such behavior.

The autocorrelation function is a common tool for summarizing therelationship between a variable and lags of itself.

Autoregressive models are regression models used for working withtime series variables. Such models can be written in two ways: onewith Yt as the dependent variable, the other with ∆Yt as thedependent variable.

The distinction between stationary and non-stationary models is acrucial one.

Unit root nonstationarity is key in economics.

() Introductory Econometrics: Topic 6 42 / 43

Page 43: Univariate Time Series Analysispersonal.strath.ac.uk/gary.koop/ec311/Topic_6_slides_2015.pdfThus, this chapter works with single variable, Y t for t = 1,..,T New issues with time series

If Yt has unit root then AR(p) model with ∆Yt as the dependentvariable can be estimated using OLS. Standard statistical results holdfor all coeffi cients except the coeffi cient on Yt−1.

In the AR(p) model with deterministic trend, sequential hypothesistesting procedures can be used to select lag length and decidewhether a deterministic trend should be included.

Information criteria can also be used for lag length selection (or, ingeneral, choosing between any two models which have the samedependent variable)

The Dickey-Fuller test is a unit root test. It involves testing whetherthe coeffi cient on Yt−1 is equal to zero using the t-statistic. Thet-statistic does not have a Student-t distribution and critical valuesmust be taken from the Dickey-Fuller statistical tables.

() Introductory Econometrics: Topic 6 43 / 43