Professional Documents
Culture Documents
Forecasting and Conclusions: Operations Research Matteo Brunelli
Forecasting and Conclusions: Operations Research Matteo Brunelli
Operations Research
Matteo Brunelli
Forecasting in 1900
Few questions
Domanda min max
Population of Germany 80 mil 90 mil
Martin Luther’s King’s age at death
Length of the Nile River
Number of member countries in the OPEC
Number of books in the Christian Old Testament
Diameter of the moon
Weight of an empty Boeing 747
Year of birth of Wolfgang Amadeus Mozart
Gestation period of an Asian Elephant
Air distance between London and Tokyo
Deepest known point in the oceans
Answers
Domanda Val min
Martin Luther’s King’s age at death 39
Length of the Nile River 6650 kms
Number of member countries in the OPEC 14
Number of books in the Christian Old 46
Testament
Diameter of the moon 3475 kms
Weight of an empty Boeing 747 179000 kgs
Year of birth of Wolfgang Amadeus Mozart 1756
Gestation period of an Asian Elephant 21 mesi
Air distance between London and Tokyo 9585 kms
Deepest known point in the oceans 10971 m
Overconfidence bias (da Wiki)
“The overconfidence effect is a well-established bias in which a person's
subjective confidence in his or her judgements is reliably greater than the
objective accuracy of those judgements, especially when confidence is relatively
high.”
• Overprecision
“the excessive confidence that one knows the truth”
• Illusion of control
“the tendency for people to behave as if they might have some control when in fact
they have none”
• Better-than-average effects
“93% of American drivers rate themselves as better than the median”
• Comparative optimism
“Some researchers have claimed that people think good things are more likely
to happen to them than to others, whereas bad events were less likely to
happen to them than to others”
Data and models
Problem:
I know 𝑥𝑡−5 , … , 𝑥𝑡 and I want to forecast 𝐹𝑡+1
Solution:
Find a function 𝑓which can express
Tr e n d
Random
fluctuations
Seasonality
Simple methods
Naïve method
𝑡
𝑥𝑡 + ⋯ + 𝑥𝑡−𝑚 1
𝐹𝑡+1 = = 𝑥𝑖
𝑚 𝑚
𝑖=𝑡−𝑚+1
Exponential smoothing
Define 𝛼 ∈]0,1[
𝐹𝑡+1 = 𝛼𝑥𝑡 + 1 − 𝛼 𝐹𝑡
= 𝛼𝑥𝑡 + (1 − 𝛼)(𝛼𝑥𝑡−1 +(1 − 𝛼)𝐹𝑡−1 )
= 𝛼𝑥𝑡 + 1 − 𝛼 𝛼𝑥𝑡−1 + 1 − 𝛼 2 𝐹𝑡−1
= 𝛼𝑥𝑡 + 1 − 𝛼 𝛼𝑥𝑡−1 + 1 − 𝛼 2 (𝛼𝑥𝑡−2 +(1 − 𝛼)𝐹𝑡−2 )
= 𝛼𝑥𝑡 + 1 − 𝛼 𝛼𝑥𝑡−1 + 1 − 𝛼 2 𝛼𝑥𝑡−2 + (1 − 𝛼)3 𝐹𝑡−2
= 𝛼𝑥𝑡 + 1 − 𝛼 𝛼𝑥𝑡−1 + 1 − 𝛼 2 𝛼𝑥𝑡−2 + (1 − 𝛼)3 (𝛼𝑥𝑡−3 +(1 − 𝛼)𝐹𝑡−3 )
=⋯
IF we continue,
𝜶 + 𝟏 − 𝜶 𝜶 + 𝟏 − 𝜶 𝟐 𝜶 + 𝟏 − 𝜶 𝟑 𝜶 + ⋯ = (1 − 𝛼)𝑖 𝛼
𝑖=0
Proof:
∞ ∞
1 𝛼
(1 − 𝛼)𝑖 𝛼 = 𝛼 (1 − 𝛼)𝑖 = 𝛼 = = 1
1 − (1 − 𝛼) 𝛼
𝑖=0 𝑖=0
(54 + 59 + 48) / 3
Alternative:
Risultato: 53,65
Trend
Double exponential smoothing
We consider the expontial smoothing
𝐹𝑡+1 = 𝛼𝑥𝑡 + 1 − 𝛼 𝐹𝑡
I add a quantity to account for the trend
𝐹𝑡+1 = 𝛼𝑥𝑡 + 1 − 𝛼 𝐹𝑡 + 𝑇𝑡+1
In the last period the trend was
𝐿𝑡+1 = 𝛼(𝑥𝑡 − 𝑥𝑡−1 ) + 1 − 𝛼 (𝐹𝑡 −𝐹𝑡−1 )
Now we combine the observed trend with the estimated trend for the last period
with 𝛽 ∈]0,1[
𝑇𝑡+1 = 𝛽𝐿𝑡+1 + 1 − 𝛽 𝑇𝑡
Specialized algorithms:
The Simplex works fine, but there are specialized algorithms:
• Dijkstra’s algorithm (shortest path)
• Hungarian algorithm (assignment problem)
• Ford-Fulkerson (maximum flow)
• ……
Metaheuristics
Decision theory
You’re an engineer in an oil company and your job is to decide whether to drill or
not. All you have is this table
Oil Dry
Drill 700 € - 100 €
Sell 90 € 90 €
Probability 0.25 0.75
A B C D
Salary 2600 € 1850 € 2800 € 2100 €
Working hours 7.5 9 8.5 8
Job
2 3 1 2
atmosphere
Commuting
60 min 45 min 30 min 35 min
time
Flexibility 1 3 1 2
Game theory