Oliver A. answered 06/05/24
Experienced data science tutor with 5+ years of experience
Hello Lily, here is a suggested solution:
Part a: Suitability of AR(1) Model
In Homework 7, you fit an AR(1) model to the daily minimum temperature data. To assess whether an AR(1) model was truly suitable for this data, you should have looked at the residuals of the model and the autocorrelation function (ACF) of the residuals. A suitable model would have residuals that appear to be white noise (i.e., no significant autocorrelation at lags other than lag 0).
If the residuals exhibited significant autocorrelation at higher lags or did not appear to be white noise, then the AR(1) model was likely not the best fit. Additionally, model selection criteria such as AIC (Akaike Information Criterion) or BIC (Bayesian Information Criterion) should also have been considered.
Part b: Differencing the Time Series
To determine a suitable order and lag of differencing for the time series, you should plot the original time series and its ACF and PACF. If the time series shows a clear trend or seasonal patterns, differencing can help achieve stationarity.
- Order of Differencing (d): Usually, start with d=1. This means taking the difference between consecutive observations.
- Lag of Differencing: Typically, the lag is set to 1 if there's no clear seasonality. If seasonality is suspected, use a lag that corresponds to the period of seasonality (e.g., 12 for monthly data).
Plot the Differenced Time Series:
Stationarity Check: To determine if the differenced time series is stationary, you can visually inspect the plot and perform statistical tests such as the Augmented Dickey-Fuller (ADF) test. A stationary series has a constant mean and variance over time.