Email             :
Instagram     : https://www.instagram.com/putriangelinaw
RPubs            : https://rpubs.com/putriangelinaw/



3 Exercise 3

3. Why is a Box-Cox transformation unhelpful for the canadian_gas data?

The plot of monthly Canadian gas production displays a seasonality of one year and a seasonal variance that is relatively low from 1960 through 1978, larger from 1978 through 1988 and smaller from 1988 through 2005. Because the seasonal variation increases and then decreases, the Box Cox transformation cannot be used to make the seasonal variation uniform.

5 Exercise 5

5. For the following series, find an appropriate Box-Cox transformation in order to stabilise the variance. Tobacco from aus_production, Economy class passengers between Melbourne and Sydney from ansett, and Pedestrian counts at Southern Cross Station from pedestrian.

6 Exercise 6

6. Show that a \(3\times5\) MA is equivalent to a 7-term weighted moving average with weights of 0.067, 0.133, 0.200, 0.200, 0.200, 0.133, and 0.067.

\[ \begin{align} 3\times5MA &= \frac{1}{15}Y_1+ \frac{2}{15}Y_2+\frac{3}{15}Y_3+\frac{3}{15}Y_4+\frac{3}{15}Y_5+\frac{2}{15}Y_6+\frac{1}{15}Y_7\\ Weight &= c(0.067, 0.133, 0.200, 0.200, 0.200, 0.133, 0.067) \end{align} \]

7 Exercise 7

7. Consider the last five years of the Gas data from aus_production.

7.1 A

a. Plot the time series. Can you identify seasonal fluctuations and/or a trend-cycle?

There is a seasonality with a frequency of 1 year and a trend-cycle that shows an increasing trend.

7.2 B

b. Use classical_decomposition with type=multiplicative to calculate the trend-cycle and seasonal indices.

The results of the multiplicative decomposition show a quarterly seasonal component with a frequency of 1 year. There is an increasing trend from year 2006 through middle 2007. After year 2007, there is no trend until early 2008. After that, ther is an increasing trend late 2009.

7.3 C

c. Do the results support the graphical interpretation from part a?

The results support the graphical interpretation from part a, which was a seasonality of frequency 1 year and an increasing trend. And because classical multiplicative decomposition relies on moving averages, there is no data at the beginning and end of the trend-cycle.

7.5 E

e. Change one observation to be an outlier (e.g., add 300 to one observation), and recompute the seasonally adjusted data. What is the effect of the outlier?

when 300 was added to the 10th observation, it caused a large spike in the seasonally adjusted data. The quarterly gas data was taken from a seasonal low point to a relative high point. The addition of 300 to the 10th observation has a relatively small affect on the seasonal component. This is because the seasonal component is uniform for each year and only one data point has changed. It also caused a decreasing trend from early 2008 until middle 2008.

8 Exercise 8

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

Compare both decomposition, the X-11 trend-cycle has captured the sudden fall in the 2000-2010.

9 Exercise 9

9. Figures 3.19 and 3.20 show the result of decomposing the number of persons in the civilian labour force in Australia each month from February 1978 to August 1995.

Figure 3.19: Decomposition of the number of persons in the civilian labour force in Australia each month from February 1978 to August 1995.

Figure 3.19: Decomposition of the number of persons in the civilian labour force in Australia each month from February 1978 to August 1995.

Figure 3.20: Seasonal component from the decomposition shown in the previous figure.

Figure 3.20: Seasonal component from the decomposition shown in the previous figure.

9.1 A

a. Write about 3–5 sentences describing the results of the decomposition. Pay particular attention to the scales of the graphs in making your interpretation.

Isolating the trend component from the seasonal component shows that the trend has increased throught the majority of the time frame, with a few stationary periods occuring in the early 90s. The monthly breakdown of the seasonal component shows that a few months show greater velocities in their variations than other months.

9.2 B

b. Is the recession of 1991/1992 visible in the estimated components?

Yes, we see a dip in employment during 1991/1992 that is not explained by seasonality or the positive trend.

10 Exercise 10

10. This exercise uses the canadian_gas data (monthly Canadian gas production in billions of cubic metres, January 1960 – February 2005).

10.1 A

a. Plot the data using autoplot(), gg_subseries() and gg_season() to look at the effect of the changing seasonality over time.1

According to the time plot, the canadian_gas data has a clear increasing trend and strong seasonality. This observation is verified in the subseries plot and the seasonal plot as well. In general, the gas production decreases in summer and increases in winter.The seasonality increases dramatically from 1975 to 1990.This results from the larger differences in gas production between summer and winter in those years, shown as the blue and green lines in the seasonal plot.

10.2 B

b. Do an STL decomposition of the data. You will need to choose a seasonal window to allow for the changing shape of the seasonal component.

The results of the STL decomposition are shown above. The trend component adequately represent the trend in the original data. The seasonal component increases from 1975 to 1985, and then decreases. This observation is consistent with the time plot. Besides, the remainder component is around zero.

10.3 C

c. How does the seasonal shape change over time? [Hint: Try plotting the seasonal component using gg_season().]

As shown above, the seasonal shape is flat from beginning and then as the time goes by the seasonal shape increases. In year 1960 there is no trend-cycle, we can say the gas production didn’t really a trend in that time. After year 1975 there is a trend-cycle, hence the gas production increases at that time and so on.

10.5 E

e. Compare the results with those obtained using SEATS and X-11. How are they different?

The results of SEATS and X11 decomposition are shown above. The decomposed trend and seasonal components are similar. The changes of seasonality are different from the original data. The differences of seasonally adjusted time series are very minimal between these two method.

In addition, the remainder component of the SEATS decomposition is larger than that of the X11 decomposition, where both remainders are around one. The remainder component of the STL decomposition is smaller. Thus, we can conclude that the STL decomposition fits the cangas data better.