SlideShare a Scribd company logo
Social Forecasting
Week 1
Thomas Chadefaux
Trinity College Dublin
Trinity College Dublin, The University of Dublin
Syllabus
• 2 assignments
• 1 final paper
• Main book: Shmueli, Galit, and Kenneth C. Lichtendahl Jr. Practical Time Series
Forecasting with R: A Hands-on Guide (2nd ed.). Axelrod Schnall Publishers, 2018.
Trinity College Dublin, The University of Dublin
“Forecast”= predict the future value
of a time series
Trinity College Dublin, The University of Dublin
Time Series Everywhere
ForecastingBook.com
Trinity College Dublin, The University of Dublin 5
Tell us what the future
holds, so we may know
that you are gods.
(Isaiah 41:23)
Lycurgus Consulting the Pythia (1835/1845), as imagined
by Eugène Delacroix (source: Wikipedia)
Trinity College Dublin, The University of Dublin
Who generates forecasts?
Governments
NGOs
Corporates
Private sector
Consulting firms Academia
Trinity College Dublin, The University of Dublin
Narratives
Aka, we’re terrible predictors
Trinity College Dublin, The University of Dublin 8
“The horse is here to stay but
the automobile is only a
novelty—a fad”
1903, the president of
Michigan Savings Bank
Stock prices have reached
“what looks like a
permanently high plateau… I
believe the principle of the
investment trusts is sound,
and the public is justified in
participating in them.”
Irving Fisher, October 1929
“I think there is a
world market for
maybe five
computers.”
Thomas Watson, 1943
Trinity College Dublin, The University of Dublin 9
Trinity College Dublin, The University of Dublin 10
Source:https://www.analyticsvidhya.com/
Trinity College Dublin, The University of Dublin
Smarter than a rat?
11
Trinity College Dublin, The University of Dublin
Trinity College Dublin, The University of Dublin
We are poor predictors
We like simple explanations
We don’t correct
We are overconfident
We hate randomness
14
Trinity College Dublin, The University of Dublin
How predictable is it?
Trinity College Dublin, The University of Dublin
Free
will (?)
Trinity College Dublin, The University of Dublin
Chaotic world? Aka the butterfly
effect
17
X -> 4x(1-x)
Y -> x+y
Trinity College Dublin, The University of Dublin 18
Trinity College Dublin, The University of Dublin
Randomness
1
2
3
4
20
Trinity College Dublin, The University of Dublin
Social Sciences are worse
First order chaotic systems Second order chaotic systems
Observers observing observers who
observe observers
Trinity College Dublin, The University of Dublin
Fundamentally unpredictable?
Multiple equilibria
Mixed strategies
Trinity College Dublin, The University of Dublin
Irreducible sources of error
- Specification error: cannot include
all variables
- Include as much as you can? No!
- Measurement error: some variables
are particularly difficult to observe
- Natural phenomena: Indian Ocean
tsunami and violence in Aceh
Source: Spagat et al. “Estimating War
Deaths: An Arena of Contestation”
Trinity College Dublin, The University of Dublin
Much is predictable
Rules
Strategies and equilibria
Structural constraints
Strong autocorrelation in: space, time
Trinity College Dublin, The University of Dublin
Non-trivial questions
Boring Unpredictable
Just right
Civil war in
Switzerland
in 2022?
Black
swans
Rare events
Trinity College Dublin, The University of Dublin
So what CAN we forecast?
26
Trinity College Dublin, The University of Dublin 27
Trinity College Dublin, The University of Dublin 28
Trinity College Dublin, The University of Dublin
Which is easiest to forecast?
29
• Daily electricity demand in 3 days time
• Timing of next Halley’s comet appearance
• Time of sunrise this day next year
• Google stock price tomorrow
• Google stock price in 6 months time
• Maximum temperature tomorrow
• Exchange rate of $/€ next week
• Total sales of drugs in Irish pharmacies next month
Trinity College Dublin, The University of Dublin
How predictable?
30
Depends on:
1. how well we understand the factors that contribute to it
2.how much data is available
3.whether the forecasts can affect the thing we are trying to forecast.
4.the future is somewhat similar to the past
5.there is relatively low natural/unexplainable random variation.
Trinity College Dublin, The University of Dublin
Improving forecasts…
31
…but social
science forecasts
are much harder
Trinity College Dublin, The University of Dublin
How do we do it?
Trinity College Dublin, The University of Dublin
Most don’t
Trinity College Dublin, The University of Dublin
Experts
Trinity College Dublin, The University of Dublin
Game theory
Preferences
Capabilities
Saliency
Trinity College Dublin, The University of Dublin
Wisdom of Crowds
Trinity College Dublin, The University of Dublin
Statistics
37
N refugeest = f(casualties, unemployment, day of the week, error)
N refugeest = f(Nrefugeest-1, Nrefugeest-2, Nrefugeest-3, …, error)
N refugeest = f(Nrefugeest-1, casualties, unemployment, …, error)
Trinity College Dublin, The University of Dublin
Statistics
Learning Sample
Test Sample
Y increases by b when x increases by 1 (well, sort of)
Predictions in test sample
Trinity College Dublin, The University of Dublin
Machine learning algorithms
Support vector machines
Trinity College Dublin, The University of Dublin
Risks of Machine Learning approaches
Over-fitting
Too little data
Don’t improve that much, if at all, over
much simpler logits
Trinity College Dublin, The University of Dublin
Forecasts are hard, especially
about the future
Aka: how poorly do we do?
Trinity College Dublin, The University of Dublin 42
3
-5
-4
-3
-2
-1
0
1
2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020
2017
Financial year ended
2013
2016
2015
2014
2012
2011
Actual
Grattan analysis of Commonwealth Budget Papers
Commonwealth plans to drift back to surplus
show the triumph of experience over hope
Actual and forecast Commonwealth underlying cash balance
per cent of GDP
Forecast made in
Trinity College Dublin, The University of Dublin
Important forecasting efforts
Academic:
— Political Instability Task Force 2002-present
— DARPA ICEWS 2007-2015
— Peace Research Center Oslo (PRIO) and Uppsala University UCDP models
— Uppsala ViEWS
— Many others
Governments: typically rely on experts, but some use large-N data:
— Germany
— Netherlands
— EU
— World Bank
— US
— Others, but often classified
Trinity College Dublin, The University of Dublin
Beware of
accuracy
claims
Trinity College Dublin, The University of Dublin
Overpredicting vs
underpredicting
True warnings
False alarms
Trinity College Dublin, The University of Dublin
How well: Experts
Tetlock:
284 experts
20+ years of forecasts
1000s of forecasts
Trinity College Dublin, The University of Dublin
Experts: results
Overpredict rare events
No better than dilettantes
All humans far worse than simple
algorithms
Why so bad?
Trinity College Dublin, The University of Dublin
Machine learning: performance
No Conflict Conflict
No conflict 1432 80
Conflict 58 374
48
Predicted
Observed
Trinity College Dublin, The University of Dublin
How well? Crowds
IARPA competition: GJP the winner
The top forecasters in the Good Judgement Project (Tetlock) are "reportedly
30% better than intelligence officers with access to actual classified
information.”
49
Trinity College Dublin, The University of Dublin
More complex models?
Trinity College Dublin, The University of Dublin
More Data?
Trinity College Dublin, The University of Dublin
Aggregating forecasts: ensemble models
Trinity College Dublin, The University of Dublin
Fundamentals of Forecasting
53
Trinity College Dublin, The University of Dublin
Time series vs. cross-sectional data
ForecastingBook.com
Trinity College Dublin, The University of Dublin
Prediction vs Forecasting
• Prediction: estimate the outcomes of unseen data
– E.g., predict the value of inflation in Burundi today based on the one in Rwanda
today
• Forecasting: predictions about the future
– Predict the value of inflation in Burundi tomorrow based on the one in Rwanda
today
© 2012 Shmueli Some rights Reserved
Trinity College Dublin, The University of Dublin
Basic Notation
t=1,2,3… = time period index
Yt = value of the series at time period t
Ft+k = forecast for time period t+k, given data until
time t
et = forecast error for period t
ForecastingBook.com
Trinity College Dublin, The University of Dublin
Time series components
Systematic part
• Level
• Trend
• Seasonal patterns
Non-systematic part
• “Noise”
Additive:
Yt = Level + Trend + Seasonality + Noise
Multiplicative:
Yt = Level x Trend x Seasonality x Noise
ForecastingBook.com
Trinity College Dublin, The University of Dublin
Time series components

