Seasonal time series

Seasonal time series have a trend, error, and a seasonality component. Consider the sales figures of winter clothing. They tend to rise during winter and flat ten out during summer and other seasons. This is the seasonality effect. Seasonality is always of a fixed and known period.

We will use another small dataset to show seasonality—the number of births per month in New York City from January 1946 to December 1959:

> births <- scan("http://robjhyndman.com/tsdldata/data/nybirths.dat")
Read 168 items
> births.ts <- ts(births, frequency = 12)
> births.comps <- decompose(births.ts)

Using the decompose function, we split the trend, seasonality, and error from the time series. Let us now plot these components using plot(births.comps):

We see the individual components, trends, seasonality, and errors in the graph.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset