Reading 13: Time Series Flashcards
What is a Time series?
A set of obsrvations on a variable’s outcomes in different time periods.
(quarterly sales for example)
What are the challenges in working with time series?
Often with time series the assumptions of a linear regression model are not satisfied.
What is not satisfied?
- the residual errors are correlated instead of uncorrelated
- the mean and/or variance of the time series changes over time.
What type of Time Series are there?
- Trend Models
- Linear Trend Models
- Log-Linear Trend Models
- Lagged Models
* Autoregressive Model (AR)
What is a linear Trend Model
A linear trend model is using time to explain/forecast the dependent variable
What are Log-Linear Trend models?
A log Linear Trend Model is a model that has a dependent variable that grows at a constant rate and hence the formula needs to be adjusted for that by taking the Natural Log of the Dependent variable.
How do we test for correlation errors in a Trend Model?
We use the Durbin Watson test on the Residuals. This test is the Test with the Dl and Du by looing up the values in the table
DW = 2(1-R)
What are Autoregressive (AR) time-series Models?
An Autoregressive Model (AR) is a time series regressed on its own past values, and represent this relationhsip effectively
What is covariance stationary and why is it nessecary?
Covariance stationary basically means that only in a state in which a time series has:
- constatnt and finite expected values
- constant and finite variance
- constant and finite covariance (with leading or lagged values)
will the resulting regression be meaningful.
Why is serial correlation in an AR model a problem?
If serial correlation exists, this means that the model does not include all the information out of the data yet.
Solution: Add more lags in the model
How do we test for Serial Correlation in an AR model?
We CANNOT use the Durbin-Watson test in an AR model
We need to use the T-Tset, where:
- Standard error = 1/ SqRoot(T)
- Use a t-stat with df = t-1 for samples
- With level of significance (Alpha)
We look at the autocorrelation within the residuals!
What do you do if there are significant readings in the t-statistics in the autocorrelation of the residuals?
You add antoher order!
Rerun the statistics and check for serial correlation
What is Mean Reversion?
Mean reversion in a time series means that if it tends to fall when its above its mean and rise when it its level is below its mean.
Formula mean Reversion: xt= b0 / 1-b1
How do we test for the accurracy of the AR model?
This is measured by the Root Mean Squared Error (RMSE)
= Square Root of the average squared error
= SqRoot (MSE)
What is a random Walk in a time series?
This means that there is no tendency to revert back to its mean level in the next period.
If this follows a random pattern, we call it a random walk.
= Value of X = value of Xt-1 + error
The error is unpredictable and random.
What type of Random walks are there?
- No Drift Random Walk
Xt = 0 + (1)Xt-1 + error
when No drift b1 = 1
- Random walk with a drift
Xt = b0 + Xt-1 + error
What is First Differencing?
creating of a new dependent variable in order to overcome problems with random walks in a time series (AR)
What is an ARCH model?
An ARCH model is a model that is an Autoregressive Conditional Heteroskedasticity.
Means non-stationarity in multiple time series.
- Variance is not constant
- Variance in one time period is correlated with the variance of the residulas in another
- The standar errors of the coefficients in AR models are unreliable
-> Hyphotesis testing might be wrong!
How to test for ARCH?
How to Solve it?
Squared residulas are regressed on the first lag of the squared residuals:
error2t = a0+ a1 error2t-1 + µt
If a1 = significant -> ARCH positive
If so: Solve by GLS (Generalized Least Squares)
In an ARCH model, can you predict volatitlity and if so how?
Yes if an ARCH model is significant and there is Heteroskedasticity, you can use the formula below to forcast volatility of the coming period
σ2t+1= a0 + a1 error2t
What is Cointegration?
Cointegration is when Two time series are related to the same macro variables or follow the same trend.
If the model is cointegrated -> model can be used
If the model is not cointegrated -> NOT GOOD -> throw out model!