More Related Content

Similar to lecture1_.pdf

Lockdown optimization for Corona Virus
Lockdown optimization for Corona VirusLockdown optimization for Corona Virus
Lockdown optimization for Corona Virus
Shivanand (Shiva) Rai
 
Building the next generation of statistical tools for outbreak response using R
Building the next generation of statistical tools for outbreak response using RBuilding the next generation of statistical tools for outbreak response using R
Building the next generation of statistical tools for outbreak response using R
European Centre for Disease Prevention and Control
 
Role of Data Accessibility During Pandemic
Role of Data Accessibility During PandemicRole of Data Accessibility During Pandemic
Role of Data Accessibility During Pandemic
Databricks
 
From health persona to societal health uci 131202
From health persona to societal health  uci  131202From health persona to societal health  uci  131202
From health persona to societal health uci 131202
Ramesh Jain
 
IntroML_6_Classification_part3
IntroML_6_Classification_part3IntroML_6_Classification_part3
IntroML_6_Classification_part3
Elio Laureano
 
BayesianClassifierAndConditionalProbability.pptx
BayesianClassifierAndConditionalProbability.pptxBayesianClassifierAndConditionalProbability.pptx
BayesianClassifierAndConditionalProbability.pptx
Nishant83346
 
Datascience Introduction WebSci Summer School 2014
Datascience Introduction WebSci Summer School 2014Datascience Introduction WebSci Summer School 2014
Datascience Introduction WebSci Summer School 2014
Claudia Wagner
 
