Professional Documents
Culture Documents
Introduction To Time Series Analysis. Lecture 1
Introduction To Time Series Analysis. Lecture 1
Peter Bartlett
1. Organizational issues.
2. Objectives of time series analysis. Examples.
3. Overview of the course.
4. Time series models.
5. Time series modelling: Chasing stationarity.
Organizational Issues
Peter Bartlett. bartlett@stat. Office hours: Thu 1:30-2:30 (Evans 399).
Fri 3-4 (Soda 527).
Brad Luen. bradluen@stat. Office hours: Tue/Wed 2-3pm (Room
TBA).
http://www.stat.berkeley.edu/bartlett/courses/153-fall2005/
Check it for announcements, assignments, slides, ...
Text: Time Series Analysis and its Applications, Shumway and Stoffer.
Organizational Issues
Computer Labs:
Wed 121 and Wed 23, in 342 Evans.
You need to choose one of these times. Please email bradluen@stat with
your preference. First computer lab sections are on September 7.
Classroom Lab Section:
section is on September 2.
Assessment:
Lab/Homework Assignments (40%): posted on the website.
These involve a mix of pen-and-paper and computer exercises. You may use
any programming language you choose (R, Splus, Matlab). The last
assignment will involve analysis of a data set that you choose.
Midterm Exam (25%): scheduled for October 20, at the lecture.
Final Exam (35%): scheduled for Thursday, December 15.
3
A Time Series
SP500: 19601990
400
350
300
250
200
150
100
50
0
1960
1965
1970
1975
year
1980
1985
1990
A Time Series
SP500: JanJun 1987
340
320
300
280
260
240
220
1987
1987.05
1987.1
1987.15
1987.2
1987.25
year
1987.3
1987.35
1987.4
1987.45
1987.5
A Time Series
SP500 JanJun 1987. Histogram
30
25
20
15
10
0
240
250
260
270
280
$
290
300
310
A Time Series
SP500: JanJun 1987. Permuted.
340
320
300
280
260
240
220
20
40
60
80
100
120
12
x 10
10
10
20
30
40
50
60
70
80
90
Transformed data
12
11.5
11
10.5
10
9.5
8.5
7.5
10
20
30
40
50
10
60
70
80
90
Trend
12
11.5
11
10.5
10
9.5
8.5
7.5
10
20
30
40
50
11
60
70
80
90
Residuals
1.5
0.5
0.5
10
20
30
40
50
12
60
70
80
90
11.5
11
10.5
10
9.5
8.5
7.5
10
20
30
40
50
13
60
70
80
90
X t = Tt + St + Yt .
Example: Seasonal adjustment.
3. Forecasting.
4. Control.
5. Hypothesis testing.
6. Simulation.
14
Unemployment data
Monthly number of unemployed people in Australia.
x 10
7.5
6.5
5.5
4.5
4
1983
1984
1985
1986
1987
15
1988
1989
1990
Trend
5
x 10
7.5
6.5
5.5
4.5
4
1983
1984
1985
1986
1987
16
1988
1989
1990
x 10
7.5
6.5
5.5
4.5
4
1983
1984
1985
1986
1987
17
1988
1989
1990
Residuals
4
x 10
6
1983
1984
1985
1986
1987
18
1988
1989
1990
x 10
7.5
6.5
5.5
4.5
4
1983
1984
1985
1986
1987
19
1988
1989
1990
3. Forecasting.
4. Control.
5. Hypothesis testing.
6. Simulation.
20
21
22
23
24
25
26
xt
x2 /2
dx.
2.5
1.5
0.5
0.5
1.5
2.5
10
15
20
25
27
30
35
40
45
50
1.5
0.5
0.5
1.5
2.5
10
15
20
25
28
30
35
40
45
50
10
15
20
25
29
30
35
40
45
50
Random walk
St =
Pt
i=1
Xi .
Differences: St = St St1 = Xt .
8
10
15
20
25
30
30
35
40
45
50
Random walk
ESt ? VarSt ?
10
10
15
10
15
20
25
31
30
35
40
45
50
Random Walk
Recall S&P500 data.
340
320
300
280
260
240
220
1987
1987.05
1987.1
1987.15
1987.2
1987.25
year
32
1987.3
1987.35
1987.4
1987.45
1987.5
Random Walk
St = St St1 = Xt .
Differences:
SP500, JanJun 1987. first differences
10
10
1987
1987.05
1987.1
1987.15
1987.2
1987.25
year
33
1987.3
1987.35
1987.4
1987.45
1987.5
5.5
4.5
3.5
2.5
50
100
150
34
200
250
5.5
4.5
3.5
2.5
50
100
150
35
200
250
5.5
4.5
3.5
2.5
50
100
150
36
200
250
0.4
0.3
0.2
0.1
0.1
0.2
0.3
0.4
0.5
50
100
150
37
200
250
38
).
Nonlinear transformations
Recall: Monthly sales.
4
12
x 10
11.5
10
11
10.5
8
10
9.5
9
4
8.5
8
2
7.5
10
20
30
40
50
60
70
80
90
39
10
20
30
40
50
60
70
80
90
Differencing
Recall: S&P 500 data.
SP500: JanJun 1987
340
10
8
320
6
4
300
280
2
260
4
6
240
8
220
1987
1987.05
1987.1
1987.15
1987.2
1987.25
year
1987.3
1987.35
1987.4
1987.45
1987.5
40
10
1987
1987.05
1987.1
1987.15
1987.2
1987.25
year
1987.3
1987.35
1987.4
1987.45
1987.5
Xt = Xt Xt1 = (1 B)Xt ,
where B is the backshift operator, BXt = Xt1 .
If Xt = 0 + 1 t + Yt , then
Xt = 1 + Yt .
If Xt =
Pk
i=0
i ti + Yt , then
k Xt = k!k + k Yt ,
42
X
1
X2
..
.
XT
| {z
x
X t = 0 + 1 t + W t
0
+ Wt ,
= 1 t
1
1 1
1 2
0 +
=
.. ..
1
. .
| {z }
1 T
} |
{z
}
|
Z
43
W1
W2
..
.
WT
{z
w
x = Z + w.
Least squares: choose to minimize kwk2 = kx Zk2 .
= 0.
kwk2 = 2Z 0 (x Z )
If Z 0 Z is nonsingular, the solution is unique:
= (Z 0 Z)1 Z 0 x.
44
45
Outline
1. Objectives of time series analysis. Examples.
2. Overview of the course.
3. Time series models.
4. Time series modelling: Chasing stationarity.
46