Group 10 TS Assignment
Group 10 TS Assignment
d. Since 1988, the monthly sales in March reaches a small peak, because of the surfing festival.
This plot exhibits both trend and seasonality. For this dataset, exhibiting trend and seasonality, Holt Winters
Seasonal Model can be used.
Observation : The pvalue from the kpss.test is 0.01, which tells that the original series is non-stationary.
The value of beta (0.00), indicates that the estimate of the slope b of the trend component is not updated over the
time series, and instead is set equal to its initial value. This makes good intuitive sense, as the level changes quite a
bit over the time series, but the slope b of the trend component remains roughly the same.
In contrast, the value of gamma (0.86) is high, indicating that the estimate of the seasonal component at the
current time point is just based upon very recent observations.
Observation : We see from the plot that the Holt-Winters method is very successful in predicting the seasonal
peaks, which occur roughly in November every year.
We can see that the p-value is 0.88, which means the residuals are normal.
iii. Check the mean and accuracy:
MAPE is 1.46 and 1.60 for training and test data set respectively, which is extremely good. This means the model is
stable with an accuracy of 1.46% and 1.60% for training and test data set respectively
The value of alpha (0.41) is relatively low, indicating that the estimate of the level at the current time point is
based upon both recent observations and some observations in the more distant past.
The value of beta (0.00), indicates that the estimate of the slope b of the trend component is not updated over the
time series, and instead is set equal to its initial value. This makes good intuitive sense, as the level changes quite a
bit over the time series, but the slope b of the trend component remains roughly the same.
In contrast, the value of gamma (0.95) is high, indicating that the estimate of the seasonal component at the
current time point is just based upon very recent observations.
Let’s plot the original time series as a black line, with the forecasted values as a red line on top of that:
Observation : We see from the plot that the Holt-Winters method is very successful in predicting the seasonal
peaks, which occur roughly in November every year.
We can see that the p-value is 0.61, which means the residuals are normal.
Observation : The correlogram shows that the autocorrelations for the in-sample forecast errors do not exceed the
significance bounds for lags 1-20. Furthermore, the p-value for shapiro.test is 0.6, indicating that there is little
evidence of non-zero autocorrelations at lags 1-20.
We can check whether the forecast errors have constant variance over time, and are normally distributed with
mean zero, by making a time plot of the forecast errors:
Observation: From the time plot, it appears that the forecast errors have constant variance over time. From the
histogram of forecast errors, it seems plausible that the forecast errors are normally distributed with mean zero.
Thus, there is little evidence of autocorrelation at lags 1-20 for the forecast errors, and the forecast errors appear
to be normally distributed with mean zero and constant variance over time. This suggests that Holt-Winters
provides an adequate predictive model of the log of sales at the souvenir shop, which probably cannot be
improved upon. Furthermore, the assumptions upon which the prediction intervals were based are probably valid.
8.ARIMA Model
i. Plotting Time Series
From the above graph, it seems that the data is not stationary.
ii. Kpss.test
Let’s do the kpss.test to check the stationarity of the data
Observation : The pvalue from the kpss.test is 0.01, which tells that the original series is non-stationary.
Observation : The pvalue from the kpss.test is 0.1, which tells that the original series is stationary.
v. ACF Plot
We can see that the p-value is 0.26, which means the residuals are normal.
MAPE is 1.25 which is extremely good. This means the model is stable with an accuracy of 1.25%.
9.Conclusion
ARIMA Model:
The above tables show the forecasted values of next 5 years for both Holt Winters & ARIMA Model
Accuracy, confirms that ARIMA model forecasted better than Holt Winters with an MAPE of 1.25
The model confirms that stationary data will have advantage for a more accurate model.
Based on these forecasted value company can build sales strategy for the upcoming years.
10.R Code
R code.R