Professional Documents
Culture Documents
Chapter Two:
Introduction to basic regression
Chapter
analysis heading
with time series data
Time series Data Analysis: Objectives of the chapter
1
Time series Data Analysis: Nature of TS data
1. Temporal ordering
• A TS data set is provided in order of time (chronological)
For example: 2020 immediately precede the data for 2021 and
so forth.
• The past can affect the future but not the future.
2. Stochastic process
A stochastic process is just a sequence of random variables
indexed by time.
In TS stochastic is a “synonym for random”
when we collect a TS data set, we obtain one possible
outcome, or realization of the stochastic process.
1
Time series Data Analysis: Nature of TS data
1
Time series Data Analysis: Nature of TS data
MON T H T H H T T T .
TUS H T T T T H T H .
WED T H H T T H T H .
THR H T T T T H T T .
FRI T T T H H T H T .
SAT H H H H H T H T .
SUN T H H T H H T T .
1
Time series Data Analysis: Nature of TS data
MON T H T H H T T T .
A
TUS H T T T T H T H .
WED T H H T T H T H .
THR H T T T T H T T .
FRI T T T H H T H T .
SAT H H H H H T H T .
SUN T H H T H H T T .
The following two natures are not true for all time TS data
3. Trend time series
• Many economic variables have a tendency of growing up
overtime.
• Considering existence of time trend in TS is important while
making a casual inference among a TS data,
• if not we will face a problem of Spurious regression
The trend in a TS can be:
o Deterministic
Or
o Stochastic
1
Time series Data Analysis: Nature of TS data
4. Seasonality
• Often TS data exhibits some periodicity.
Example: in monthly data retail sales will tend to jump in
months of holidays.
• Seasonality can be dealt with adding a set of seasonal
dummies in our regression model.
1
Time series Data Analysis: Some examples of TS Models
1. Static model
• If y and are a TS variables and the data are dated
contemporaneously, we have
1
Time series Data Analysis: Some examples of TS Models
1
Time series Data Analysis: Some examples of TS Models
1
Time series Data Analysis: Some examples of TS Models
1
Time series Data Analysis: Some examples of TS Models
• So
1
Time series Data Analysis: Some examples of TS Models
• Similarly
1
Time series Data Analysis: Some examples of TS Models
• When can also graph the lag distribution, to summarize the dynamic effect
that a temporary increase inhas on .
the largest effect is at the first lag. After that, the effect starts to vanishes (if
the initial shock was transitory).
1
Time series Data Analysis: Some examples of TS Models
Then:
1
Time series Data Analysis: Some examples of TS Models
1
Time series Data Analysis: Some examples of TS Models
1
Time series Data Analysis: Some examples of TS Models
1
Time series Data Analysis: Some examples of TS Models
1
Time series Data Analysis: Some examples of TS Models
1
END of slide
Time series Data Analysis: Stationary and Non-stationary TS
Which data series represents stationary variables and which are observations
on non stationary variables?
1
Time series Data Analysis: Stationary stochastic process
1
Time series Data Analysis: Stationary stochastic process
1
Time series Data Analysis: Stationary stochastic process
1
Time series Data Analysis: Stationary stochastic process
Our AR(1) is :
Note: in the context of TS models the error terms are known as shocks or
Innovations.
o The assumption implies that is stationary.
o In general, the model implies each realization of random variable
contains the portion of last period value plus an error drown from the
a distribution with mean zero and variance.
o To show is stationary let follow a recursive substitution
1
Time series Data Analysis: Stationary stochastic process
o Conceder the value of at a time then its value at time and so on…
o These values are
The mean of
1
Time series Data Analysis: Stationary stochastic process
o This is because the error tem has a mean zero and is negligible for
large .
o For an infinite series if ,
o Hence the variance of is:
1
Time series Data Analysis: Stationary stochastic process
1
Time series Data Analysis: Stationary stochastic process
1
Time series Data Analysis: Stationary stochastic process
Now and
o This is example of trend stationary process, the detrended series is
stationary; is stationary around the deterministic trend line
1
Time series Data Analysis: Stationary stochastic process
1
Time series Data Analysis: Stochastic trend
1
Time series Data Analysis: Stochastic trend
The stochastic
trend (because it
changes to
unpredictable
directions)
Thus
o A random walk has a mean equal to its initial value and variance that
increases overtime, eventually becoming infinity.
1
Time series Data Analysis: Stochastic trend
o Now each realization of the variable contains, an intercept plus the last
period value of and the error .
1
Time series Data Analysis: Stationary and Non-stationary TS
o Notice how the TS data appear to be “wandering” as well as “trending” upward (e).
o In general, random walk with drift models show definite trends either upward (when
the drift is positive) or downward (when the drift is negative).
1
Time series Data Analysis: Stochastic trend
Two
o
The variable wanders up and cond f the
it
down as well as increases by a statio ions for
n
fixed amount at each time . viola arity are
ted
1
Time series Data Analysis: Stochastic trend
The
additional
term has the
effect of
o Where we have used the formula for a sum of an arithmetic
strengthening
the trend
progression, behavior
1
Time series Data Analysis: Consequences of Stochastic Trends
1
Time series Data Analysis: Consequences of Stochastic Trends
o As you can see, the coefficient of is highly statistically significant, and, although
the value is low, it is statistically significantly different from zero.
o You may be tempted to conclude that there is a significant statistical relationship
between and
1
Time series Data Analysis: Consequences of Stochastic Trends
1
Type author
Samuel usingname/s hereet al.
Carter
Chapter Two:
Introduction to basic regression
Chapter
analysis heading
with time series data
1
Time series Data Analysis: Unit Root Test
1
Time series Data Analysis: DF Test (No constant, No trend)
1
Time series Data Analysis: DF Test (No constant, No trend)
1
Time series Data Analysis: DF Test (No constant, No trend)
1
Time series Data Analysis: DF Test (with constant, No trend)
o Consider a time series that has no definite continuous trend, and that
is not obviously centered around zero.
o Suppose we wish to test whether this series is better represented by a
stationary or a nonstationary random walk.
o The nonstationary random walk is set up as the null hypothesis
1
Time series Data Analysis: DF Test (with constant, No trend)
1
Time series Data Analysis: DF Test (with constant and trend)
o For a series that have a clear time trend, we need to modify test for
unit root.
o If we carry out a DF test on a trending but stationary series, we will
probability have a little power rejecting a unit root.
o Hence, it is necessary to control for time while making this test, not to
mistaken trend stationary process to difference stationary process.
o If is stationary around a linear trend and described by the process
1
Time series Data Analysis: DF Test (with constant and trend)
1
Time series Data Analysis: DF Test (with constant and trend)
o in the null hypothesis is ignored, and it can be justified using the same
line of reasoning presented earlier.
1
Time series Data Analysis: DF Testing procedure
• Why ?
• Unfortunately the has no longer t-distribution (Asymptotic SND even in
large sample size] that we have used in may cases to test a zero null
for a regression coefficient. Why?
o Because when the is true, is not stationary, the variance increases
as the sample size increases. And this increase will alter the
distribution of the usual .
o Recognizing this fact Dickey and Fuller developed an appropriate
critical values often called
o The critical values in depends on the type of equation we are using.
1
Time series Data Analysis: Some examples of TS Models
• Recall that to carry out this one tail test of significance, we reject the null
hypothesis of stationarity if:
Don't reject if
1
Time series Data Analysis: Some examples of TS Models
Example: to test for a unit root in three-month T-bill rate we estimated and
obtained the following result
A, can we carry out the usual t-test? B, what does the coefficient of
imply?
1
Time series Data Analysis: Some examples of TS Models
A, we cannot use the usual t-test to check for the hypothesis because
existence of nonstationarity may result a non STD which affects the
outcome of our test.
1
Time series Data Analysis: Some examples of TS Models
1
Time series Data Analysis: Some examples of TS Models
1
Time series Data Analysis: Augmented DF Test
• While augmented Dickey–Fuller tests remain the most popular tests for
unit roots, the power of the tests is low in the sense that
• they often cannot distinguish between a highly persistent stationary
process (where is very close but not equal to 1) and a nonstationary
process (where ).
• The power of the test also diminishes as deterministic terms constant
and trend are included in the test equation.
• tests that have been developed with a view to improving the power of
the test: the Elliot, Rothenberg, and Stock (ERS), Phillips and Perron
(PP), Kwiatkowski, Phillips, Schmidt, and Shin (KPSS), and Ng and
Perron (NP) tests.
1
Time series Data Analysis: Augmented DF Test
• The ERS test proposes removing the constant/trend effects from the
data and performing the unit root test on the residuals.
• The distribution of the t-statistic is now devoid of deterministic terms
(i.e., the constant and/or trend).
• The PP test adopts a nonparametric approach that assumes a general
autoregressive moving-average structure and uses spectral methods to
estimate the standard error of the test correlation.
• Instead of specifying a null hypothesis of nonstationary, theKPSS test
specifies a null hypothesis that the series is stationary or trend
stationary. NP tests suggest various modifications of the PP and ERS
tests..
1
END of slide