DATA 624: Home Work 03

Exercise 6.2

The plastics data set consists of the monthly sales (in thousands) of product A for a plastics manufacturer for five years.

  • Plot the time series of sales of product A. Can you identify seasonal fluctuations and/or a trend-cycle?

The plastics data has has an increasing trend and a seasonal component. It is clear from the plot that sales are higher in the summer and lower in the winter.

  • Use a classical multiplicative decomposition to calculate the trend-cycle and seasonal indices.

  • Do the results support the graphical interpretation from part a?

Yes, Classical decomposition result is algned with graphical interpretation from part a. We can see the trend is increasing and there’s a seasonal component.

  • Compute and plot the seasonally adjusted data.

  • Change one observation to be an outlier (e.g., add 500 to one observation), and recompute the seasonally adjusted data. What is the effect of the outlier?
## Warning: Removed 12 rows containing missing values (geom_path).

The outlier causes the series to be slighly higher than the seasonally adjusted series without an outlier. But, it is likely that the seasonal component hasn’t changed much because of the outlier. This conclusion is confimed by the decomposition plot below as well.

  • Does it make any difference if the outlier is near the end rather than in the middle of the time series?

The outlier has less of an impact if it’s in the middle of the series as opposed to near the end. It’s interesting that when the outlier is near the end the seasonal adjustment doesn’t adjust out the troughs of the orignal series. When it’s in the middle it seems to just introduce some noise.

Exercise 6.3

Recall your retail time series data (from Exercise 3 in Section 2.10). Decompose the series using X11. Does it reveal any outliers, or unusual features that you had not noticed previously?

There are some spikes in the remainder early on (circa 1983) and around 2000 which indicates the presense of some outliers.

Forhad Akbar

9/19/2020