Look for trends, seasonal components, step changes, outliers... Objectives of time series analysis.[r]
Trang 1Introduction 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
Trang 3Lab/Homework Assignments (25%): posted on the website.
These involve a mix of pen-and-paper and computer exercises You may useany programming language you choose (R, Splus, Matlab, python)
Midterm Exams (30%): scheduled for October 7 and November 9, at thelecture
Project (10%): Analysis of a data set that you choose
Final Exam (35%): scheduled for Friday, December 17
Trang 11Objectives of Time Series Analysis
1 Compact description of data
Trang 12Classical decomposition: An example
Monthly sales for a souvenir shop at a beach resort town in Queensland
(Makridakis, Wheelwright and Hyndman, 1998)
4 6 8 10
12x 10
4
Trang 16Trend and seasonal variation
Trang 17Objectives of Time Series Analysis
1 Compact description of data
Example: Classical decomposition: Xt = Tt + St + Yt
2 Interpretation Example: Seasonal adjustment
4 Control
5 Hypothesis testing
6 Simulation
Trang 18Unemployment data
Monthly number of unemployed people in Australia (Hipel and McLeod, 1994)
5.5 6 6.5 7 7.5
8x 10
5
Trang 1919834 1984 1985 1986 1987 1988 1989 1990 4.5
Trang 20Trend plus seasonal variation
Trang 22Predictions based on a (simulated) variable
Trang 23Objectives of Time Series Analysis
1 Compact description of data:
2 Interpretation Example: Seasonal adjustment
3 Forecasting Example: Predict unemployment
4 Control Example: Impact of monetary policy on unemployment
5 Hypothesis testing Example: Global warming
6 Simulation Example: Estimate probability of catastrophic events
Trang 24Overview of the Course
1 Time series models
2 Time domain methods
3 Spectral analysis
4 State space models(?)
Trang 25Overview of the Course
1 Time series models
Trang 26Overview of the Course
1 Time series models
2 Time domain methods
(a) AR/MA/ARMA models
(b) ACF and partial autocorrelation function.(c) Forecasting
(d) Parameter estimation
(e) ARIMA models/seasonal ARIMA models
Trang 27Overview of the Course
1 Time series models
2 Time domain methods
Trang 28Overview of the Course
1 Time series models
2 Time domain methods
3 Spectral analysis
4 State space models(?)
(a) ARMAX models
(b) Forecasting, Kalman filter
Trang 29Time Series Models
A time series model specifies the joint distribution of the
se-quence {Xt} of random variables
Trang 30Time Series Models
Example: White noise: Xt ∼ W N(0, σ2)
i.e., {Xt} uncorrelated, EXt = 0, VarXt = σ2
Example: i.i.d noise: {Xt} independent and identically distributed
Not interesting for forecasting:
Trang 31Gaussian white noise
Trang 32Gaussian white noise
Trang 33Time Series Models
Example: Binary i.i.d P [Xt = 1] = P [Xt = −1] = 1/2
Trang 34Random walk
i=1 Xi Differences: ∇St = St − St−1 = Xt
0 2 4 6 8
Trang 36Random Walk
Recall S&P500 data (Notice that it’s smooth)
260 280 300 320 340
SP500: Jan−Jun 1987
Trang 37SP500, Jan−Jun 1987 first differences
Trang 38Trend and Seasonal Models
3.5 4 4.5 5 5.5 6
Trang 39Trend and Seasonal Models
2.5 3 3.5 4 4.5 5 5.5 6
Trang 40Trend and Seasonal Models
3.5 4 4.5 5 5.5 6
Trang 41Trend and Seasonal Models: Residuals
Trang 42Time Series Modelling
1 Plot the time series
Look for trends, seasonal components, step changes, outliers
2 Transform data so that residuals are stationary.
(a) Estimate and subtract Tt, St
(b) Differencing
(c) Nonlinear transformations (log, √
·)
Trang 437.5 8 8.5 9 9.5 10 10.5 11 11.5 12
Trang 44Time Series Modelling
1 Plot the time series
Look for trends, seasonal components, step changes, outliers
2 Transform data so that residuals are stationary.
(a) Estimate and subtract Tt, St
(b) Differencing
(c) Nonlinear transformations (log, √
·)
Trang 45Recall: S&P 500 data
1987 1987.05 1987.1 1987.15 1987.2 1987.25 1987.3 1987.35 1987.4 1987.45 1987.5 220
240 260 280 300 320 340
year
SP500, Jan−Jun 1987 first differences
Trang 46Differencing and Trend
Define the lag-1 difference operator, (think ‘first derivative’)
Trang 47Differencing and Seasonal Variation
Define the lag-s difference operator,
Trang 48Time Series Modelling
1 Plot the time series
Look for trends, seasonal components, step changes, outliers
2 Transform data so that residuals are stationary.
(a) Estimate and subtract Tt, St
(b) Differencing
(c) Nonlinear transformations (log, √
·)
Trang 491 Objectives of time series analysis Examples
2 Overview of the course
3 Time series models
4 Time series modelling: Chasing stationarity