Professional Documents
Culture Documents
3
1.Notation
4
1.Notation
5
1.Notation
• Obvious seasonality rules out series (d), (h) and ( I ).
Trends and changing levels rules out series (a), (c),
(e), (f) and ( I ). Increasing variance also rules out
( I ). That leaves only (b) and (g) as stationary series.
6
2.Differencing
7
2.Differencing
The differenced series will have only T−1 values, since it is not possible to calculate a difference y′1 for
the first observation.
When the differenced series is white noise, the model for the original series can be written as:
where ε t denotes white noise. Rearranging this leads to the “random walk” model
8
2.Differencing
• The value of c is the average of the changes between consecutive observations. If c is positive, then the average
change is an increase in the value of Yt. Thus, Yt will tend to drift upwards. However, if c is negative, Yt will tend
to drift downwards.
9
2.Differencing
•Second-order differencing
• Occasionally the differenced data will not appear to be stationary and it may be necessary to difference the data a
second time to obtain a stationary series:
• In this case, Y′′t will have T−2 values. Then, we would model the “change in the changes” of the original data. In
practice, it is almost never necessary to go beyond second-order differences.
10
2.Differencing
•Seasonal differencing
• A seasonal difference is the difference between an observation and the previous observation from the same season.
So :
• where m= the number of seasons. These are also called “lag -m differences”, as we subtract the observation after a lag
of m periods.
• If seasonally differenced data appear to be white noise, then an appropriate model for the original data is :
11
3.How to detect stationary?
1.Visualizations:
12
3.How to detect stationary?
1.Visualizations:
• Looking at the data :Trying to determine whether a time series was generated by a stationary process just by
looking at its plot is a dubious venture. However, there are some basic properties of non-stationary data that we
can look for or using difference to transform non-stationary to stationary.
• Example:
13
3.How to detect stationary?
1.Visualizations:
• Autocorrelation is the correlation of a signal with a delayed copy — or a lag — of itself as a function of the
delay. When plotting the value of the ACF for increasing lags (a plot called a correlogram), the values tend to
degrade to zero quickly for stationary time series (see figure 1, right), while for non-stationary data the
degradation will happen more slowly (see figure 1, left):
14
THANK YOU !
15