SlideShare a Scribd company logo
1 of 27
Download to read offline
You got CrystalBall, now
what? Building technically
sound simulation models
© EpiX Analytics LLC
Dr. Francisco J Zagmutt
Managing Partner
EpiX Analytics
fzagmutt@epixanalytics.com
Outline
• Background – Crystal Ball, simulation,
this talk
• ModelAssist
• A motivational example
• Technical considerations for sound
models
• A handy checklist to keep in mind
© EpiX Analytics LLC
Crystal Ball and simulation modeling
• Stochastic modeling – random variables used
to simulate all possible outcomes
• Crystal Ball: Monte Carlo simulation,
forecasting, and optimization tool
• Wide range of fields and applications:
• Pharmaceuticals
• Mining
• Manufacturing
• Transportation
• Insurance
• Financial industry
• Health / Food safety
• Energy, oil & gas
• Government
• Many others….
© EpiX Analytics LLC
The emphasis of this talk
Often deterministic models are “upgraded” to
stochastic ones
During conversion and/or design of new models,
several mistakes can happen.
Mistakes affect spread and shape of outputs ->
statistics e.g. percentiles and variance.
Impact on decision supported by model from
irrelevant to ‘fatal’
Therefore, key to get them right…
© EpiX Analytics LLC
Correct
FATAL!!
Free simulation and CB training and
reference tool:
http://www.epixanalytics.com/ModelAssist.html
 Based on EpiX Analytics’ decades of
experience in risk analysis consulting,
training, and research
 Option to install locally or visit online
 Page numbers are Mxxxx. For example,
M0407 is “Selecting the appropriate
distributions for your model”
 Keep an eye on these during this talk!
