Time-series
Linear Trend Model
Work with constant change amount:
Log-Linear Model
Applying log transform to work with constant growth rate time series:
The trend models are generally not appropriate for time series when data are serial correlated. We can use Durhin-Watson test to detect serial correlation.
Autoregressive Model (AR)
Autoregressive model use past values of dependent variables as independent variables.
- Additional assumption: Covariance Stationary:
- Constant and finite expected value in all periods
- Constant and finite variance in all periods
- Constant and finite covariance with itself for a fixed number of periods among all periods.
Detecting Serial Autocorrelation
- Fit the
model - Compute autocorrelations
- View ACF plot and decide.
- t test:
, No autocorrelation.
Moving Average Model (MA)
Moving Average model use lagged residuals to model:
For an
Comining will give ARIMA model.
Violations of Assumptions
Seasonality
Seasonality refers to time series show regular patterns of movement within the year. It is to include a seasonal lag in AR model.
Unit Root
Mean Reversion
A time series shows mean reversion. if it tends to move to its mean.
For an
NOTE
When
Random walt will not exhibit covariance stationary. In this case, least square method cannot be trusted to model
Therefore, Dicky-Fuller test will bne used to test unit root. We test
First Differencing
Applying first order differencing on random walk will result in
Heteroskedasticity
Recall: Conditional heteroskedasticity defines case where the heteroskedasticity of the error variance is correlated with the values of the independent variables.
When Conditional heteroskedasticity exists in AR model, we call it ARCH.
ARCH Model
In addition to
NOTE
We should use Generalized Least Square to fit the model if conditional heteroskedasticity exists.
Regression With More Than One Time Series
- Test unit root for both
- If both have unit root. If they have cointegration (long-term financial or economic relationship so that they do not diverge from each other in the long run), we can use linear regression
- To test cointegration, we apply Engle and Granger test to test unit root on the residual term.We want to make sure error term has no unit root.