Time Series Slides
Time Series Slides
STAT-684
8 June 2020
Properties:
A time series is a single occurrence of a stochastic process.
A time series model describes the variable Yt in terms of
contemporaneous (and perhaps lagged) factors X t , disturbances et,
its past (lagged) variables, Yt−1, . . . , Yt−p, and functions of time.
Just as we use samples in cross-sectional data to draw inferences
about the underlying population, in time series we use realizations of
the random variables over time (a time series) to draw inferences
about the underlying stochastic process.
2 The variances of the random variables in the series are all equal.
3 The covariances between any two random variables in the series depend only
on the distance between the two time points the variables are realized, and
not on the actual time points of their realizations. (Autocovariance)
Note: γ0 = σ2.
If any of the three conditions are violated we say that the stochastic
process is nonstationary.
2 The variances of the random variables in the series are all equal.
where et ∼N (0, σ 2 ).
Yt = Yt−1 + et.
Yt = Yt−1 + et.
Yt = 𝜃 0 + Yt−1 + et.
Yt = 𝜃 0 + Yt−1 + et.
𝑌𝑡 = t× 𝜃 0 + 𝑌0 + 𝑒𝑖
𝑖=1
Thus, E(Y t ) = t × 𝜃 0 + Y0 and var(Yt) = t × σ2, and
therefore nonstationary.
Yt = ρYt−1 + et,
Yt = ρYt−1 + et,
c σ2
E(Y t ) = and var(Yt) =
1−ρ 1 − ρ2
LYt = Yt−1,
Examples:
L2Yt = L(LY t ) = L(Y t−1 ) = Yt−2.
More generally: L k Y t = Yt−k and L0Yt = Yt.
(1 − L) = 0.
∆Y t = Yt − Yt−1.
Examples:
∆ 2 Y t = ∆ (∆ Y t ) = ∆(Y t − Yt−1) = ∆Y t − ∆Y t−1 = Yt − 2Yt−1 + Yt−2
∆ 0 Y t = Yt.
Note: The differenced time series ∆Y t is a time series which can be
stationary or not, just like any other time series.
We note the relationship between the lag operator and the difference
operator
∆Y t = (1 − L)Y t
and more generally
∆ k Y t = (1 − L) k Y t .
Let et be a stationary process with mean zero and variance σ2 (for example
a stationary AR(1) or white noise), and define the series {Y t } t∈T as
Yt = f (t) + et,
Yt = f (t) + ut,
Yt = β1 + Y t−1 + et
Deterministic trend
Yt = β1 + β2t + et
Yt = β1 + β2t + Y t−1 + et
Yt = β1 + β2t + β3Yt−1 + et
Suppose et is from a white noise process with mean zero and variance σ2
and let
Yt = β1 + β2t + β3Yt−1 + et
We have the following cases:
Random walk without drift, if β1 = 0, β2 = 0 and β3 = 1.
Random walk with drift, if β1 ≠ 0, β2 = 0 and β3 = 1.
Deterministic trend, if β1 ≠ 0, β2 ≠ 0 and β3 = 0.
Random walk with drift and deterministic trend, if β1 ≠ 0, β2 ≠ 0 and
β3 = 1.
Stationary AR(1) and deterministic trend, if β1 ≠ 0, β2 ≠ 0 and
β3 < 1.
If a time series has a single unit root the first difference of it results in
a stationary time series (which means it is I(1)).
Generally, if a time series has a unit root of d multiplicity, its
difference of order d is a stationary process (which means it is I(d)).
Time series that after differencing become stationary (integrated time
series) are called difference-stationary time series.
Transforming non-stationary time series is important for forecasting
and for the removal of spurious regression phenomenon.
∆Y t = Yt − Yt−1 = δ + et
Assume that a time series has a deterministic trend. If the time series
is stationary after we detrend it then the time series is said to be
“stationary around the trend line (curve)” or simply stated as
“trend-stationary”.
For example, the OLS residuals of Yt = β0 + β1t +et are stationary
and detrended. The series {Y t } itself is trend-stationary.
Note that the trend can be nonlinear too.
∆Y t = β1 + β2t + ut
Note: In this course we will not consider this complicated functions of time
(e.g. sin and cos). This is just an example I found that illustrates the point
well, that is, first differencing and then detredning a stime eries.
Farooq Shah Time Series (1 of 2) 08-Jun-20 44/ 46
Difference-Stationary Process vs Trend-Stationary Process