| gold | R Documentation |
Daily morning gold prices in US dollars. 1 January 1985 – 31 March 1989.
gold
Time series data
tsdisplay(gold)
| woolyrnq | R Documentation |
Quarterly production of woollen yarn in Australia: tonnes. Mar 1965 – Sep 1994.
woolyrnq
Time series data
Time Series Data Library. https://pkg.yangzhuoranyang.com/tsdl/
tsdisplay(woolyrnq)
| gas | R Documentation |
Australian monthly gas production: 1956–1995.
gas
Time series data
Australian Bureau of Statistics.
plot(gas) seasonplot(gas) tsdisplay(gas)
autoplot(woolyrnq) + ggtitle("Qrtly woollen yarn production in AU: tonnes. 3/65 -- 9/94") +
theme_fivethirtyeight()autoplot(mytimeseries, facets=TRUE) + ggtitle("Tute1 Time Series: Sales, Ad Budget and GDP 1981-2005") +
theme_fivethirtyeight()When facets is set to FALSE there is one plot with three series as compared to one plot with three different facets which I believe is similar to three individual plots stacked on one another.
autoplot(mytimeseries, facets=FALSE) + ggtitle("Tute1 Time Series: Sales, Ad Budget and GDP 1981-2005") +
theme_fivethirtyeight()ggseasonplot(myts) + ggtitle("Season Plot: Supermarket & Grocery Store Sales") +
theme_fivethirtyeight()ggsubseriesplot(myts) + ggtitle("Sub Series Plot: Supermarket & Grocery Store Sales") +
theme_fivethirtyeight()ggAcf(myts, lag = 48) + ggtitle("Acf Plot: Supermarket & Grocery Store Sales") +
theme_fivethirtyeight()The Supermarket & Grocery store series show a strong positive trend. There also appear to be a seasonal pattern that increases as the trend increases. The seasonal trend is is reflected by the repeating spikes in the data. The seasonal plot provide greater insight to the seasonality. It appear sales increase (have high points) in March and December. This view is supported by the subseries plot.
The lag chart indicates all the lags have a positive correlation, but the strongest correlation exists in lag 12 where months almost merge into one line.
The Acf chart seems to support the strong trend (slowly moving downward), and seasonality (with shallow scallops in the plot).
| hsales | R Documentation |
Monthly sales of new one-family houses sold in the USA since 1973.
hsales
Time series data
Makridakis, Wheelwright and Hyndman (1998) Forecasting: methods and applications, John Wiley & Sons: New York. Chapter 3.
US Census Bureau, Manufacturing and Construction Division
plot(hsales) plot(stl(hsales,"periodic"),main="Sales of new one-family houses, USA")
Can We Spot any seasonality, cyclicity and trends. What do you learn about the series
The hsales sereis seems to demonstrate seasonality (Better house sales in the Spring) and cyclicity (several business cycles reflected in the serioes). Over the time period a clear trend is difficult to detect given the seasonality and cyclicity.
This series tells me that hsales is likely a good barometer of the overall economy and related business cycle and that sales are seasonal, with the spring being the best time for housing sales. December appears to be the worse time for housing sales. The lag chart also showed farily strong positive correlation at lag-1, but the correlation decrease as the lag increased.
ggseasonplot(hsales, polar = TRUE) + ggtitle("Seasonal Polar Plot: Single-family Home Sales") +
theme_fivethirtyeight()ggsubseriesplot(hsales) + ggtitle("Subseries Plot: Single-family Home Sales") +
theme_fivethirtyeight()| usdeaths | R Documentation |
Monthly accidental deaths in USA.
usdeaths
Time series data
Makridakis, Wheelwright and Hyndman (1998) Forecasting: methods and applications, John Wiley & Sons: New York. Exercises 2.3 and 2.4.
plot(usdeaths) seasonplot(usdeaths) tsdisplay(usdeaths)
Can We Spot any seasonality, cyclicity and trends. What do you learn about the series
Accidental deaths are seasonal. The tend to rise from Feb throught the spring and then peak in July, they then fall to approximately 8000 in September and spike a bit in October and then again in December. This is fairly consistent. The lag charts show the strong correlation at lag 12 which is consistent with the seasonality described above.
Also, other than the early 70s, when accidental deaths seem to hit a high point, the number of accidental death seem fairly consistent (slight increase in late 70s).
ggseasonplot(usdeaths, polar = TRUE) + ggtitle("Seasonal Polar Plot: US Accidental Deaths") +
theme_fivethirtyeight()ggsubseriesplot(usdeaths) + ggtitle("Subseries Plot: US Accidental Deaths") +
theme_fivethirtyeight()| bricksq | R Documentation |
Australian quarterly clay brick production: 1956–1994.
bricksq
Time series data
Makridakis, Wheelwright and Hyndman (1998) Forecasting: methods and applications, John Wiley & Sons: New York. Chapter 1 and Exercise 2.3.
plot(bricksq) seasonplot(bricksq) tsdisplay(bricksq)
Can We Spot any seasonality, cyclicity and trends. What do you learn about the series
The quarerly brick series deconstrates seasonality, ccyclicty and trending. From seasonal perspective the Q1 is the lowest quarter, q2 is higher than q1, q3 appears to be the peak quarter and the q4 falls to a level slightly below q2. There's also evidence of cyclicity in the early to mid 60s, mid 70s, early 80s and early 90s. The trend of the data is strongly positive from the 60s to the 80s, but then seems to plateau in the 80s and decline in the 90s.
The sharp downward spikes in series in the mid 70s and early to mid 80s are noteworthy. These declines line up with declines in the Australian GDP in 1971 (-3.71%) and 1983 (-5.55%). There was also a fairly large decline in GDP in 1991 of almost 4% that shows up in the data.
ggseasonplot(bricksq, frequency=4) + ggtitle("Seasonal Plot: Clay Brick Production") +
theme_fivethirtyeight()ggseasonplot(bricksq, polar = TRUE, frequency=4) + ggtitle("Seasonal Polar Plot: Clay Brick Production") +
theme_fivethirtyeight()ggsubseriesplot(bricksq, frequency=4) + ggtitle("Subseries Plot: Clay Brick Production") +
theme_fivethirtyeight()| sunspotarea | R Documentation |
Annual averages of the daily sunspot areas (in units of millionths of a hemisphere) for the full sun. Sunspots are magnetic regions that appear as dark spots on the surface of the sun. The Royal Greenwich Observatory compiled daily sunspot observations from May 1874 to 1976. Later data are from the US Air Force and the US National Oceanic and Atmospheric Administration. The data have been calibrated to be consistent across the whole history of observations.
Annual time series of class ts.
NASA
autoplot(sunspotarea)
Can We Spot any seasonality, cyclicity and trends. What do you learn about the series
The sunspot series is a bit harder (for me) to interpret. The ACF chart demonstrates what looks like seasonality on the order of 10 years. This is contradictory to the seasonal plot which were not able to produce plots and produced message that no seasonality existed. This may reflect the fact that the seasonal plots assume seasonality with in a year, but for sunspots the seasonality is within a decade.
We also see peak sunspot activity in the mid 1950s after a slowing increasing trend up from the 1900s. Post the mid 1950s sunspot activity has trended back down to levels more consistent with the 1900s.
| gasoline | R Documentation |
Weekly data beginning 2 February 1991, ending 20 January 2017. Units are "million barrels per day".
Time series object of class ts.
US Energy Information Administration.
autoplot(gasoline, xlab="Year")
Can We Spot any seasonality, cyclicity and trends. What do you learn about the series
The trend of gasoline was strongly positive from the 90s through 2005/2006. At that point is seem to start a short-lived downward trend through 2013 and then resumed an upward trend. The downward trend and recovery appears to matchup with the Great Recession and subsequent recovery.
The lag plots seem to show slightly positive trend in lags 1, 2, 3 and less so for 8 and 9.
ggseasonplot(gasoline, polar = TRUE) + ggtitle("Seasonal Polar Plot: US Motor Gas Supplied") +
theme_fivethirtyeight()