© EpiX Analytics LLC
ModelAssist for CB
A motivational example
You are in charge of predicting next year’s total borrowed money
for the consumer lending division in a bank
Making lots of assumptions, a very simplistic calculation could be:
Expected totalBorrowed= # of clients x loan size +…
…however, the number of individual loans and the loan size is
highly variable, and not well known
How do we incorporate this variability and uncertainty in our
calculation above?
© EpiX Analytics LLC
We hire a marketing consultancy, and after
4.2M in fees, they conclude that:
• # loans/year is Pert(450,650,800)
• Loan size is $Lognormal(1,000,4,000)
Therefore, we could use CB to “stochastize”
prior calculation using:
Expected totalBorrowed=
Pert(450,650,800)*Lognormal(1000,4000)+...
Lets see how this model works…
© EpiX Analytics LLC
Let’s visualize what our model does
Iteration # loans $ per loan Total borrowed
1 550 28,126 15,469,300
550
28,126
© EpiX Analytics LLC
Let’s visualize what our model does
Iteration # loans $ per loan Total borrowed
1 550 28,126 15,469,300
2 770 6,307 4,856,390
770
6,307
© EpiX Analytics LLC
Let’s visualize what our model does
Iteration # loans $ per loan Total borrowed
1 550 28,126 15,469,300
2 770 6,307 4,856,390
3 498 5,499 1,561,716
4 864 26,795 23,150,880
.
.
.
n
498
5,499
864
26,795
Are these calculations correct?
Model says that for each scenario, every client
borrows the same amount!!
How would this affect your model?
© EpiX Analytics LLC
Technical considerations for sound models
1. When a multiplication is a sum
2. Be certain to model uncertainties
1. Confusing variability and uncertainty
2. Reporting of variability and
uncertainty
3. Dependencies matter
© EpiX Analytics LLC
1. When a multiplication is a sum (M0089)
Multiplications can be a shortcut to sum identical numbers
e.g. 10*3=10+10+10
However, random numbers are not identical.
E.g. the sum of n Lognormal(10,4) ≠ Logn(10,4) * n
• Impact: gross overestimation of output variance.
• Correct modeling (M0435):
• Simulate n distributions individually, then sum them
• Use identities (e.g. Binomial(1,p)+Binomial(1,p) = Binomial(2,p))
• Use CLT approximation (e.g. N(m,s)+N(m,s)=N(2m,s√2))
• Use actuarial methods (FFT, Panjer, DePril)
• Lets see how to solve our banking problem, now also
calculating revenue assuming 7.5% IR
© EpiX Analytics LLC
Correct approaches
© EpiX Analytics LLC
Approach 1 (M0075):
Use the CLT (N(n*m,s√n))
to calculate total money
borrowed, given n
random # of clients. Then
multiply by IR
Approach 2 (M0435):
Simulate every
client individually and
sum total money
Borrowed. Then multiply
by IR.
Does this matter?
Conclusion:
The incorrect
approach
greatly overestimates
the total risk
(sincorrect= 4x correct
method!)
Both correct
approaches
give the same answer
© EpiX Analytics LLC
2. Be certain to model uncertainties
The difference is subtle, but they can greatly impact a model
Variability: heterogeneity (H) among individuals, or randomness (R) (due to
chance, or random samples)
A function of the system being modeled. Can’t be reduced.
• Distribution of household income (H)
• Number of daily coffee breaks (H)
• Catastrophic events (R)
• Quality control sampling (R)
Uncertainty: lack of knowledge about the value of a parameter (e.g.
imperfect data).
A function of the analyst . Thus, can be reduced with more data
• Probability of loan defaults
• Post-launch sales
• Poverty rates in a country
N(m,s)
N( , )
2.1. Confusing variability and uncertainty
• Impact: under or over estimation of output variance.
• Correct modeling:
• Variability: should be repeated in model to
represent heterogeneity or randomness (M0247).
• Uncertainty:
• Its one value, we just don’t know it: thus, show
only once in model (M0088)
• For this reason, can usually be treated the
same way as a point estimate (multiply, divide,
etc)
© EpiX Analytics LLC
What happens if I replicate uncertainties?
Uncertainty: what the observer doesn’t know.
• Impact: underestimation of output variance.
• Correct modeling: represent uncertainty distribution only once in
the model.
Example: We randomly sample 100 individuals in a region and 8 have
a disease. How many total infected individuals will there be next
week, given the below populations for areas A-E within the region?
© EpiX Analytics LLC
Area ID Population in the region
A 10,000
B 5,000
C 6,000
D 1,000
E 9,000
What happens if I replicate uncertainties?
Correct modeling: uncertainty on
proportion of disease p = Beta(8+1,
100-8+1) once. Then simulate
infected/area using
Binomial(population, p) and sum areas.
Incorrect modeling of uncertainty: sample
p for each area, then simulate and
sum areas as above.
© EpiX Analytics LLC
∑
∑
Does this matter?
Certainly! Replicating uncertainties grossly
underestimated the risk, even in this basic example.
© EpiX Analytics LLC
Likewise, if I don’t
replicate variability,
risk will be
overestimated
1. Output = probability. Report
distribution of uncertainty in
probability:
2. If output = distribution.
Report distributions
representing uncertainty and
variability (2 dimensions) of
output:
2.2. Reporting uncertainty and variability
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
0 20 40 60 80 100 120 140 160 180 200
Number of people affected
Cumulativeprobability
0.0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1.0
0 5 10 15 20 25 30 35 40 45
CumulativeFrequency
Prevalence
Cumulative Frequency of Data
© EpiX Analytics LLC
Variability dominates
results
Variability and uncertainty
equally affect results
© EpiX Analytics LLC
Second order cumulative plot (M0406)
Evaluating impact of variability and uncertainty in results
© EpiX Analytics LLC
3. Dependencies matter!
Important rule: every iteration (sample) in
simulation model has to be a possible
scenario
Correlated (dependent) random variables can’t
be sampled independently from each other as
this would create impossible scenarios e.g.
• Sampling a high S&P500 and a very low
Dow Jones.
• Cost estimation of a project, independent of
schedule risks
• Impact: typically underestimation of output
variance (but can also result in overestimate)
© EpiX Analytics LLC
Correlation modeling options
• Linear correlation: Rank order correlation.
Most commonly used in CB, but very limited.
• Non-linear:
• Bootstrap: flexible and easy to implement
(M0264)
• Bayesian MC or MCMC: flexible, but harder
to implement (M0052)
• Conditional model logic (e.g. IF
statements): to model causal
flow/conditionality (M0097)
• Copulas: more complex but restricted
shapes
3
4
5
6
7
8
9
10
1.5
2
2.5
3
3.5
4
4.5
5
5.5
Betaposterior
Alpha posterior
Beta posterior vs Alpha posterior
Be
26
28
30
32
34
36
38
2000 2200 2400 2600 2800 3000 3200
BOPD
NPV($M)
26
28
30
32
34
36
38
2000 2200 2400 2600 2800 3000 3200
BOPD
NPV($M)
a)
c)
We went through a list of technical issues and
potential mistakes to keep an eye on.
Now is a good time to go over a checklist of
procedures (rather than techniques) to keep in
mind before, during and after your model is
developed.
A reference checklist*
1. Engage your decision makers/executives
• Let them help you scope the problem statement
2. Let the problem drive the analysis
• Fancier not always better.
3. Make the analysis as simple as possible, but no simpler
• Easier to communicate and parameterize.
• ALWAYS start simple and later add complexity (if needed)!
4. Identify all significant assumptions and uncertainties
• Honesty will pay off
5. Perform sensitivity and scenario analysis
• To identify key parameters and data gaps
6. Iteratively refine the problem statement and the analysis
• Adapt model to new evidence and/or needs
7. Present and document results clearly
• Communication is key!
*Modified from Morgan, and Henrion, (1990).
© EpiX Analytics LLC
Summary
• Background – simulation modeling and Crystal Ball
are used everywhere
• ModelAssist – free modeling reference tool, so use it!
http://www.epixanalytics.com/ModelAssist.html
• Technical considerations for sound models
• Multiplications for sums – don’t do it!
• Uncertainty vs. variability – be sure to distinguish
them
• Dependencies/correlations – don’t ignore them
• A handy checklist to keep in mind
Thanks for your time!
Please contact me with any questions, or for a
copy of the CB models I developed for this talk
Dr. Francisco J Zagmutt
Managing Partner
EpiX Analytics
fzagmutt@epixanalytics.com
© EpiX Analytics LLC

