Topic 8 Time Series and Forecasting
Topic 8 Time Series and Forecasting
• Often you can plot the time series data to observe a trend - a gradual upward or
downward movement of a time series.
• Time series generally have components such as:
◦ random behaviour
◦ trends (upward or downward)
◦ seasonal effects
◦ cyclical effects
A seasonal effect is one that repeats at Cyclical effects describe ups and down over a
fixed intervals of time, typically a year, much longer time frame, such as several
month, week, or day. years.
Seasonality with trend
Use the following diagrams
• Identify which series has
◦ Trend effects
◦ Seasonal effects
◦ Cyclical effects
• Which series are “stationary”?
• Data Source: (a) Google stock price for 200 consecutive days; (b) Daily change in the Google
stock price for 200 consecutive days; (c) Annual number of strikes in the US; (d) Monthly sales of
new one-family houses sold in the US; (e) Annual price of a dozen eggs in the US (constant
dollars); (f) Monthly total of pigs slaughtered in Victoria, Australia; (g) Annual total of lynx trapped
in the McKenzie River district of north-west Canada; (h) Monthly Australian beer production; (i)
Monthly Australian electricity production. (https://otexts.com/fpp2/stationarity.html)
Trends over different periods
Trend
Cyclicality
Trend
Trend
• Where Ft+1 is the forecast for time period t+1, Ft is the forecast for
period t, At is the observed value in period t and alpha is a constant
between 0 and 1 called the smoothing constant.
• To begin set F1 and F2 equal to the actual observation in the period 1.
Example 8.3
• Forecast for week
3 when alpha =
0.7
0.7 : 1 0.7 88 0.7 44 57.2
• The forecast for k periods into the future is a function of the level at
and the trend bt
• The models differ in their computations of at and bt
• Regression-based models could be appropriate for time series with a
linear trend and no significant seasonal component.
Regression-Based Forecasting for Time
Series with a Linear Trend
• Example Coal Production data with
a linear trendline