The%20 Minimum%20 Daily%20 Adult%20 %20 Ca Cmg
The%20 Minimum%20 Daily%20 Adult%20 %20 Ca CmgThe%20 Minimum%20 Daily%20 Adult%20 %20 Ca Cmg
The%20 Minimum%20 Daily%20 Adult%20 %20 Ca Cmg
dahirf
 
Internationalising the Curriculum: Teaching and Learning for the Digital World
Internationalising the Curriculum: Teaching and Learning for the Digital WorldInternationalising the Curriculum: Teaching and Learning for the Digital World
Internationalising the Curriculum: Teaching and Learning for the Digital World
Mark Brown
 
What is the reproducibility crisis in science and what can we do about it?
What is the reproducibility crisis in science and what can we do about it?What is the reproducibility crisis in science and what can we do about it?
What is the reproducibility crisis in science and what can we do about it?
Dorothy Bishop
 
Observational studies in social media
Observational studies in social mediaObservational studies in social media
Observational studies in social media
Carlos Castillo (ChaTo)
 
Transforming Science Education in An Age of Misinformation
Transforming Science Education in An Age of MisinformationTransforming Science Education in An Age of Misinformation
Transforming Science Education in An Age of Misinformation
Carl Bergstrom
 
Gender_Equality_in_Education_-_Ioanna_Koutava.pptx
Gender_Equality_in_Education_-_Ioanna_Koutava.pptxGender_Equality_in_Education_-_Ioanna_Koutava.pptx
Gender_Equality_in_Education_-_Ioanna_Koutava.pptx
diom_colar
 
08 case control studies
08 case control studies08 case control studies
08 case control studies
Abdiwali Abdullahi Abdiwali
 
Natural experiments
Natural experimentsNatural experiments
Natural experiments
Carlos Castillo (ChaTo)
 
7th science project presentation
7th science   project presentation7th science   project presentation
7th science project presentation
Mister Valverde
 
Vincent Icke - Communicating Science
Vincent Icke - Communicating ScienceVincent Icke - Communicating Science
Vincent Icke - Communicating Science
SC4CS
 
CIRTL Class Meeting 4: Assessment
CIRTL Class Meeting 4: AssessmentCIRTL Class Meeting 4: Assessment
CIRTL Class Meeting 4: Assessment
Peter Newbury
 
Practical Stream, Week 1
Practical Stream, Week 1Practical Stream, Week 1
Practical Stream, Week 1
Peter Newbury
 
Working with Data Workshop
Working with Data WorkshopWorking with Data Workshop
Working with Data Workshop
Jan Kyri
 

Similar to lecture1_.pdf (20)

Lockdown optimization for Corona Virus
Lockdown optimization for Corona VirusLockdown optimization for Corona Virus
Lockdown optimization for Corona Virus
 
Building the next generation of statistical tools for outbreak response using R
Building the next generation of statistical tools for outbreak response using RBuilding the next generation of statistical tools for outbreak response using R
Building the next generation of statistical tools for outbreak response using R
 
