Applied Quantitative Research Methods Time Series: 4th March 2020
Applied Quantitative Research Methods Time Series: 4th March 2020
Time series
University of Bristol
1
Time Series
Dr Marion Prat
2
Timetable
5 Lectures: Wed 26th Feb/ Thur 27th Feb/ Mon 2nd March/ Wed
4th March/ Thur 5th March
3
Time series
Times series in regression analysis:
Forecasting:
where
5
8. Modeling seasonality
Example:
Monthly data on new housing starts in the US (thousands of units)
6
8. Modeling seasonality
Example: Monthly housing starts in the US (in thousands of units)
P12
HSt = B1 Timet + i=1 Ci Dit + ut
Dataset
Coef se p-value
Time -.0520 .006 0.000
D1 104.951 4.565 0.000
D2 107.865 4.583 0.000
D3 137.177 4.585 0.000
D4 153.366 4.588 0.000
Time trend: Over the sample period, there were on average 50 fewer
housing starts each month.
January dummy: on average there were 104 951 new housing starts
in January.
April dummy: on average there were 153 366 new housing starts in
May. On average there were 48 415 more new housing starts in April
compared to January.
9
8. Modeling seasonality
Assumption 1: The error term ut is a non-autocorrelated
(cov (ut , ut−j ) = 0) zero-mean series with constant variance (σ 2 )
Residual plot
Define cycles
12
9. Modeling cycles
Example: Monthly housing starts in the US (in thousands of units)
Residual plot
Residual plot
16
9. Modeling cycles
Characterizing cycles: Autocorrelation Function (ACF)
Example: Monthly housing starts in the US (in thousands of units)
17
9. Modeling cycles
Characterizing cycles: Autocorrelation Function (ACF)
If the ρj = 0, then ρˆj should fall within this interval 95% of the time.
Reject H0 when ρˆj lies outside 2-standard-error bands 18
9. Modeling cycles
Characterizing cycles: Partial Autocorrelation Function (PACF)
If the bj = 0, then ρˆj should fall within this interval 95% of the time.
Reject H0 when bˆj lies outside 2-standard-error bands 21
9. Modeling cycles
Autocorrelation and Partial Autocorrelation Functions (ACF and PACF)
ACF PACF
23
9. Modeling cycles
We need to test whether all the autocorrelation coefficients are jointly zero:
Pm 1
Construct (Ljung-Box) Q-statistic: QLB = T (T + 2) j=1 T −j ρ̂2j
24
9. Modeling cycles
Testing whether a time series is white noise
v
X s
X
Yt = B1 Tt + + γi EVit + Ci Dit + ut
i=1 i=1
ut = B0 + B1 ut−1 + t
26
9. Modeling cycles
Example: First-order Autoregressive process AR(1)
ut = 0.95ut−1 + t
27
9. Modeling cycles
Example: Second-order Autoregressive process AR(2)
ut = 0.5ut−1 + 0.2ut−2 + t
28
9. Modeling cycles
29
9. Modeling cycles
Example: Monthly housing starts in the US (in thousands of units)
Selected model:
12
X
HSt = B1 Timet + Ci Dit + ut
i=1
ut = A1 ut−1 + A1 ut−2 + t
31