More Related Content

Similar to 205250 crystall ball

Practical Aspects of Stochastic Modeling.pptx
Practical Aspects of Stochastic Modeling.pptxPractical Aspects of Stochastic Modeling.pptx
Practical Aspects of Stochastic Modeling.pptx
Ron Harasym
 
Neural Network Model
Neural Network ModelNeural Network Model
Neural Network Model
Eric Esajian
 
Stochastic Modeling - Financial Reporting
Stochastic Modeling - Financial ReportingStochastic Modeling - Financial Reporting
Stochastic Modeling - Financial Reporting
Ron Harasym
 
Stochastic life cycle costing
Stochastic life cycle costingStochastic life cycle costing
Stochastic life cycle costing
Bruno De Wachter
 
MIS637_Final_Project_Rahul_Bhatia
MIS637_Final_Project_Rahul_BhatiaMIS637_Final_Project_Rahul_Bhatia
MIS637_Final_Project_Rahul_Bhatia
Rahul Bhatia
 

Similar to 205250 crystall ball (20)

Monte Carlo Simulations (UC Berkeley School of Information; July 11, 2019)
Monte Carlo Simulations (UC Berkeley School of Information; July 11, 2019)Monte Carlo Simulations (UC Berkeley School of Information; July 11, 2019)
Monte Carlo Simulations (UC Berkeley School of Information; July 11, 2019)
 
What are the odds of making that number risk analysis with crystal ball - O...
What are the odds of making that number   risk analysis with crystal ball - O...What are the odds of making that number   risk analysis with crystal ball - O...
What are the odds of making that number risk analysis with crystal ball - O...
 
Risk Ana
Risk AnaRisk Ana
Risk Ana
 
Practical Aspects of Stochastic Modeling.pptx
Practical Aspects of Stochastic Modeling.pptxPractical Aspects of Stochastic Modeling.pptx
Practical Aspects of Stochastic Modeling.pptx
 
Neural Network Model
Neural Network ModelNeural Network Model
Neural Network Model
 
Risk and financial portfolio analytics - A technical Introduction
Risk and financial portfolio analytics - A technical IntroductionRisk and financial portfolio analytics - A technical Introduction
Risk and financial portfolio analytics - A technical Introduction
 
