Unit 1
Unit 1
Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
1 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
1 Some logistics...
2 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
Course administrative
3 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
1 Some logistics...
4 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
5 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
6 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
Time series also differs from data such as regression data, where
we have pairs of numbers and are looking for the relationship
between the pairs. We will see as we move along that there is a
relationship to regression in that we can form pairs from the
sequenced observations.
7 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
8 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
1 Some logistics...
9 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
1 Description.
2 Interpretation / Explanation.
3 Prediction / Forecasting.
4 Control.
5 Hypothesis testing.
6 Simulation.
10 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
Description
Some of the features of time series data we look out for are:
• Trend.
• Periodicity / Seasonality.
• Is the mean changing over time?
• Is the variation changing over time?
• Are there abrupt changes?
• Are there outliers?
11 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
4e+04
2e+04
0e+00
0 20 40 60 80
Time
12 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
●
1e+05
8e+04
●
6e+04
sales
●
●
4e+04
●
●
● ●●
● ●
● ●
2e+04
●
● ●
● ●
● ●
● ●
● ●
●
● ● ● ● ●
● ● ●
●●
● ● ●●●● ● ●
● ●● ●●●●●● ●
● ● ●●● ●● ● ●
● ● ● ●●●●●●● ●● ● ●
0e+00
●●●● ● ●
●●
0 20 40 60 80
time
13 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
4e+04
2e+04
0e+00
0 20 40 60 80
Time
1 Some logistics...
15 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
There are two primary approaches to time series. One is the time
domain approach. This approach focuses on the rules for a time
series to move forward. For example, how do yesterday’s and
today’s observations affect tomorrow’s observation?
16 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
17 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
1 Some logistics...
18 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
19 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
15
14
Time
20 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
21 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
22 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
Series summer
1.0
0.8
0.6
ACF
0.4
0.2
0.0
0 5 10 15 20
Lag
23 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
24 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
40
30
20
10
Time
25 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
There was a data set made famous by Yule concerning the number
of marriages in the Church of England as a percentage of all
marriages. It appears as a somewhat negative linear trend. If we
perform a linear regression, then the residuals are correlated. We
may want to tackle trends in a slightly different way to deal with
the dependency.
26 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
65
60
Time
27 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
Series fit$resid
1.0
0.8
0.6
0.4
ACF
0.2
0.0
−0.2
0 5 10 15
Lag
28 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
In another data set with a clear trend, we look at the closing stock
price for IBM stock from Jan 1980 to Oct 1992. A common
transformation for stock price is to look at returns diff (log (xn )).
The resulting series looks fairly stationary except for a huge shock.
Different transformations get us data that’s easier to analyze.
29 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
0.1
160
140
0.0
Price in dollars
120
Returns
−0.1
100
80
−0.2
60
Time Time
30 / 31
Some logistics... Introduction to Time Series Objectives of Time Series Time Domain Vs Frequency Domain A Few More Exampl
Homework
31 / 31