DATA 624 Homework 2

Question 3.2

Why is a Box-Cox transformation unhelpful for the cangas data?

The Box-Cox transformation does not help with this timeseries because the variation is initially small, then gets large, then gets small again. Box-Cox was not designed to handle this case. It was designed for cases where the variance increases or decreases over time.

Question 3.3

What Box-Cox transformation would you select for your retail data?

The variation was increasing over time in the original data. It has become significantly more uniform once it is transformed with a lambda of 0.13. Because the variance was increasing over time this was an effective transformation.

Question 3.8

For your retail time series:

Split the data into two parts using

Check that your data have been split appropriately by producing the following plot.

Calculate forecasts using snaive applied to myts.train.

Compare the accuracy of your forecasts against the actual values stored in myts.test.

                    ME     RMSE      MAE       MPE      MAPE     MASE      ACF1
Training set  7.772973 20.24576 15.95676  4.702754  8.109777 1.000000 0.7385090
Test set     55.300000 71.44309 55.78333 14.900996 15.082019 3.495907 0.5315239
             Theil's U
Training set        NA
Test set      1.297866

Check the residuals.


    Ljung-Box test

data:  Residuals from Seasonal naive method
Q* = 624.45, df = 24, p-value < 2.2e-16

Model df: 0.   Total lags used: 24

Do the residuals appear to be uncorrelated and normally distributed?

They do appear to be normally distributed however with a sligh positve skew. The residuals do no appear to be uncorrelated. The Ljung-Box test has a p value that is less than 0.05. This suggests there is more information that can be discovered and that the seasonal naive model is not the best model.

How sensitive are the accuracy measures to the training/test split?

The accuracy measures are quite sensitive to the training/test split. The values are significantly different between the two. This would suggest that the model does not generalize well.

2020-02-14