Forward-Looking ALLL: Computing Qualitative Adjustments
Forward-Looking ALLL: Computing Qualitative AdjustmentsForward-Looking ALLL: Computing Qualitative Adjustments
Forward-Looking ALLL: Computing Qualitative Adjustments
 
Stochastic Modeling - Financial Reporting
Stochastic Modeling - Financial ReportingStochastic Modeling - Financial Reporting
Stochastic Modeling - Financial Reporting
 
205290 crystal ball predictive analytics
205290 crystal ball predictive analytics205290 crystal ball predictive analytics
205290 crystal ball predictive analytics
 
A high level overview of all that is Analytics
A high level overview of all that is AnalyticsA high level overview of all that is Analytics
A high level overview of all that is Analytics
 
Modeling for the Non-Statistician
Modeling for the Non-StatisticianModeling for the Non-Statistician
Modeling for the Non-Statistician
 
1650 track2 anderberg
1650 track2 anderberg1650 track2 anderberg
1650 track2 anderberg
 
Machine_Learning.pptx
Machine_Learning.pptxMachine_Learning.pptx
Machine_Learning.pptx
 
UNIT 4 Risk Ananlysis in Project Analysis.ppt
UNIT 4 Risk Ananlysis in Project Analysis.pptUNIT 4 Risk Ananlysis in Project Analysis.ppt
UNIT 4 Risk Ananlysis in Project Analysis.ppt
 
Model Validation
Model Validation Model Validation
Model Validation
 
Chapter11 projectriskanalysis
Chapter11 projectriskanalysisChapter11 projectriskanalysis
Chapter11 projectriskanalysis
 
Stochastic life cycle costing
Stochastic life cycle costingStochastic life cycle costing
Stochastic life cycle costing
 
Reduction in customer complaints - Mortgage Industry
Reduction in customer complaints - Mortgage IndustryReduction in customer complaints - Mortgage Industry
Reduction in customer complaints - Mortgage Industry
 
Machine learning in credit risk modeling : a James white paper
Machine learning in credit risk modeling : a James white paperMachine learning in credit risk modeling : a James white paper
Machine learning in credit risk modeling : a James white paper
 
MIS637_Final_Project_Rahul_Bhatia
MIS637_Final_Project_Rahul_BhatiaMIS637_Final_Project_Rahul_Bhatia
MIS637_Final_Project_Rahul_Bhatia
 

More from p6academy

20160405 How to Install Primavera P6 16.1 Professional desktop
20160405 How to Install Primavera P6 16.1 Professional desktop20160405 How to Install Primavera P6 16.1 Professional desktop
20160405 How to Install Primavera P6 16.1 Professional desktop
p6academy
 

More from p6academy (20)

Oracle OpenWorld 2015
Oracle OpenWorld 2015Oracle OpenWorld 2015
Oracle OpenWorld 2015
 
Plan and Execute the Right Projects— Easily and Affordably
Plan and Execute the Right Projects—  Easily and AffordablyPlan and Execute the Right Projects—  Easily and Affordably
Plan and Execute the Right Projects— Easily and Affordably
 
What's New In Primavera P6 EPPM 17.1
What's New In Primavera P6 EPPM 17.1What's New In Primavera P6 EPPM 17.1
What's New In Primavera P6 EPPM 17.1
 
Oracle Primavera Unifier What's New in Release 16.2
Oracle Primavera Unifier What's New in Release 16.2Oracle Primavera Unifier What's New in Release 16.2
Oracle Primavera Unifier What's New in Release 16.2
 
Oracle What's New In Primavera P6 16.2
Oracle What's New In Primavera P6 16.2Oracle What's New In Primavera P6 16.2
Oracle What's New In Primavera P6 16.2
 
What's New in Primavera Prime 16.1
What's New in Primavera Prime 16.1What's New in Primavera Prime 16.1
What's New in Primavera Prime 16.1
 
What's New in Primavera Gateway 16.1
What's New in Primavera Gateway 16.1What's New in Primavera Gateway 16.1
What's New in Primavera Gateway 16.1
 
What's New In Primavera Analytics 16.1
What's New In Primavera Analytics 16.1What's New In Primavera Analytics 16.1
What's New In Primavera Analytics 16.1
 