Role of Data Accessibility During Pandemic
Role of Data Accessibility During PandemicRole of Data Accessibility During Pandemic
Role of Data Accessibility During Pandemic
 
From health persona to societal health uci 131202
From health persona to societal health  uci  131202From health persona to societal health  uci  131202
From health persona to societal health uci 131202
 
IntroML_6_Classification_part3
IntroML_6_Classification_part3IntroML_6_Classification_part3
IntroML_6_Classification_part3
 
BayesianClassifierAndConditionalProbability.pptx
BayesianClassifierAndConditionalProbability.pptxBayesianClassifierAndConditionalProbability.pptx
BayesianClassifierAndConditionalProbability.pptx
 
Datascience Introduction WebSci Summer School 2014
Datascience Introduction WebSci Summer School 2014Datascience Introduction WebSci Summer School 2014
Datascience Introduction WebSci Summer School 2014
 
The%20 Minimum%20 Daily%20 Adult%20 %20 Ca Cmg
The%20 Minimum%20 Daily%20 Adult%20 %20 Ca CmgThe%20 Minimum%20 Daily%20 Adult%20 %20 Ca Cmg
The%20 Minimum%20 Daily%20 Adult%20 %20 Ca Cmg
 
Internationalising the Curriculum: Teaching and Learning for the Digital World
Internationalising the Curriculum: Teaching and Learning for the Digital WorldInternationalising the Curriculum: Teaching and Learning for the Digital World
Internationalising the Curriculum: Teaching and Learning for the Digital World
 
What is the reproducibility crisis in science and what can we do about it?
What is the reproducibility crisis in science and what can we do about it?What is the reproducibility crisis in science and what can we do about it?
What is the reproducibility crisis in science and what can we do about it?
 
Observational studies in social media
Observational studies in social mediaObservational studies in social media
Observational studies in social media
 
Transforming Science Education in An Age of Misinformation
Transforming Science Education in An Age of MisinformationTransforming Science Education in An Age of Misinformation
Transforming Science Education in An Age of Misinformation
 
Gender_Equality_in_Education_-_Ioanna_Koutava.pptx
Gender_Equality_in_Education_-_Ioanna_Koutava.pptxGender_Equality_in_Education_-_Ioanna_Koutava.pptx
Gender_Equality_in_Education_-_Ioanna_Koutava.pptx
 
08 case control studies
08 case control studies08 case control studies
08 case control studies
 
Natural experiments
Natural experimentsNatural experiments
Natural experiments
 
7th science project presentation
7th science   project presentation7th science   project presentation
7th science project presentation
 
Vincent Icke - Communicating Science
Vincent Icke - Communicating ScienceVincent Icke - Communicating Science
Vincent Icke - Communicating Science
 
CIRTL Class Meeting 4: Assessment
CIRTL Class Meeting 4: AssessmentCIRTL Class Meeting 4: Assessment
CIRTL Class Meeting 4: Assessment
 
Practical Stream, Week 1
Practical Stream, Week 1Practical Stream, Week 1
Practical Stream, Week 1
 
Working with Data Workshop
Working with Data WorkshopWorking with Data Workshop
Working with Data Workshop
 

Recently uploaded

CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapitolTechU
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
giancarloi8888
 
How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17
Celine George
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
nitinpv4ai
 
skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)
Mohammad Al-Dhahabi
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
zuzanka
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
deepaannamalai16
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
zuzanka
 
How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17
Celine George
 
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
ImMuslim
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
PsychoTech Services
 
CIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdfCIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdf
blueshagoo1
 
How to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in useHow to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in use
Celine George
 
A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptxA Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
OH TEIK BIN
 
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxxSimple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
RandolphRadicy
 
Skimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S EliotSkimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S Eliot
nitinpv4ai
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
سمير بسيوني
 
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
Payaamvohra1
 
Observational Learning
Observational Learning Observational Learning
Observational Learning
sanamushtaq922
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
Steve Thomason
 

Recently uploaded (20)

CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
 
How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
 
skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
 
How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17
 
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
 
CIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdfCIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdf
 
How to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in useHow to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in use
 
A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptxA Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
 
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxxSimple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
 
Skimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S EliotSkimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S Eliot
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
 
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
 
Observational Learning
Observational Learning Observational Learning
Observational Learning
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
 

