Chapter 3ee
Chapter 3ee
Chapter 3ee
1
Outline
3.1 The nature of Time Series Data
3.2 Stationary and non-stationary stochastic Processes
3.3 Trend Stationary and Difference Stationary
Stochastic Processes
3.4 Integrated Stochastic Process
3.5 Tests of Stationarity: The Unit Root Test
2
3.1 The nature of Time Series Data
3
3.1 The nature of Time Series Data
A sequence of random variables indexed by time is
called a stochastic process or a time series process.
(“Stochastic” is a synonym for random).
If we let Y represent GDP, for our data we have Y1, Y2,
Y3, ..., Y42, Y43, where the subscript 1 denotes the first
observation (i.e., GDP for the year 1981)
Keep in mind that each of these Y’s is a random
4
variable.
GDP of Ethiopia(in USD)
140
120
100
80
60
43.310721414083
40
20
0
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22
19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
term mean.
7
3.2 Stationary and non-stationary
stochastic Processes
What is stationarity?
(1) ,
(2) ,
(3) , where is a lag-length.
8
The auto-covariances are not a particularly useful
measure
• since the values of the auto-covariances depend on
the units of measurement of , and hence the values
that they take have no immediate interpretation.
• It is thus more convenient to use the autocorrelations,
which are the auto-covariances normalized by
dividing by the variance
where,
9
Stationary
Declines to 0 immediately
Non-stationary
13
14
Lag length selection criterion
Hold for ACF and PACF
These statistics test the joint hypothesis that all
the ACFs are simultaneously equal to zero, thus
the series is stationary:
1) Q-TEST
m
Q n
ˆ k2
k1
n sample size
m lag length
2 ( m) degrees of freedom 15
2) LJUNG-BOX TEST
This statistic is the same as the Q statistic in
large samples, but has better properties in
small samples
m 2
ˆ k
LB n(n 2) ( )
k 1 (n k )
16
3.2 Stationary and non-stationary
stochastic Processes
Non-stationary Stationary
White-noise
Random walk model
ARIMA processes
Random walk with drift
Strict stationary
Trend Difference stationary
Trend stationary
17
18
3.2.1.Non-stationary stochastic Processes
• Hence,
20
Its variance
Since,
21
2) Random walk model (RWM) with drift
,
Variance
23
2) Deterministic Trend
24
3.3 Stationary stochastic processes
1. Difference stationarity
,
,
• Symbolically
if a non-stationary time series has to differenced
d-times (that is: ) to be stationary, then we say is
d-ordered integrated time series. Or .
25
Example of difference stationary(Dow Jones
Indices for October 2015)
26
2) Trend stationarity
Differencing once
27
28
3.4 Stationarity tests
1. Visual DETECTION
Time series plot
Correlogram
30
31
Correlogram
a graphical showing height of ACF/PACF at
various lag length.
32
2) Unit root test
We now turn to the important problem of testing
whether a time series is stationary or not.
The simplest approach to testing for a unit root
begins with a random walk model (RWM):
,
the null hypothesis is that has a unit root:
33
(1)Dickey-Fuller test
A convenient equation for carrying out the unit root
test is to subtract from both sides of the equation ()
as:
stationary.
35
It is estimated in 3 different forms
1) is a random walk:
trend:
36
37
(2) Augmented dickey fuller(ADF) test
The Dickey–Fuller specifications and the critical
values for those specifications are derived under
the assumption that the error term is serially
uncorrelated.
Augmented Dickey–Fuller test (ADF), adds a series
of lagged values of to the Dickey–Fuller test (That
is, it takes autocorrelation into account) 38
EXAMPLE
39
40
The ADF test here consists of estimating the
following regression:
EXAMPLE
42
3.6 Cointegration and ECM
As a general rule, non-stationary time-series variables should not be
43
Cointegration implies that and share similar
stochastic trends, and, since the difference is
stationary, they never diverge too far from each
other.
𝑌𝑡
44
Testing for Cointegration
Engle–Granger (EG) or Augmented Engle–Granger
(AEG) Test
Since the estimated are based on the estimated
cointegrating parameter , the DF and ADF critical
significance values are not quite appropriate.
Step
1) Estimate model
2) Predict residual
3) Undertake unit root test
45
Example
1) Using the data introduced in Section 21.1 and
found on the book’s website, we first
regressed LPCEC on LDPIC and obtained the
following regression:
46
2) Since LPCE and LDPI are individually non-stationary,
there is the possibility that this regression is spurious.
But when we performed a unit root test on the residuals
obtained from Eq. (21.11.3), we obtained the following
results:
49
EXAMPLE
50
• The negative value of the error correction
coefficient (-0.1223) indicates that the dependent
variable adjusts towards its long-run equilibrium
at a rate of approximately 12.23% per period.
This means that it takes time for the system to
correct deviations from the long-term
equilibrium, and the adjustment occurs at a
relatively slow pace.
• Given the negative sign of the coefficient, it
suggests that the system tends to correct
deviations from equilibrium, which aligns with
the theoretical expectations of an error
correction model. 51