What's New in Unifier 16.1
What's New in Unifier 16.1What's New in Unifier 16.1
What's New in Unifier 16.1
 
20160405 How to Install Primavera P6 16.1 Professional desktop
20160405 How to Install Primavera P6 16.1 Professional desktop20160405 How to Install Primavera P6 16.1 Professional desktop
20160405 How to Install Primavera P6 16.1 Professional desktop
 
Oracle Primavera P6 16.1 Announced
Oracle Primavera P6 16.1 AnnouncedOracle Primavera P6 16.1 Announced
Oracle Primavera P6 16.1 Announced
 
Oracle Primavera Unifier 16.1
Oracle Primavera Unifier 16.1Oracle Primavera Unifier 16.1
Oracle Primavera Unifier 16.1
 
P6 Release 8 Application Considerations Overview
P6 Release 8 Application Considerations OverviewP6 Release 8 Application Considerations Overview
P6 Release 8 Application Considerations Overview
 
Administering Users, Access and Views in P6 EPPM (Web) Release 8 and later
Administering Users, Access and Views in P6 EPPM  (Web) Release 8 and laterAdministering Users, Access and Views in P6 EPPM  (Web) Release 8 and later
Administering Users, Access and Views in P6 EPPM (Web) Release 8 and later
 
P6 Release 8 Installation Orientation
P6 Release 8 Installation OrientationP6 Release 8 Installation Orientation
P6 Release 8 Installation Orientation
 
Oracle Primavera P6 R8 Release Value Proposition
Oracle Primavera P6 R8 Release Value PropositionOracle Primavera P6 R8 Release Value Proposition
Oracle Primavera P6 R8 Release Value Proposition
 
Oracle Primavera P6 v7 Release Value Proposition
Oracle Primavera P6 v7 Release Value Proposition Oracle Primavera P6 v7 Release Value Proposition
Oracle Primavera P6 v7 Release Value Proposition
 
Oracle Primavera P6 Release Content Document (RCD)
Oracle Primavera P6 Release Content Document (RCD)Oracle Primavera P6 Release Content Document (RCD)
Oracle Primavera P6 Release Content Document (RCD)
 
Oracle Support Accreditation – Level 1 Study Guide
Oracle Support Accreditation – Level 1 Study GuideOracle Support Accreditation – Level 1 Study Guide
Oracle Support Accreditation – Level 1 Study Guide
 
Oracle Primavera Support Accreditation Study Guide
Oracle Primavera Support Accreditation Study GuideOracle Primavera Support Accreditation Study Guide
Oracle Primavera Support Accreditation Study Guide
 

Recently uploaded

Recently uploaded (20)

JHARSUGUDA CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN JHARSUGUDA ESCORTS
JHARSUGUDA CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN JHARSUGUDA ESCORTSJHARSUGUDA CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN JHARSUGUDA ESCORTS
JHARSUGUDA CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN JHARSUGUDA ESCORTS
 
Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...
Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...
Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...
 
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
 
PARK STREET 💋 Call Girl 9827461493 Call Girls in Escort service book now
PARK STREET 💋 Call Girl 9827461493 Call Girls in  Escort service book nowPARK STREET 💋 Call Girl 9827461493 Call Girls in  Escort service book now
PARK STREET 💋 Call Girl 9827461493 Call Girls in Escort service book now
 
Arti Languages Pre Seed Teaser Deck 2024.pdf
Arti Languages Pre Seed Teaser Deck 2024.pdfArti Languages Pre Seed Teaser Deck 2024.pdf
Arti Languages Pre Seed Teaser Deck 2024.pdf
 
Berhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Berhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDINGBerhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Berhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
 
BADDI 💋 Call Girl 9827461493 Call Girls in Escort service book now
BADDI 💋 Call Girl 9827461493 Call Girls in  Escort service book nowBADDI 💋 Call Girl 9827461493 Call Girls in  Escort service book now
BADDI 💋 Call Girl 9827461493 Call Girls in Escort service book now
 
