Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Semester 2, 2017
Discipline of Business Analytics, The University of Sydney Business School
Module 11: Forecasting
1. Problem definition
4. Model diagnostics
5. Model validation
2/49
Time series
Examples:
3/49
Example: visitor Arrivals in Australia
4/49
Example: AUD/USD exchange rate
5/49
Example: assaults in Sydney
6/49
Forecasting
7/49
Examples
• Governments need to forecast unemployment, interest rates,
expected revenues from income taxes to formulate policies.
• Prediction markets.
9/49
Problem definition
Forecasting
10/49
Decision theory
11/49
Point forecasting (key concept)
Using the arguments from earlier earlier in the unit, the optimal
point forecast under the squared error loss is the conditional
expectation:
12/49
Interval forecasting (key concept)
13/49
Fan chart (key concept)
14/49
Example: fan chart
15/49
Time series patterns
Time series patterns (key concept)
Cyclic. A cyclic pattern exists when there are medium or long run
fluctuations in the time series that are not of a fixed period.
17/49
Example: cyclic series
18/49
Time series models
Additive: Yt = Tt + St + Et
Multiplicative: Yt = Tt × St × Et
19/49
Log transformation
Yt = Tt × St × Et ,
20/49
Choosing an additive or multiplicative specification
21/49
Time series decomposition
22/49
Time series decomposition: visitor arrivals
23/49
Example: seasonal adjustment and trend extraction
24/49
Simple forecasting methods
Random walk
The random walk method (called the naı̈ve method in the book)
forecasts the series using the value of the last available observation:
ybt+h = yt
25/49
Seasonal random walk
For time series with seasonal patterns, we can extend the random
walk method by forecasting the series with the value of the last
available observation in the same season:
26/49
Drift method
The drift method forecasts the series as the sum of the most
recent value (as in the naı̈ve method) and the average change over
time:
t
X yi − yi−1
ybt+1 = yt +
i=2
t−1
t
X yi − yi−1
ybt+h = yt + h ×
i=2
t−1
27/49
Model diagnostics
Autocorrelation (key concept)
29/49
Model diagnostics (key concept)
30/49
Model validation
Training and validation sets
31/49
Real time forecasts (key concept)
33/49
Measuring forecast accuracy
• Percentage errors.
• Scaled errors.
34/49
Percentage errors
35/49
Scaled errors
36/49
Mean absolute scaled error
37/49
Example: Quarterly Australian Beer Production
It is clear from the graph that the seasonal naive method is best
for the data, although it can still be improved.
39/49
Random walk model
Random walk model (key example)
Yt = Yt−1 + εt ,
40/49
Random walk model
Yt+1 = Yt + εt+1
41/49
Point forecast
h
X
Yt+h = Yt + εt+i
i=1
42/49
Forecast
43/49
Forecast interval
where PT
t=2 (yt− yt−1 )2
b2 =
σ ,
T −1
and zα/2 is the appropriate critical value from the normal
distribution.
44/49
Example: USD/AUD exchange rate
45/49
Forecast interval
• If the errors are not Gaussian, you should use other methods
such as the Bootstrap algorithm in the next slide.
46/49
Bootstrap forecast interval for the random walk model
4: for s = 1 : S do
5: Sample h residuals with replacement to obtain e∗s,1 , . . . , e∗s,h .
∗ = yt + hi=1 e∗s,i .
P
6: Compute the bootstrapped value ys,t+h
7: end for
47/49
Forecast interval
• The residuals may be too small for complex models that are
subject to large optimism. The prediction interval will be too
narrow in this case.
48/49
Review questions
49/49