2 Question - 3.2

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

Answer: The time series does not have a uniform seasonality. Box-Cox algorithm assumes that the transformed data is highly likely to be normally distributed when SD -> min(SD), however it does not garantee normality after transformation.

## [1] "Box-Cox Lambda: 0.576775938228139"

3 Question - 3.3

What Box-Cox transformation would you select for your retail data (from Exercise 3 in Section 2.10)?

3.3 Calculate Best Lambda

Answer: The best value for Lambda is 0.123156269082221 using BoxCox.lambda function. For better interpretation, I would prefer rounding the value to 1 decimal which is 0.1.

## [1] "Box-Cox Lambda: 0.123156269082221"

4 Question - 3.8

For your retail time series (from Exercise 3 in Section 2.10):

4.2 b.

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

4.3 c.

Calculate forecasts using snaive applied to myts.train.

4.4 d.

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

##                     ME      RMSE       MAE      MPE     MAPE     MASE      ACF1
## Training set  73.94114  88.31208  75.13514 6.068915 6.134838 1.000000 0.6312891
## Test set     115.00000 127.92727 115.00000 4.459712 4.459712 1.530576 0.2653013
##              Theil's U
## Training set        NA
## Test set     0.7267171

4.5 e.

Check the residuals.

## 
##  Ljung-Box test
## 
## data:  Residuals from Seasonal naive method
## Q* = 671.41, df = 24, p-value < 2.2e-16
## 
## Model df: 0.   Total lags used: 24

Do the residuals appear to be uncorrelated and normally distributed?

Answer: The residuals does not appear to be uncorrelated and normally distributed.

  1. From the autoplot, the variation of residuals gets larger as time expends.

  2. The ACF plot demostrates significant auto correlation.

  3. The histogram shows right screwed distribution.