Puri CALL GIRL ❤️8084732287❤️ CALL GIRLS IN ESCORT SERVICE WE ARW PROVIDING
Puri CALL GIRL ❤️8084732287❤️ CALL GIRLS IN ESCORT SERVICE WE ARW PROVIDINGPuri CALL GIRL ❤️8084732287❤️ CALL GIRLS IN ESCORT SERVICE WE ARW PROVIDING
Puri CALL GIRL ❤️8084732287❤️ CALL GIRLS IN ESCORT SERVICE WE ARW PROVIDING
 
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
 
Kalyan Call Girl 98350*37198 Call Girls in Escort service book now
Kalyan Call Girl 98350*37198 Call Girls in Escort service book nowKalyan Call Girl 98350*37198 Call Girls in Escort service book now
Kalyan Call Girl 98350*37198 Call Girls in Escort service book now
 
Nashik Call Girl Just Call 7091819311 Top Class Call Girl Service Available
Nashik Call Girl Just Call 7091819311 Top Class Call Girl Service AvailableNashik Call Girl Just Call 7091819311 Top Class Call Girl Service Available
Nashik Call Girl Just Call 7091819311 Top Class Call Girl Service Available
 
QSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptx
QSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptxQSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptx
QSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptx
 
Durg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTS
Durg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTSDurg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTS
Durg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTS
 
GUWAHATI 💋 Call Girl 9827461493 Call Girls in Escort service book now
GUWAHATI 💋 Call Girl 9827461493 Call Girls in  Escort service book nowGUWAHATI 💋 Call Girl 9827461493 Call Girls in  Escort service book now
GUWAHATI 💋 Call Girl 9827461493 Call Girls in Escort service book now
 
Falcon Invoice Discounting: Empowering Your Business Growth
Falcon Invoice Discounting: Empowering Your Business GrowthFalcon Invoice Discounting: Empowering Your Business Growth
Falcon Invoice Discounting: Empowering Your Business Growth
 
Berhampur Call Girl Just Call 8084732287 Top Class Call Girl Service Available
Berhampur Call Girl Just Call 8084732287 Top Class Call Girl Service AvailableBerhampur Call Girl Just Call 8084732287 Top Class Call Girl Service Available
Berhampur Call Girl Just Call 8084732287 Top Class Call Girl Service Available
 
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 MonthsSEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
 
Falcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business PotentialFalcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business Potential
 
Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...
Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...
Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...
 
Home Furnishings Ecommerce Platform Short Pitch 2024
Home Furnishings Ecommerce Platform Short Pitch 2024Home Furnishings Ecommerce Platform Short Pitch 2024
Home Furnishings Ecommerce Platform Short Pitch 2024
 

