Lecture 1
Lecture 1
Lecture#1
Introduction to Time Series Analysis.
2
A Time Series
400
350
300
250
200
150
100
50
0
0 1000 2000 3000 4000 5000 6000 7000
3
A Time Series
400
350
300
250
200
150
100
50
0
1960 1965 1970 1975 1980 1985 1990
year
4
A Time Series
SP500: 1960−1990
400
350
300
250
200
$
150
100
50
0
1960 1965 1970 1975 1980 1985 1990
year
5
A Time Series
320
300
280
$
260
240
220
1987 1987.05 1987.1 1987.15 1987.2 1987.25 1987.3 1987.35 1987.4 1987.45 1987.5
year
6
A Time Series
25
20
15
10
0
240 250 260 270 280 290 300 310
$
7
A Time Series
320
300
280
$
260
240
220
0 20 40 60 80 100 120
8
Objectives of Time Series Analysis
2. Interpretation.
3. Forecasting.
4. Control.
5. Hypothesis testing.
6. Simulation.
9
Classical decomposition: An example
x 104
12
10
0
0 10 20 30 40 50 60 70 80 90
10
Transformed data
12
11.5
11
10.5
10
9.5
8.5
7.5
7
0 10 20 30 40 50 60 70 80 90
11
Trend
12
11.5
11
10.5
10
9.5
8.5
7.5
7
0 10 20 30 40 50 60 70 80 90
12
Residuals
1.5
0.5
−0.5
−1
0 10 20 30 40 50 60 70 80 90
13
Trend and seasonal variation
12
11.5
11
10.5
10
9.5
8.5
7.5
7
0 10 20 30 40 50 60 70 80 90
14
Objectives of Time Series Analysis
4. Control.
5. Hypothesis testing.
6. Simulation.
15
Unemployment data
7.5
6.5
5.5
4.5
4
1983 1984 1985 1986 1987 1988 1989 1990
16
Trend
x 105
8
7.5
6.5
5.5
4.5
4
1983 1984 1985 1986 1987 1988 1989 1990
17
Trend plus seasonal variation
x 105
8
7.5
6.5
5.5
4.5
4
1983 1984 1985 1986 1987 1988 1989 1990
18
Residuals
x 104
8
−2
−4
−6
1983 1984 1985 1986 1987 1988 1989 1990
19
Predictions based on a (simulated) variable
x 105
8
7.5
6.5
5.5
4.5
4
1983 1984 1985 1986 1987 1988 1989 1990
20
Objectives of Time Series Analysis
21
Overview of the Course
3. Spectral analysis
22
Overview of the Course
3. Spectral analysis
23
Overview of the Course
3. Spectral analysis
24
Overview of the Course
3. Spectral analysis
(a) Spectral density
(b) Periodogram
(c) Spectral estimation
25
Overview of the Course
3. Spectral analysis
26
Time Series Models
Notation:
X1, X2, . . . is a stochastic process.
x1, x2, . . . is a single realization.
We’ll mostly restrict our attention to second-order properties only:
EXt, E(Xt1 , Xt2 ).
27
Time Series Models
2
Example: White noise: Xt ∼ WN (0, σ ).
2
i.e., {Xt} uncorrelated, EXt = 0, VarXt = σ .
Example: i.i.d. noise: {Xt} independent and identically distributed.
28
Gaussian white noise
2.5
1.5
0.5
−0.5
−1
−1.5
−2
0 5 10 15 20 25 30 35 40 45 50
−2.5
29
Gaussian white noise
2.5
1.5
0.5
−0.5
−1
−1.5
−2
0 5 10 15 20 25 30 35 40 45 50
−2.5
30
Moving Averages Filter
Autoregression
0.8
0.6
0.4
0.2
−0.2
−0.4
−0.6
−0.8
−1
0 5 10 15 20 25 30 35 40 45 50
34
Random walk
35
Random walk
Differences: ∇S t = S t− S =t−1
X. t
8
−2
−4
0 5 10 15 20 25 30 35 40 45 50
36
Random Walk
320
300
280
$
260
240
220
1987 1987.05 1987.1 1987.15 1987.2 1987.25 1987.3 1987.35 1987.4 1987.45 1987.5
year
37
Random Walk
2
$
−2
−4
−6
−8
−10
1987 1987.05 1987.1 1987.15 1987.2 1987.25 1987.3 1987.35 1987.4 1987.45 1987.5
year
38
Trend and Seasonal Models
5.5
4.5
3.5
2.5
0 50 100 150 200 250
39
Trend and Seasonal Models
5.5
4.5
3.5
2.5
0 50 100 150 200 250
40
Trend and Seasonal Models
5.5
4.5
3.5
2.5
0 50 100 150 200 250
41
Trend and Seasonal Models: Residuals
0.5
0.4
0.3
0.2
0.1
−0.1
−0.2
−0.3
−0.4
42
Time Series Modelling
43
Nonlinear transformations
11.5
10 11
10.5
8
10
9.5
6
4
8.5
8
2
7.5
0 7
0 10 20 30 40 50 60 70 80 90 10 20 30 40 50 60 70 80 90
44
Time Series Modelling
45
Differencing
320
6
4
300
280 0
$
$
−2
260
−4
−6
240
−8
220 −10
1987 1987.05 1987.1 1987.15 1987.2 1987.25 1987.3 1987.35 1987.4 1987.45 1987.5 1987 1987.05 1987.1 1987.15 1987.2 1987.25 1987.3 1987.35 1987.4 1987.45 1987.5
year year
46
Task#1