Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Exercise (a)
(i) Series is not stationary as can be seen from the trend in plot. Autocorrelation in correlogram
does not tail off, indicating non-stationarity.
(ii) Null hypothesis is “Copper price has a unit root”.
As the p-value is not significant, null hypothesis cannot be rejected. This shows that series is
not stationary.
(iii)
a. As per the test result above, p-value is 0.0683, indicating the series is still not stationary
at 95% confidence level.
(iii) b. We started with fitting 4 lags for ADF test. Test result shows lag 2 to lag 4 are not
significant.
Correlogram of RESID does not show obvious autocorrelation.
By looking at the p-value and t-stat of the ADF test with trend, intercept and lag, we are still
unable to reject null hypothesis.
(iv) Plot of first differences appears stationary across time. Correlogram shows spike for first lag
only. ADF test has a p-value of 0.0000. We can reject the null hypothesis that first difference
series is stationary.
Exercise (b)
(i) Establishing Stationary
Correlogram of GOLD:
Judging by the the graph plot and correlogram, the DLOG(gold) appears to be mean reverting
post 1980. There is instability and nose prior to 1980.
Removing initial unstable outliers
Plotting DLOG(GOLD):
Correlogram of DLOG(GOLD):
The DLOG(GOLD) appears mean reverting in the long run and thus stationary after removing
1960-1980 monthly data.
(iii) Estimation
Baseline model: ARIMA (0, 1) DLOG(gold) c MA(1)
(vi) Testing
ARMA(0, 1)
Residual plot of the baseline model ARIMA(0, 1)
The residuals look random, which indicates that the model manages to capture the
autocorrelation of the gold price data.
From the model statistics, it can be observed that the coefficient of MA(1) is significant. The
data is not very well fitted by the ARIMA(0, 1) model with a R-square around 0.023. The
Durbin-Watson index is between 1.5 and 2.5, which indicates low autocorrelation of historical
gold price data.
ARMA(1,0)
Model statistics of ARMA(1, 0)
The lower R-square value shows that ARIMA(0, 1) gives a better fit compare to ARIMA(1, 0).
The coefficient of AR(1) is significant. The Durbin-Watson stat indicates low autocorrelation.
ARMA(2,0)
Model Statistics for ARMA(2,0)
ARMA(2,0) has better adjusted R-squared compared to previous model. Coefficients of AR(1)
and AR(2) are both significant. Durbin-Watson statistics indicates there is no autocorrelation.
Residual plot shows no pattern and looks random and stationary, indicating model fits. However
model does not captured majority of the variation and implying more factors can be incorporated
into the model for better fit.
Correlogram plot for ARMA(2,0)
This model is better than ARMA(0,1) but not better than ARMA(2,0). DW test shows there is no
autocorrelation. However, coefficient of MA(2) is not significant. This model appears inferior to
previous model.
Again, residual plot for ARMA(0,2) shows no obvious pattern. Indicating overall model is a good
fit.
This model has lower Adjusted R-squared and insignificant coefficient for AR(1). DW statistics
shows no obvious autocorrelation.
Correlogram also shows no autocorrelation in residual. High values of probabilities also confirm
on this point.
(v) Forecasting
MA(1) - Diagnosis
Correlogram:
Judging by the correlogram, the residuals are insignificant and the probability are all above 0.05.
The MA(1) model is reasonable.
Static Forecast:
Dynamic Forecast:
Plot of GOLDF against GOLD for static Forecast
The forecast looks inaccurate as prediction of gold price looks like replica of gold but with one
period lag.
Forecast of DLOG(GOLD)
Plot of DLOG(GOLD)F against GOLD for static forecast
The forecast looks reasonable. DLOG(GOLD) exhibits the same fluctuation trend with
DLOG(GOLD). The forecast of DLOG(GOLD) has a smaller bias proportion than forecast
DLOG(GOLD) and thus is a better prediction.
Following the static forecast for DLOG(GOLD), I would expect the oil price to go up following the
as the DLOG(GOLD) is positive, that is the rate of change is positive..
The risk is small as the bias proportion is as small as 2%.
The prediction interval for gold using static forecast for GOLD for Month 12 2018:
SE = 29.60928
t0.975(n-k-1) = t0.975 (12-1-1) = t0.975(10) = 2.22814
E(y) +/- 0.975SE(E(Y)) = 1225 +/- 2.22814 * 29.60928 = 1159.02 to 1290.97