205250 crystall ball

  • 1. You got CrystalBall, now what? Building technically sound simulation models © EpiX Analytics LLC Dr. Francisco J Zagmutt Managing Partner EpiX Analytics fzagmutt@epixanalytics.com
  • 2. Outline • Background – Crystal Ball, simulation, this talk • ModelAssist • A motivational example • Technical considerations for sound models • A handy checklist to keep in mind © EpiX Analytics LLC
  • 3. Crystal Ball and simulation modeling • Stochastic modeling – random variables used to simulate all possible outcomes • Crystal Ball: Monte Carlo simulation, forecasting, and optimization tool • Wide range of fields and applications: • Pharmaceuticals • Mining • Manufacturing • Transportation • Insurance • Financial industry • Health / Food safety • Energy, oil & gas • Government • Many others…. © EpiX Analytics LLC
  • 4. The emphasis of this talk Often deterministic models are “upgraded” to stochastic ones During conversion and/or design of new models, several mistakes can happen. Mistakes affect spread and shape of outputs -> statistics e.g. percentiles and variance. Impact on decision supported by model from irrelevant to ‘fatal’ Therefore, key to get them right… © EpiX Analytics LLC Correct FATAL!!
  • 5. Free simulation and CB training and reference tool: http://www.epixanalytics.com/ModelAssist.html  Based on EpiX Analytics’ decades of experience in risk analysis consulting, training, and research  Option to install locally or visit online  Page numbers are Mxxxx. For example, M0407 is “Selecting the appropriate distributions for your model”  Keep an eye on these during this talk! © EpiX Analytics LLC ModelAssist for CB
  • 6. A motivational example You are in charge of predicting next year’s total borrowed money for the consumer lending division in a bank Making lots of assumptions, a very simplistic calculation could be: Expected totalBorrowed= # of clients x loan size +… …however, the number of individual loans and the loan size is highly variable, and not well known How do we incorporate this variability and uncertainty in our calculation above? © EpiX Analytics LLC
  • 7. We hire a marketing consultancy, and after 4.2M in fees, they conclude that: • # loans/year is Pert(450,650,800) • Loan size is $Lognormal(1,000,4,000) Therefore, we could use CB to “stochastize” prior calculation using: Expected totalBorrowed= Pert(450,650,800)*Lognormal(1000,4000)+... Lets see how this model works… © EpiX Analytics LLC
  • 8. Let’s visualize what our model does Iteration # loans $ per loan Total borrowed 1 550 28,126 15,469,300 550 28,126 © EpiX Analytics LLC
  • 9. Let’s visualize what our model does Iteration # loans $ per loan Total borrowed 1 550 28,126 15,469,300 2 770 6,307 4,856,390 770 6,307 © EpiX Analytics LLC
  • 10. Let’s visualize what our model does Iteration # loans $ per loan Total borrowed 1 550 28,126 15,469,300 2 770 6,307 4,856,390 3 498 5,499 1,561,716 4 864 26,795 23,150,880 . . . n 498 5,499 864 26,795 Are these calculations correct? Model says that for each scenario, every client borrows the same amount!! How would this affect your model? © EpiX Analytics LLC
  • 11. Technical considerations for sound models 1. When a multiplication is a sum 2. Be certain to model uncertainties 1. Confusing variability and uncertainty 2. Reporting of variability and uncertainty 3. Dependencies matter © EpiX Analytics LLC
  • 12. 1. When a multiplication is a sum (M0089) Multiplications can be a shortcut to sum identical numbers e.g. 10*3=10+10+10 However, random numbers are not identical. E.g. the sum of n Lognormal(10,4) ≠ Logn(10,4) * n • Impact: gross overestimation of output variance. • Correct modeling (M0435): • Simulate n distributions individually, then sum them • Use identities (e.g. Binomial(1,p)+Binomial(1,p) = Binomial(2,p)) • Use CLT approximation (e.g. N(m,s)+N(m,s)=N(2m,s√2)) • Use actuarial methods (FFT, Panjer, DePril) • Lets see how to solve our banking problem, now also calculating revenue assuming 7.5% IR © EpiX Analytics LLC
  • 13. Correct approaches © EpiX Analytics LLC Approach 1 (M0075): Use the CLT (N(n*m,s√n)) to calculate total money borrowed, given n random # of clients. Then multiply by IR Approach 2 (M0435): Simulate every client individually and sum total money Borrowed. Then multiply by IR.
  • 14. Does this matter? Conclusion: The incorrect approach greatly overestimates the total risk (sincorrect= 4x correct method!) Both correct approaches give the same answer © EpiX Analytics LLC
  • 15. 2. Be certain to model uncertainties The difference is subtle, but they can greatly impact a model Variability: heterogeneity (H) among individuals, or randomness (R) (due to chance, or random samples) A function of the system being modeled. Can’t be reduced. • Distribution of household income (H) • Number of daily coffee breaks (H) • Catastrophic events (R) • Quality control sampling (R) Uncertainty: lack of knowledge about the value of a parameter (e.g. imperfect data). A function of the analyst . Thus, can be reduced with more data • Probability of loan defaults • Post-launch sales • Poverty rates in a country N(m,s) N( , )
  • 16. 2.1. Confusing variability and uncertainty • Impact: under or over estimation of output variance. • Correct modeling: • Variability: should be repeated in model to represent heterogeneity or randomness (M0247). • Uncertainty: • Its one value, we just don’t know it: thus, show only once in model (M0088) • For this reason, can usually be treated the same way as a point estimate (multiply, divide, etc) © EpiX Analytics LLC
  • 17. What happens if I replicate uncertainties? Uncertainty: what the observer doesn’t know. • Impact: underestimation of output variance. • Correct modeling: represent uncertainty distribution only once in the model. Example: We randomly sample 100 individuals in a region and 8 have a disease. How many total infected individuals will there be next week, given the below populations for areas A-E within the region? © EpiX Analytics LLC Area ID Population in the region A 10,000 B 5,000 C 6,000 D 1,000 E 9,000
  • 18. What happens if I replicate uncertainties? Correct modeling: uncertainty on proportion of disease p = Beta(8+1, 100-8+1) once. Then simulate infected/area using Binomial(population, p) and sum areas. Incorrect modeling of uncertainty: sample p for each area, then simulate and sum areas as above. © EpiX Analytics LLC ∑ ∑
  • 19. Does this matter? Certainly! Replicating uncertainties grossly underestimated the risk, even in this basic example. © EpiX Analytics LLC Likewise, if I don’t replicate variability, risk will be overestimated
  • 20. 1. Output = probability. Report distribution of uncertainty in probability: 2. If output = distribution. Report distributions representing uncertainty and variability (2 dimensions) of output: 2.2. Reporting uncertainty and variability 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 20 40 60 80 100 120 140 160 180 200 Number of people affected Cumulativeprobability 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 0 5 10 15 20 25 30 35 40 45 CumulativeFrequency Prevalence Cumulative Frequency of Data © EpiX Analytics LLC
  • 21. Variability dominates results Variability and uncertainty equally affect results © EpiX Analytics LLC Second order cumulative plot (M0406) Evaluating impact of variability and uncertainty in results
  • 22. © EpiX Analytics LLC 3. Dependencies matter! Important rule: every iteration (sample) in simulation model has to be a possible scenario Correlated (dependent) random variables can’t be sampled independently from each other as this would create impossible scenarios e.g. • Sampling a high S&P500 and a very low Dow Jones. • Cost estimation of a project, independent of schedule risks • Impact: typically underestimation of output variance (but can also result in overestimate)
  • 23. © EpiX Analytics LLC Correlation modeling options • Linear correlation: Rank order correlation. Most commonly used in CB, but very limited. • Non-linear: • Bootstrap: flexible and easy to implement (M0264) • Bayesian MC or MCMC: flexible, but harder to implement (M0052) • Conditional model logic (e.g. IF statements): to model causal flow/conditionality (M0097) • Copulas: more complex but restricted shapes 3 4 5 6 7 8 9 10 1.5 2 2.5 3 3.5 4 4.5 5 5.5 Betaposterior Alpha posterior Beta posterior vs Alpha posterior Be 26 28 30 32 34 36 38 2000 2200 2400 2600 2800 3000 3200 BOPD NPV($M) 26 28 30 32 34 36 38 2000 2200 2400 2600 2800 3000 3200 BOPD NPV($M) a) c)
  • 24. We went through a list of technical issues and potential mistakes to keep an eye on. Now is a good time to go over a checklist of procedures (rather than techniques) to keep in mind before, during and after your model is developed.
  • 25. A reference checklist* 1. Engage your decision makers/executives • Let them help you scope the problem statement 2. Let the problem drive the analysis • Fancier not always better. 3. Make the analysis as simple as possible, but no simpler • Easier to communicate and parameterize. • ALWAYS start simple and later add complexity (if needed)! 4. Identify all significant assumptions and uncertainties • Honesty will pay off 5. Perform sensitivity and scenario analysis • To identify key parameters and data gaps 6. Iteratively refine the problem statement and the analysis • Adapt model to new evidence and/or needs 7. Present and document results clearly • Communication is key! *Modified from Morgan, and Henrion, (1990). © EpiX Analytics LLC
  • 26. Summary • Background – simulation modeling and Crystal Ball are used everywhere • ModelAssist – free modeling reference tool, so use it! http://www.epixanalytics.com/ModelAssist.html • Technical considerations for sound models • Multiplications for sums – don’t do it! • Uncertainty vs. variability – be sure to distinguish them • Dependencies/correlations – don’t ignore them • A handy checklist to keep in mind
  • 27. Thanks for your time! Please contact me with any questions, or for a copy of the CB models I developed for this talk Dr. Francisco J Zagmutt Managing Partner EpiX Analytics fzagmutt@epixanalytics.com © EpiX Analytics LLC