lecture1_.pdf

  • 1. Social Forecasting Week 1 Thomas Chadefaux Trinity College Dublin
  • 2. Trinity College Dublin, The University of Dublin Syllabus • 2 assignments • 1 final paper • Main book: Shmueli, Galit, and Kenneth C. Lichtendahl Jr. Practical Time Series Forecasting with R: A Hands-on Guide (2nd ed.). Axelrod Schnall Publishers, 2018.
  • 3. Trinity College Dublin, The University of Dublin “Forecast”= predict the future value of a time series
  • 4. Trinity College Dublin, The University of Dublin Time Series Everywhere ForecastingBook.com
  • 5. Trinity College Dublin, The University of Dublin 5 Tell us what the future holds, so we may know that you are gods. (Isaiah 41:23) Lycurgus Consulting the Pythia (1835/1845), as imagined by Eugène Delacroix (source: Wikipedia)
  • 6. Trinity College Dublin, The University of Dublin Who generates forecasts? Governments NGOs Corporates Private sector Consulting firms Academia
  • 7. Trinity College Dublin, The University of Dublin Narratives Aka, we’re terrible predictors
  • 8. Trinity College Dublin, The University of Dublin 8 “The horse is here to stay but the automobile is only a novelty—a fad” 1903, the president of Michigan Savings Bank Stock prices have reached “what looks like a permanently high plateau… I believe the principle of the investment trusts is sound, and the public is justified in participating in them.” Irving Fisher, October 1929 “I think there is a world market for maybe five computers.” Thomas Watson, 1943
  • 9. Trinity College Dublin, The University of Dublin 9
  • 10. Trinity College Dublin, The University of Dublin 10 Source:https://www.analyticsvidhya.com/
  • 11. Trinity College Dublin, The University of Dublin Smarter than a rat? 11
  • 12. Trinity College Dublin, The University of Dublin
  • 13. Trinity College Dublin, The University of Dublin We are poor predictors We like simple explanations We don’t correct We are overconfident We hate randomness
  • 14. 14
  • 15. Trinity College Dublin, The University of Dublin How predictable is it?
  • 16. Trinity College Dublin, The University of Dublin Free will (?)
  • 17. Trinity College Dublin, The University of Dublin Chaotic world? Aka the butterfly effect 17 X -> 4x(1-x) Y -> x+y
  • 18. Trinity College Dublin, The University of Dublin 18
  • 19. Trinity College Dublin, The University of Dublin Randomness 1 2 3 4
  • 20. 20
  • 21. Trinity College Dublin, The University of Dublin Social Sciences are worse First order chaotic systems Second order chaotic systems Observers observing observers who observe observers
  • 22. Trinity College Dublin, The University of Dublin Fundamentally unpredictable? Multiple equilibria Mixed strategies
  • 23. Trinity College Dublin, The University of Dublin Irreducible sources of error - Specification error: cannot include all variables - Include as much as you can? No! - Measurement error: some variables are particularly difficult to observe - Natural phenomena: Indian Ocean tsunami and violence in Aceh Source: Spagat et al. “Estimating War Deaths: An Arena of Contestation”
  • 24. Trinity College Dublin, The University of Dublin Much is predictable Rules Strategies and equilibria Structural constraints Strong autocorrelation in: space, time
  • 25. Trinity College Dublin, The University of Dublin Non-trivial questions Boring Unpredictable Just right Civil war in Switzerland in 2022? Black swans Rare events
  • 26. Trinity College Dublin, The University of Dublin So what CAN we forecast? 26
  • 27. Trinity College Dublin, The University of Dublin 27
  • 28. Trinity College Dublin, The University of Dublin 28
  • 29. Trinity College Dublin, The University of Dublin Which is easiest to forecast? 29 • Daily electricity demand in 3 days time • Timing of next Halley’s comet appearance • Time of sunrise this day next year • Google stock price tomorrow • Google stock price in 6 months time • Maximum temperature tomorrow • Exchange rate of $/€ next week • Total sales of drugs in Irish pharmacies next month
  • 30. Trinity College Dublin, The University of Dublin How predictable? 30 Depends on: 1. how well we understand the factors that contribute to it 2.how much data is available 3.whether the forecasts can affect the thing we are trying to forecast. 4.the future is somewhat similar to the past 5.there is relatively low natural/unexplainable random variation.
  • 31. Trinity College Dublin, The University of Dublin Improving forecasts… 31 …but social science forecasts are much harder
  • 32. Trinity College Dublin, The University of Dublin How do we do it?
  • 33. Trinity College Dublin, The University of Dublin Most don’t
  • 34. Trinity College Dublin, The University of Dublin Experts
  • 35. Trinity College Dublin, The University of Dublin Game theory Preferences Capabilities Saliency
  • 36. Trinity College Dublin, The University of Dublin Wisdom of Crowds
  • 37. Trinity College Dublin, The University of Dublin Statistics 37 N refugeest = f(casualties, unemployment, day of the week, error) N refugeest = f(Nrefugeest-1, Nrefugeest-2, Nrefugeest-3, …, error) N refugeest = f(Nrefugeest-1, casualties, unemployment, …, error)
  • 38. Trinity College Dublin, The University of Dublin Statistics Learning Sample Test Sample Y increases by b when x increases by 1 (well, sort of) Predictions in test sample
  • 39. Trinity College Dublin, The University of Dublin Machine learning algorithms Support vector machines
  • 40. Trinity College Dublin, The University of Dublin Risks of Machine Learning approaches Over-fitting Too little data Don’t improve that much, if at all, over much simpler logits
  • 41. Trinity College Dublin, The University of Dublin Forecasts are hard, especially about the future Aka: how poorly do we do?
  • 42. Trinity College Dublin, The University of Dublin 42 3 -5 -4 -3 -2 -1 0 1 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2017 Financial year ended 2013 2016 2015 2014 2012 2011 Actual Grattan analysis of Commonwealth Budget Papers Commonwealth plans to drift back to surplus show the triumph of experience over hope Actual and forecast Commonwealth underlying cash balance per cent of GDP Forecast made in
  • 43. Trinity College Dublin, The University of Dublin Important forecasting efforts Academic: — Political Instability Task Force 2002-present — DARPA ICEWS 2007-2015 — Peace Research Center Oslo (PRIO) and Uppsala University UCDP models — Uppsala ViEWS — Many others Governments: typically rely on experts, but some use large-N data: — Germany — Netherlands — EU — World Bank — US — Others, but often classified
  • 44. Trinity College Dublin, The University of Dublin Beware of accuracy claims
  • 45. Trinity College Dublin, The University of Dublin Overpredicting vs underpredicting True warnings False alarms
  • 46. Trinity College Dublin, The University of Dublin How well: Experts Tetlock: 284 experts 20+ years of forecasts 1000s of forecasts
  • 47. Trinity College Dublin, The University of Dublin Experts: results Overpredict rare events No better than dilettantes All humans far worse than simple algorithms Why so bad?
  • 48. Trinity College Dublin, The University of Dublin Machine learning: performance No Conflict Conflict No conflict 1432 80 Conflict 58 374 48 Predicted Observed
  • 49. Trinity College Dublin, The University of Dublin How well? Crowds IARPA competition: GJP the winner The top forecasters in the Good Judgement Project (Tetlock) are "reportedly 30% better than intelligence officers with access to actual classified information.” 49
  • 50. Trinity College Dublin, The University of Dublin More complex models?
  • 51. Trinity College Dublin, The University of Dublin More Data?
  • 52. Trinity College Dublin, The University of Dublin Aggregating forecasts: ensemble models
  • 53. Trinity College Dublin, The University of Dublin Fundamentals of Forecasting 53
  • 54. Trinity College Dublin, The University of Dublin Time series vs. cross-sectional data ForecastingBook.com
  • 55. Trinity College Dublin, The University of Dublin Prediction vs Forecasting • Prediction: estimate the outcomes of unseen data – E.g., predict the value of inflation in Burundi today based on the one in Rwanda today • Forecasting: predictions about the future – Predict the value of inflation in Burundi tomorrow based on the one in Rwanda today © 2012 Shmueli Some rights Reserved
  • 56. Trinity College Dublin, The University of Dublin Basic Notation t=1,2,3… = time period index Yt = value of the series at time period t Ft+k = forecast for time period t+k, given data until time t et = forecast error for period t ForecastingBook.com
  • 57. Trinity College Dublin, The University of Dublin Time series components Systematic part • Level • Trend • Seasonal patterns Non-systematic part • “Noise” Additive: Yt = Level + Trend + Seasonality + Noise Multiplicative: Yt = Level x Trend x Seasonality x Noise ForecastingBook.com
  • 58. Trinity College Dublin, The University of Dublin Time series components