-
Notifications
You must be signed in to change notification settings - Fork 167
/
revision.qmd
255 lines (175 loc) · 6.69 KB
/
revision.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
---
title: "ETC3550/ETC5550 Applied forecasting"
author: "Revision"
pdf-engine: pdflatex
fig-width: 7.5
fig-height: 3.5
format:
beamer:
theme: monash
aspectratio: 169
fontsize: 14pt
section-titles: false
knitr:
opts_chunk:
dev: "cairo_pdf"
include-in-header: header.tex
execute:
echo: false
message: false
warning: false
---
```{r setup, include=FALSE}
source("setup.R")
melsyd <- tsibbledata::ansett |>
filter(Airports == "MEL-SYD")
```
# Assignment 1
## Assignment 1
**Stock price forecasting** (Q1 and Q5)
* Hard to beat naive forecast
* Random walk model says forecast variance = $h\sigma^2$.
\pause
**Maximum temperature at Melbourne airport** (Q2)
* Weather is relatively stationary over similar time of year and recent years.
* So take mean and var of max temp in April over last 10 years.
## Assignment 1
**Difference in points in AFL match** (Q3)
* Teams vary in strength from year to year.
* Could look at distribution of for-against points for last few years across all games for each team. Assume distributions independent.
\pause
**Seasonally adjusted estimate of total employment** (Q4)
* Probably locally trended.
* Perhaps use drift method based on average monthly change in last 2 years.
# Some case studies
## CASE STUDY 1: Paperware company
\fontsize{11.5}{13}\sf
\begin{textblock}{9.2}(0.2,1.5)
\textbf{Problem:} Want forecasts of each of hundreds of
items. Series can be stationary, trended or seasonal. They currently
have a large forecasting program written in-house but it doesn't seem
to produce sensible forecasts. They want me to fix it.
\textbf{Additional information}\vspace*{-0.2cm}\fontsize{11.5}{13}\sf
\begin{itemize}\itemsep=0cm\parskip=0cm
\item Program written in COBOL making numerical calculations limited. It is not possible to do any optimisation.
\item Their programmer has little experience in numerical computing.
\item They employ no statisticians and want the program to produce forecasts automatically.
\end{itemize}
\end{textblock}
\placefig{10.2}{1.4}{width=5.8cm}{tableware2}
## CASE STUDY 1: Paperware company
### Methods currently used
\vspace*{0.2cm}
A
: 12 month average
C
: 6 month average
E
: straight line regression over last 12 months
G
: straight line regression over last 6 months
H
: average slope between last year's and this year's values.
(Equivalent to differencing at lag 12 and taking mean.)
I
: Same as H except over 6 months.
K
: I couldn't understand the explanation.
## CASE STUDY 2: PBS
\fullwidth{pills}
## CASE STUDY 2: PBS
### The Pharmaceutical Benefits Scheme (PBS) is the Australian government drugs subsidy scheme.
* Many drugs bought from pharmacies are subsidised to allow more equitable access to modern drugs.
* The cost to government is determined by the number and types of drugs purchased. Currently nearly 1\% of GDP.
* The total cost is budgeted based on forecasts of drug usage.
## CASE STUDY 2: PBS
\fullheight{pbs2}
## CASE STUDY 2: PBS
* In 2001: \$4.5 billion budget, under-forecasted by \$800 million.
* Thousands of products. Seasonal demand.
* Subject to covert marketing, volatile products, uncontrollable expenditure.
* Although monthly data available for 10 years, data are aggregated to annual values, and only the first three years are used in estimating the forecasts.
* All forecasts being done with the \texttt{FORECAST} function in MS-Excel!
## CASE STUDY 3: Car fleet company
**Client:** One of Australia's largest car fleet companies
**Problem:** how to forecast resale value of vehicles? How
should this affect leasing and sales policies?
\pause
### Additional information
- They can provide a large amount of data on previous vehicles and their eventual resale values.
- The resale values are currently estimated by a group of specialists. They see me as a threat and do not cooperate.
## CASE STUDY 4: Airline
\fullheight{ansettlogo}
## CASE STUDY 4: Airline
```{r, echo=FALSE}
melsyd |>
filter(Class == "Economy") |>
autoplot(Passengers) +
labs(
title = "Economy class passengers",
subtitle = "Melbourne-Sydney",
x = "Year",
y = "Thousands"
)
```
## CASE STUDY 4: Airline
**Problem:** how to forecast passenger traffic on major routes?
### Additional information
* They can provide a large amount of data on previous routes.
* Traffic is affected by school holidays, special events such as
the Grand Prix, advertising campaigns, competition behaviour, etc.
* They have a highly capable team of people who are able to do
most of the computing.
# Exam
## Exam: 5.00pm (AEST) 13 June
\fontsize{13}{14}\sf
Five Sections, all to be attempted.\vspace*{-0.1cm}
A
: Short answers/explanations. Write about 1/4 page on four topics (out of six possible topics). Nuanced answers required. \pause
B
: Describing a time series, decomposition, choosing a forecasting method. \pause
C, D, E
: Benchmarks, ETS models, ARIMA models, Dynamic regression models, forecast evaluation.\pause
* Interpretation of R output, but no coding.
* Closed book
* Allowed: a calculator, 1 A4 double-sided sheet of notes, 5 working sheets
## Preparing for the exam
- Exams from 2018--2022 on Moodle already.
- Solutions available from 5 June
- Exercises. Make sure you have done them all (especially the last two topics -- revise the lecture examples)!
- Identify your weak points and practice them.
- Write your own summary of the material.
- Practice explaining the material to a class-mate.
## Help available
* See us during the consultation times (for details refer to the moodle page).
* Discuss on the moodle forum.
## Useful resources for forecasters
\fontsize{14}{14}\sf
\alert{Organization:}
* International Institute of Forecasters.
\alert{Annual Conference:}
* International Symposium on Forecasting\vspace*{-0.2cm}
* Charlottesville, Virginia, June 25--28, 2023
\alert{Journals:}
* International Journal of Forecasting
* Foresight (the practitioner's journal)
###
Links to all of the above at **forecasters.org**
## IIF Best Student Award
\fontsize{14}{16}\sf
- https://forecasters.org/programs/research-awards/students/
- US$100
- A certificate of achievement from the IIF
- One year free membership of the Institute with all attendant benefits. Subscriptions to:
- the International Journal of Forecasting
- the practitioner journal: Foresight
- The Oracle newsletter
Discounts on conference and workshop fees, and links to a worldwide community of forecasters in many disciplines.
## Happy forecasting
\begin{block}{}
Good forecasters are not smarter than everyone else, they merely have their ignorance better organised.
\end{block}
\vspace*{2cm}\pause
\begin{alertblock}{}\centering
Please fill in your SETU
\end{alertblock}