SlideShare a Scribd company logo
1 of 42
Copyright © 2004 David
Monte Carlo Analysis
David M. Hassenzahl
Copyright © 2004 David
Purpose of lecture
• Introduce Monte Carlo Analysis as a
tool for managing uncertainty
• Demonstrate how it can be used in the
policy setting
• Discuss its uses and shortcomings, and
how they are relevant to policy making
processes
Copyright © 2004 David
What is Monte Carlo
Analysis?
It is a tool for combining distributions, and
thereby propagating more than just
summary statistics
It uses random number generation, rather
than analytic calculations
It is increasingly popular due to high
speed personal computers
Copyright © 2004 David
Background/History
• “Monte Carlo” from the gambling town of the
same name (no surprise)
• First applied in 1947 to model diffusion of
neutrons through fissile materials
• Limited use because time consuming
• Much more common since late 80’s
• Too easy now?
• Name…is EPA “gambling” with people’s lives
(anecdotal, but reasonable).
Copyright © 2004 David
Why Perform Monte Carlo
Analysis?
• Combining distributions
• With more than two distributions,
solving analytically is very difficult
• Simple calculations lose information
– Mean × mean = mean
– 95% %ile × 95%ile ≠ 95%ile!
– Gets “worse” with 3 or more distributions
Copyright © 2004 David
Monte Carlo Analysis
• Takes an equation
– example: Risk = probability × consequence
• Instead of simple numbers, draws
randomly from defined distributions
• Multiplies the two, stores the answer
• Repeats this over and over and over…
• Then the set of results is displayed as a
new, combined distribution
Copyright © 2004 David
Simple (hypothetical) example
• Skin cream additive is an irritant
• Many samples of cream provide information
on concentration:
– mean 0.02 mg chemical
– standard dev. 0.005 mg chemical
• Two tests show probability of irritation given
application
– low freq of effect per mg exposure = 5/100/mg
– high freq of effect per mg exposure = 10/100/mg
Copyright © 2004 David
Analytical results
• Risk = exposure × potency
– Mean risk = 0.02 mg × 0.075 / mg
= 0.0015
or 15 out of 10,000 applications will result in irritation
Copyright © 2004 David
Analytical results
• “Conservative estimate”
– Use upper 95th
%ile
Risk = 0.03 mg × 0.0975 / mg
= 0.0029
Copyright © 2004 David
Monte Carlo: Visual example
Exposure = normal(mean 0.02 mg, s.d. = 0.005 mg)
potency = uniform (range 0.05 / mg to 0.10 / mg)
0.02 0.030.01
Exposure(mg
chemical)
Potency(probabilityof
irritationpermgchemical)
0.05 0.10
Copyright © 2004 David
Random draw one
p(irritate) = 0.0165 mg × 0.063/mg = 0.0010
0.02 0.030.01
Exposure(mg
chemical)
Potency(probabilityof
irritationpermgchemical)
0.05 0.10
0.063
0.0165
Copyright © 2004 David
Random draw two
p(irritate) = 0.0175 mg × 0.089 /mg = 0.0016
Summary: {0.0010, 0.0016}
0.02 0.030.01
Exposure(mg
chemical)
Potency(probabilityof
irritationpermgchemical)
0.05 0.10
0.0890.0175
Copyright © 2004 David
Random draw three
p(irritate) = 0.152 mg × 0.057 /mg = 0.0087
Summary: {0.0010, 0.0016, 0.00087}
0.02 0.030.01
Exposure(mg
chemical)
Potency(probabilityof
irritationpermgchemical)
0.05 0.10
0.057
0.0152
Copyright © 2004 David
Random draw four
p(irritate) = 0.0238 mg × 0.085 /mg = 0.0020
Summary: {0.0010, 0.0016, 0.00087, 0.0020}
0.02 0.030.01
Exposure(mg
chemical)
Potency(probabilityof
irritationpermgchemical)
0.05 0.10
0.085
0.0238
Copyright © 2004 David
After ten random draws
Summary
{0.0010, 0.0016, 0.00087, 0.0020,
0.0011, 0.0018, 0.0024, 0.0016,
0.0015, 0.00062}
mean 0.0014
standard deviation (0.00055)
Copyright © 2004 David
Using software
• Could write this program using a
random number generator
• But, several software packages out
there.
• I use Crystal Ball
– user friendly
– customizable
– r.n.g. good up to about 10,000 iterations
Copyright © 2004 David
100 iterations (about two
seconds)
• Monte Carlo results
– Mean 0.0016
– Standard Deviation 0.00048
– “Conservative” estimate 0.0026
• Compare to analytical results
– Mean 0.0015
– standard deviation n/a
– “Conservative” estimate 0.0029
Copyright © 2004 David
Summary chart - 100 trials
Frequency Chart
.000
.013
.025
.038
.050
0
1.25
2.5
3.75
5
0.00 0.00 0.00 0.00 0.00
100 Trials 1 Outlier
Forecast: P(Irritation)
0.00161 0.003110.00103
Copyright © 2004 David
Summary - 10,000 trials
• Monte Carlo results
– Mean 0.0015
– Standard Deviation 0.000472
– “Conservative” estimate 0.0024
• Compare to analytical results
– Mean 0.0015
– standard deviation n/a
– “Conservative” estimate 0.0029
Copyright © 2004 David
Summary chart - 10,000 trials
Frequency Chart
.000
.006
.011
.017
.023
0
56.5
113
169.5
226
0.00 0.00 0.00 0.00 0.00
10,000 Trials 88 Outliers
Forecast: P(Irritation)
0.00150 0.003310.00069
About 1.5 minutes run time
Copyright © 2004 David
Policy applications
• When there are many distributional
inputs
• Concern about “excessive
conservatism”
– multiplying 95th
percentiles
– multiple exposures
• Because we can
• Bayesian calculations
Copyright © 2004 David
Issues: Sensitivity Analysis
• Sensitivity analysis looks at which input
distributions have the greatest effect on
the eventual distribution
• Helps to understand which parameters
can both be influenced by policy and
reduce risks
• Helps understand when better data can
be most valuable (information isn’t
free…nor even cheap)
Copyright © 2004 David
Issues: Correlation
• Two distributions are correlated when a
change in one causes a change in
another
• Example: People who eat lots of peas
may eat less broccoli (or may eat
more…)
• Usually doesn’t have much effect
unless significant correlation (|ρ|>0.75)
Copyright © 2004 David
Generating Distributions
• Invalid distributions create invalid
results, which leads to inappropriate
policies
• Two options
– empirical
– theoretical
Copyright © 2004 David
Empirical Distributions
• Most appropriate when developed for
the issue at hand.
• Example: local fish consumption
– survey individuals or otherwise estimate
– data from individuals elsewhere may be
very misleading
• A number of very large data sets have
been developed and published
Copyright © 2004 David
Empirical Distributions
• Challenge: when there’s very little data
• Example of two data points
– uniform distribution?
– triangular distribution?
– not a hypothetical issue…is an ongoing
debate in the literature
• Key is to state clearly your assumptions
• Better yet…do it both ways!
Copyright © 2004 David
Which Distribution?
Potency(probabilityof
irritationpermgchemical)
0.05 0.10
Potency(probabilityof
irritationpermgchemical)
0.05 0.10
Potency(probabilityof
irritationpermgchemical)
0.05 0.10
Potency(probabilityof
irritationpermgchemical)
0.05 0.10
Copyright © 2004 David
Random number generation
• Shouldn’t be an issue…@Risk and
Crystal Ball are both good to at least
10,000 iterations
• 10,000 iterations is typically enough,
even with many input distributions
Copyright © 2004 David
Theoretical Distributions
• Appropriate when there’s some
mechanistic or probabilistic basis
• Example: small sample (say 50 test
animals) establishes a binomial
distribution
• Lognormal distributions show up often
in nature
Copyright © 2004 David
Some Caveats
• Beware believing that you’ve really
“understood” uncertainty
• Beware: misapplication
– ignorance at best
– fraudulent at worst…porcine hoof blister
Copyright © 2004 David
Example (after Finkel)
Alar “versus” aflatoxin
Exposure has two elements
Peanut butter consumption
aflatoxin residue
Juice consumption
Alar/UDMH residue
Potency has one element
aflatoxin potency UDMH potency
Risk =
(consumption × residue × potency)/body weight
Copyright © 2004 David
Inputs for Alar & aflatoxin
Variable Units Mean 5th
%ile 95th
%ile Percentile location
of the mean.
Peanut butter
consumption
g/day 11.38 2.00 31.86 66
Apple juice
consumption
g/day 136.84 16.02 430.02 69
aflatoxin residue µg/g 2.82 1.00 6.50 61
UDMH residue µg/g 13.75 0.5 42.00 67
aflatoxin
potency
kg-
day/mg
17.5 4.02 28.23 61
UDMH potency kg-
day/mg
0.49 0.00 0.85 43
Copyright © 2004 David
Alar and aflatoxin point
estimates
• aflatoxin estimates:
– Mean
= 0.028
– Conservative = 0.29
• Alar (UDMH) estimates:
– Mean = 0.046
– Conservative = 0.77
kg
g
mg
mg
daykg
g
g
day
g
20
1000
5.1782.238.11
µ
µ
×
−
××=
Copyright © 2004 David
Alar and aflatoxin Monte Carlo
• 10,000 runs
• Generate distributions
– (don’t allow 0)
• Don’t expect correlation
Copyright © 2004 David
Aflatoxin and Alar Monte Carlo
results (point values)
Aflatoxin
Analytical Monte Carlo
Mean 0.028 0.028
Conservative 0.29 0.095
Alar
Analytical Monte Carlo
Mean 0.046 0.046
Conservative 0.77 0.18
Copyright © 2004 David
Aflatoxin and Alar Monte Carlo
results (distributions)
Frequency Chart
Certainty is 98.05% from -Infinity to 0.1495
.000
.004
.008
.012
.016
0
40.75
81.5
122.2
163
0 0.0375 0.075 0.1125 0.15
10,000 Trials 192 Outliers
Forecast: peanut butter risk
Copyright © 2004 David
Aflatoxin and Alar Monte Carlo
results (distributions)
Frequency Chart
Certainty is 93.93% from -Infinity to 0.15
.000
.026
.051
.077
.102
0
255
510
765
1020
0 0.1125 0.225 0.3375 0.45
10,000 Trials 125 Outliers
Forecast: apple juice risk
Copyright © 2004 David
Aflatoxin and Alar Monte Carlo
results (distributions)
Cumulative Chart
Certainty is 98.04% from -Infinity to 0.1495
.000
.250
.500
.750
1.000
0
10000
0 0.0375 0.075 0.1125 0.15
10,000 Trials 192 Outliers
Forecast: peanut butter risk
Copyright © 2004 David
Aflatoxin and Alar Monte Carlo
results (distributions)
Cumulative Chart
Certainty is 93.93% from -Infinity to 0.15
.000
.250
.500
.750
1.000
0
10000
0 0.1125 0.225 0.3375 0.45
10,000 Trials 125 Outliers
Forecast: apple juice risk
Copyright © 2004 David
Aflatoxin and Alar Monte Carlo
results (distributions)
Frequency distribution--comparison
.000
.026
.051
.077
.102
0 0.1125 0.225 0.3375 0.45
peanut butter risk
apple juice risk
Overlay Chart
Copyright © 2004 David
Aflatoxin and Alar Monte Carlo
results (distributions)
Cumulative distribution--comparison
.000
.250
.500
.750
1.000
0 0.1125 0.225 0.3375 0.45
peanut butter risk
apple juice risk
Overlay Chart
Copyright © 2004 David
References and Further
Reading
Burmaster, D.E and Anderson, P.D. (1994). “Principles of good practice for
the use of Monte Carlo techniques in human health and ecological risk
assessments.” Risk Analysis 14(4):447-81
Finkel, A (1995). “Towards less misleading comparisons of uncertain risks:
the example of aflatoxin and Alar.” Environmental Health Perspectives
103(4):376-85.
Kammen, D.M and Hassenzahl D.M. (1999). Should We Risk It? Exploring
Environmental, Health and Technological Problem Solving. Princeton
University Press, Princeton, NJ.
Thompson, K. M., D. E. Burmaster, et al. (1992). "Monte Carlo techniques
for uncertainty analysis in public health risk assessments." Risk
Analysis 12(1): 53-63.
Vose, David (1997) “Monte Carlo Risk Analysis Modeling” in Molak, Ed.,
Fundamentals of Risk Analysis and Risk Management.

More Related Content

Similar to Monte carlo

An Introduction to Bayesisan Decision Analysis
An Introduction to Bayesisan Decision Analysis An Introduction to Bayesisan Decision Analysis
An Introduction to Bayesisan Decision Analysis Medgate Inc.
 
160122 pva mari trends presentation 2016 rev 2
160122 pva mari trends presentation 2016 rev 2160122 pva mari trends presentation 2016 rev 2
160122 pva mari trends presentation 2016 rev 2Mark Miller
 
ESCRS Presentation
ESCRS PresentationESCRS Presentation
ESCRS Presentationlenstec
 
CHEM526 fccu Lahore analytical chemistry notes in a presentation
CHEM526 fccu Lahore analytical chemistry notes in a presentationCHEM526 fccu Lahore analytical chemistry notes in a presentation
CHEM526 fccu Lahore analytical chemistry notes in a presentationBakhitaMaryam1
 
Cutting costs within cutting edge EAS REGAINER technology in N-protein determ...
Cutting costs within cutting edge EAS REGAINER technology in N-protein determ...Cutting costs within cutting edge EAS REGAINER technology in N-protein determ...
Cutting costs within cutting edge EAS REGAINER technology in N-protein determ...Elementar Analysensysteme GmbH
 
Elementar presentatie van het webinar: N / eiwitbepaling met behulp van de E...
 Elementar presentatie van het webinar: N / eiwitbepaling met behulp van de E... Elementar presentatie van het webinar: N / eiwitbepaling met behulp van de E...
Elementar presentatie van het webinar: N / eiwitbepaling met behulp van de E...Salm en Kipp bv Laboratoriumapparatuur
 
Risk assessment and management in britain
Risk assessment and management in britainRisk assessment and management in britain
Risk assessment and management in britainRetired
 
Chst math 2019 w answers
Chst math 2019 w answersChst math 2019 w answers
Chst math 2019 w answersJohn Newquist
 
EMOD Optimization Presentation School.pptx
EMOD Optimization Presentation School.pptxEMOD Optimization Presentation School.pptx
EMOD Optimization Presentation School.pptxAliElMoselhy
 
Emerging Hazards: Renewables and Microgrids, U.S. Department of Energy, Energ...
Emerging Hazards: Renewables and Microgrids, U.S. Department of Energy, Energ...Emerging Hazards: Renewables and Microgrids, U.S. Department of Energy, Energ...
Emerging Hazards: Renewables and Microgrids, U.S. Department of Energy, Energ...AEI / Affiliated Engineers
 
Background soil dioxins 2010 San Antonio Dioxin Conference
Background soil dioxins 2010 San Antonio Dioxin ConferenceBackground soil dioxins 2010 San Antonio Dioxin Conference
Background soil dioxins 2010 San Antonio Dioxin ConferenceChemistry Matters Inc.
 
205250 crystall ball
205250 crystall ball205250 crystall ball
205250 crystall ballp6academy
 
Modern Particle Characterization Techniques Series: Laser Diffraction
Modern Particle Characterization Techniques Series: Laser DiffractionModern Particle Characterization Techniques Series: Laser Diffraction
Modern Particle Characterization Techniques Series: Laser DiffractionHORIBA Particle
 
Quality Measurements Using NIR/MIR Spectroscopy: A Rotten Apple Could Turn Yo...
Quality Measurements Using NIR/MIR Spectroscopy: A Rotten Apple Could Turn Yo...Quality Measurements Using NIR/MIR Spectroscopy: A Rotten Apple Could Turn Yo...
Quality Measurements Using NIR/MIR Spectroscopy: A Rotten Apple Could Turn Yo...TechRentals
 
DOE Applications in Process Chemistry Presentation
DOE Applications in Process Chemistry PresentationDOE Applications in Process Chemistry Presentation
DOE Applications in Process Chemistry Presentationsaweissman
 
Kieran Laxen - Assessing the impacts of short-term power generation - DMUG17
Kieran Laxen - Assessing the impacts of short-term power generation - DMUG17Kieran Laxen - Assessing the impacts of short-term power generation - DMUG17
Kieran Laxen - Assessing the impacts of short-term power generation - DMUG17IES / IAQM
 

Similar to Monte carlo (20)

An Introduction to Bayesisan Decision Analysis
An Introduction to Bayesisan Decision Analysis An Introduction to Bayesisan Decision Analysis
An Introduction to Bayesisan Decision Analysis
 
160122 pva mari trends presentation 2016 rev 2
160122 pva mari trends presentation 2016 rev 2160122 pva mari trends presentation 2016 rev 2
160122 pva mari trends presentation 2016 rev 2
 
ESCRS Presentation
ESCRS PresentationESCRS Presentation
ESCRS Presentation
 
CHEM526 fccu Lahore analytical chemistry notes in a presentation
CHEM526 fccu Lahore analytical chemistry notes in a presentationCHEM526 fccu Lahore analytical chemistry notes in a presentation
CHEM526 fccu Lahore analytical chemistry notes in a presentation
 
ALT
ALTALT
ALT
 
A project on
A project onA project on
A project on
 
Cutting costs within cutting edge EAS REGAINER technology in N-protein determ...
Cutting costs within cutting edge EAS REGAINER technology in N-protein determ...Cutting costs within cutting edge EAS REGAINER technology in N-protein determ...
Cutting costs within cutting edge EAS REGAINER technology in N-protein determ...
 
Elementar presentatie van het webinar: N / eiwitbepaling met behulp van de E...
 Elementar presentatie van het webinar: N / eiwitbepaling met behulp van de E... Elementar presentatie van het webinar: N / eiwitbepaling met behulp van de E...
Elementar presentatie van het webinar: N / eiwitbepaling met behulp van de E...
 
Risk assessment and management in britain
Risk assessment and management in britainRisk assessment and management in britain
Risk assessment and management in britain
 
Chst math 2019 w answers
Chst math 2019 w answersChst math 2019 w answers
Chst math 2019 w answers
 
EMOD Optimization Presentation School.pptx
EMOD Optimization Presentation School.pptxEMOD Optimization Presentation School.pptx
EMOD Optimization Presentation School.pptx
 
Forecasting Uncertainty - Obermeyer Case Study
Forecasting Uncertainty - Obermeyer Case StudyForecasting Uncertainty - Obermeyer Case Study
Forecasting Uncertainty - Obermeyer Case Study
 
Emerging Hazards: Renewables and Microgrids, U.S. Department of Energy, Energ...
Emerging Hazards: Renewables and Microgrids, U.S. Department of Energy, Energ...Emerging Hazards: Renewables and Microgrids, U.S. Department of Energy, Energ...
Emerging Hazards: Renewables and Microgrids, U.S. Department of Energy, Energ...
 
Error 2015 lamichhaneji
Error 2015 lamichhanejiError 2015 lamichhaneji
Error 2015 lamichhaneji
 
Background soil dioxins 2010 San Antonio Dioxin Conference
Background soil dioxins 2010 San Antonio Dioxin ConferenceBackground soil dioxins 2010 San Antonio Dioxin Conference
Background soil dioxins 2010 San Antonio Dioxin Conference
 
205250 crystall ball
205250 crystall ball205250 crystall ball
205250 crystall ball
 
Modern Particle Characterization Techniques Series: Laser Diffraction
Modern Particle Characterization Techniques Series: Laser DiffractionModern Particle Characterization Techniques Series: Laser Diffraction
Modern Particle Characterization Techniques Series: Laser Diffraction
 
Quality Measurements Using NIR/MIR Spectroscopy: A Rotten Apple Could Turn Yo...
Quality Measurements Using NIR/MIR Spectroscopy: A Rotten Apple Could Turn Yo...Quality Measurements Using NIR/MIR Spectroscopy: A Rotten Apple Could Turn Yo...
Quality Measurements Using NIR/MIR Spectroscopy: A Rotten Apple Could Turn Yo...
 
DOE Applications in Process Chemistry Presentation
DOE Applications in Process Chemistry PresentationDOE Applications in Process Chemistry Presentation
DOE Applications in Process Chemistry Presentation
 
Kieran Laxen - Assessing the impacts of short-term power generation - DMUG17
Kieran Laxen - Assessing the impacts of short-term power generation - DMUG17Kieran Laxen - Assessing the impacts of short-term power generation - DMUG17
Kieran Laxen - Assessing the impacts of short-term power generation - DMUG17
 

Recently uploaded

WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service - Bandra F...
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service -  Bandra F...WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service -  Bandra F...
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service - Bandra F...Pooja Nehwal
 
Call Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Dubai Call Girls O528786472 Call Girls In Dubai Wisteria
Dubai Call Girls O528786472 Call Girls In Dubai WisteriaDubai Call Girls O528786472 Call Girls In Dubai Wisteria
Dubai Call Girls O528786472 Call Girls In Dubai WisteriaUnited Arab Emirates
 
定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一ss ss
 
Call Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up Number
Call Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up NumberCall Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up Number
Call Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up NumberMs Riya
 
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...Suhani Kapoor
 
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai Gaped
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai GapedCall Girls Dubai Slut Wife O525547819 Call Girls Dubai Gaped
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai Gapedkojalkojal131
 
Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...
Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...
Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...Pooja Nehwal
 
9004554577, Get Adorable Call Girls service. Book call girls & escort service...
9004554577, Get Adorable Call Girls service. Book call girls & escort service...9004554577, Get Adorable Call Girls service. Book call girls & escort service...
9004554577, Get Adorable Call Girls service. Book call girls & escort service...Pooja Nehwal
 
Call Girls Delhi {Rohini} 9711199012 high profile service
Call Girls Delhi {Rohini} 9711199012 high profile serviceCall Girls Delhi {Rohini} 9711199012 high profile service
Call Girls Delhi {Rohini} 9711199012 high profile servicerehmti665
 
(ZARA) Call Girls Jejuri ( 7001035870 ) HI-Fi Pune Escorts Service
(ZARA) Call Girls Jejuri ( 7001035870 ) HI-Fi Pune Escorts Service(ZARA) Call Girls Jejuri ( 7001035870 ) HI-Fi Pune Escorts Service
(ZARA) Call Girls Jejuri ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Presentation.pptxjnfoigneoifnvoeifnvklfnvf
Presentation.pptxjnfoigneoifnvoeifnvklfnvfPresentation.pptxjnfoigneoifnvoeifnvklfnvf
Presentation.pptxjnfoigneoifnvoeifnvklfnvfchapmanellie27
 
High Profile Call Girls In Andheri 7738631006 Call girls in mumbai Mumbai ...
High Profile Call Girls In Andheri 7738631006 Call girls in mumbai  Mumbai ...High Profile Call Girls In Andheri 7738631006 Call girls in mumbai  Mumbai ...
High Profile Call Girls In Andheri 7738631006 Call girls in mumbai Mumbai ...Pooja Nehwal
 
(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Service
(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Service(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Service
(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》o8wvnojp
 
VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...
VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...
VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...Call Girls in Nagpur High Profile
 
Thane Escorts, (Pooja 09892124323), Thane Call Girls
Thane Escorts, (Pooja 09892124323), Thane Call GirlsThane Escorts, (Pooja 09892124323), Thane Call Girls
Thane Escorts, (Pooja 09892124323), Thane Call GirlsPooja Nehwal
 
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样qaffana
 

Recently uploaded (20)

WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service - Bandra F...
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service -  Bandra F...WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service -  Bandra F...
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service - Bandra F...
 
Call Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur Escorts
 
Dubai Call Girls O528786472 Call Girls In Dubai Wisteria
Dubai Call Girls O528786472 Call Girls In Dubai WisteriaDubai Call Girls O528786472 Call Girls In Dubai Wisteria
Dubai Call Girls O528786472 Call Girls In Dubai Wisteria
 
定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一
 
Call Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up Number
Call Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up NumberCall Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up Number
Call Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up Number
 
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...
 
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai Gaped
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai GapedCall Girls Dubai Slut Wife O525547819 Call Girls Dubai Gaped
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai Gaped
 
Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...
Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...
Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...
 
9004554577, Get Adorable Call Girls service. Book call girls & escort service...
9004554577, Get Adorable Call Girls service. Book call girls & escort service...9004554577, Get Adorable Call Girls service. Book call girls & escort service...
9004554577, Get Adorable Call Girls service. Book call girls & escort service...
 
9953330565 Low Rate Call Girls In Jahangirpuri Delhi NCR
9953330565 Low Rate Call Girls In Jahangirpuri  Delhi NCR9953330565 Low Rate Call Girls In Jahangirpuri  Delhi NCR
9953330565 Low Rate Call Girls In Jahangirpuri Delhi NCR
 
Call Girls Delhi {Rohini} 9711199012 high profile service
Call Girls Delhi {Rohini} 9711199012 high profile serviceCall Girls Delhi {Rohini} 9711199012 high profile service
Call Girls Delhi {Rohini} 9711199012 high profile service
 
(ZARA) Call Girls Jejuri ( 7001035870 ) HI-Fi Pune Escorts Service
(ZARA) Call Girls Jejuri ( 7001035870 ) HI-Fi Pune Escorts Service(ZARA) Call Girls Jejuri ( 7001035870 ) HI-Fi Pune Escorts Service
(ZARA) Call Girls Jejuri ( 7001035870 ) HI-Fi Pune Escorts Service
 
Presentation.pptxjnfoigneoifnvoeifnvklfnvf
Presentation.pptxjnfoigneoifnvoeifnvklfnvfPresentation.pptxjnfoigneoifnvoeifnvklfnvf
Presentation.pptxjnfoigneoifnvoeifnvklfnvf
 
High Profile Call Girls In Andheri 7738631006 Call girls in mumbai Mumbai ...
High Profile Call Girls In Andheri 7738631006 Call girls in mumbai  Mumbai ...High Profile Call Girls In Andheri 7738631006 Call girls in mumbai  Mumbai ...
High Profile Call Girls In Andheri 7738631006 Call girls in mumbai Mumbai ...
 
(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Service
(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Service(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Service
(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Service
 
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
 
VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...
VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...
VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...
 
🔝 9953056974🔝 Delhi Call Girls in Ajmeri Gate
🔝 9953056974🔝 Delhi Call Girls in Ajmeri Gate🔝 9953056974🔝 Delhi Call Girls in Ajmeri Gate
🔝 9953056974🔝 Delhi Call Girls in Ajmeri Gate
 
Thane Escorts, (Pooja 09892124323), Thane Call Girls
Thane Escorts, (Pooja 09892124323), Thane Call GirlsThane Escorts, (Pooja 09892124323), Thane Call Girls
Thane Escorts, (Pooja 09892124323), Thane Call Girls
 
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样
 

Monte carlo

  • 1. Copyright © 2004 David Monte Carlo Analysis David M. Hassenzahl
  • 2. Copyright © 2004 David Purpose of lecture • Introduce Monte Carlo Analysis as a tool for managing uncertainty • Demonstrate how it can be used in the policy setting • Discuss its uses and shortcomings, and how they are relevant to policy making processes
  • 3. Copyright © 2004 David What is Monte Carlo Analysis? It is a tool for combining distributions, and thereby propagating more than just summary statistics It uses random number generation, rather than analytic calculations It is increasingly popular due to high speed personal computers
  • 4. Copyright © 2004 David Background/History • “Monte Carlo” from the gambling town of the same name (no surprise) • First applied in 1947 to model diffusion of neutrons through fissile materials • Limited use because time consuming • Much more common since late 80’s • Too easy now? • Name…is EPA “gambling” with people’s lives (anecdotal, but reasonable).
  • 5. Copyright © 2004 David Why Perform Monte Carlo Analysis? • Combining distributions • With more than two distributions, solving analytically is very difficult • Simple calculations lose information – Mean × mean = mean – 95% %ile × 95%ile ≠ 95%ile! – Gets “worse” with 3 or more distributions
  • 6. Copyright © 2004 David Monte Carlo Analysis • Takes an equation – example: Risk = probability × consequence • Instead of simple numbers, draws randomly from defined distributions • Multiplies the two, stores the answer • Repeats this over and over and over… • Then the set of results is displayed as a new, combined distribution
  • 7. Copyright © 2004 David Simple (hypothetical) example • Skin cream additive is an irritant • Many samples of cream provide information on concentration: – mean 0.02 mg chemical – standard dev. 0.005 mg chemical • Two tests show probability of irritation given application – low freq of effect per mg exposure = 5/100/mg – high freq of effect per mg exposure = 10/100/mg
  • 8. Copyright © 2004 David Analytical results • Risk = exposure × potency – Mean risk = 0.02 mg × 0.075 / mg = 0.0015 or 15 out of 10,000 applications will result in irritation
  • 9. Copyright © 2004 David Analytical results • “Conservative estimate” – Use upper 95th %ile Risk = 0.03 mg × 0.0975 / mg = 0.0029
  • 10. Copyright © 2004 David Monte Carlo: Visual example Exposure = normal(mean 0.02 mg, s.d. = 0.005 mg) potency = uniform (range 0.05 / mg to 0.10 / mg) 0.02 0.030.01 Exposure(mg chemical) Potency(probabilityof irritationpermgchemical) 0.05 0.10
  • 11. Copyright © 2004 David Random draw one p(irritate) = 0.0165 mg × 0.063/mg = 0.0010 0.02 0.030.01 Exposure(mg chemical) Potency(probabilityof irritationpermgchemical) 0.05 0.10 0.063 0.0165
  • 12. Copyright © 2004 David Random draw two p(irritate) = 0.0175 mg × 0.089 /mg = 0.0016 Summary: {0.0010, 0.0016} 0.02 0.030.01 Exposure(mg chemical) Potency(probabilityof irritationpermgchemical) 0.05 0.10 0.0890.0175
  • 13. Copyright © 2004 David Random draw three p(irritate) = 0.152 mg × 0.057 /mg = 0.0087 Summary: {0.0010, 0.0016, 0.00087} 0.02 0.030.01 Exposure(mg chemical) Potency(probabilityof irritationpermgchemical) 0.05 0.10 0.057 0.0152
  • 14. Copyright © 2004 David Random draw four p(irritate) = 0.0238 mg × 0.085 /mg = 0.0020 Summary: {0.0010, 0.0016, 0.00087, 0.0020} 0.02 0.030.01 Exposure(mg chemical) Potency(probabilityof irritationpermgchemical) 0.05 0.10 0.085 0.0238
  • 15. Copyright © 2004 David After ten random draws Summary {0.0010, 0.0016, 0.00087, 0.0020, 0.0011, 0.0018, 0.0024, 0.0016, 0.0015, 0.00062} mean 0.0014 standard deviation (0.00055)
  • 16. Copyright © 2004 David Using software • Could write this program using a random number generator • But, several software packages out there. • I use Crystal Ball – user friendly – customizable – r.n.g. good up to about 10,000 iterations
  • 17. Copyright © 2004 David 100 iterations (about two seconds) • Monte Carlo results – Mean 0.0016 – Standard Deviation 0.00048 – “Conservative” estimate 0.0026 • Compare to analytical results – Mean 0.0015 – standard deviation n/a – “Conservative” estimate 0.0029
  • 18. Copyright © 2004 David Summary chart - 100 trials Frequency Chart .000 .013 .025 .038 .050 0 1.25 2.5 3.75 5 0.00 0.00 0.00 0.00 0.00 100 Trials 1 Outlier Forecast: P(Irritation) 0.00161 0.003110.00103
  • 19. Copyright © 2004 David Summary - 10,000 trials • Monte Carlo results – Mean 0.0015 – Standard Deviation 0.000472 – “Conservative” estimate 0.0024 • Compare to analytical results – Mean 0.0015 – standard deviation n/a – “Conservative” estimate 0.0029
  • 20. Copyright © 2004 David Summary chart - 10,000 trials Frequency Chart .000 .006 .011 .017 .023 0 56.5 113 169.5 226 0.00 0.00 0.00 0.00 0.00 10,000 Trials 88 Outliers Forecast: P(Irritation) 0.00150 0.003310.00069 About 1.5 minutes run time
  • 21. Copyright © 2004 David Policy applications • When there are many distributional inputs • Concern about “excessive conservatism” – multiplying 95th percentiles – multiple exposures • Because we can • Bayesian calculations
  • 22. Copyright © 2004 David Issues: Sensitivity Analysis • Sensitivity analysis looks at which input distributions have the greatest effect on the eventual distribution • Helps to understand which parameters can both be influenced by policy and reduce risks • Helps understand when better data can be most valuable (information isn’t free…nor even cheap)
  • 23. Copyright © 2004 David Issues: Correlation • Two distributions are correlated when a change in one causes a change in another • Example: People who eat lots of peas may eat less broccoli (or may eat more…) • Usually doesn’t have much effect unless significant correlation (|ρ|>0.75)
  • 24. Copyright © 2004 David Generating Distributions • Invalid distributions create invalid results, which leads to inappropriate policies • Two options – empirical – theoretical
  • 25. Copyright © 2004 David Empirical Distributions • Most appropriate when developed for the issue at hand. • Example: local fish consumption – survey individuals or otherwise estimate – data from individuals elsewhere may be very misleading • A number of very large data sets have been developed and published
  • 26. Copyright © 2004 David Empirical Distributions • Challenge: when there’s very little data • Example of two data points – uniform distribution? – triangular distribution? – not a hypothetical issue…is an ongoing debate in the literature • Key is to state clearly your assumptions • Better yet…do it both ways!
  • 27. Copyright © 2004 David Which Distribution? Potency(probabilityof irritationpermgchemical) 0.05 0.10 Potency(probabilityof irritationpermgchemical) 0.05 0.10 Potency(probabilityof irritationpermgchemical) 0.05 0.10 Potency(probabilityof irritationpermgchemical) 0.05 0.10
  • 28. Copyright © 2004 David Random number generation • Shouldn’t be an issue…@Risk and Crystal Ball are both good to at least 10,000 iterations • 10,000 iterations is typically enough, even with many input distributions
  • 29. Copyright © 2004 David Theoretical Distributions • Appropriate when there’s some mechanistic or probabilistic basis • Example: small sample (say 50 test animals) establishes a binomial distribution • Lognormal distributions show up often in nature
  • 30. Copyright © 2004 David Some Caveats • Beware believing that you’ve really “understood” uncertainty • Beware: misapplication – ignorance at best – fraudulent at worst…porcine hoof blister
  • 31. Copyright © 2004 David Example (after Finkel) Alar “versus” aflatoxin Exposure has two elements Peanut butter consumption aflatoxin residue Juice consumption Alar/UDMH residue Potency has one element aflatoxin potency UDMH potency Risk = (consumption × residue × potency)/body weight
  • 32. Copyright © 2004 David Inputs for Alar & aflatoxin Variable Units Mean 5th %ile 95th %ile Percentile location of the mean. Peanut butter consumption g/day 11.38 2.00 31.86 66 Apple juice consumption g/day 136.84 16.02 430.02 69 aflatoxin residue µg/g 2.82 1.00 6.50 61 UDMH residue µg/g 13.75 0.5 42.00 67 aflatoxin potency kg- day/mg 17.5 4.02 28.23 61 UDMH potency kg- day/mg 0.49 0.00 0.85 43
  • 33. Copyright © 2004 David Alar and aflatoxin point estimates • aflatoxin estimates: – Mean = 0.028 – Conservative = 0.29 • Alar (UDMH) estimates: – Mean = 0.046 – Conservative = 0.77 kg g mg mg daykg g g day g 20 1000 5.1782.238.11 µ µ × − ××=
  • 34. Copyright © 2004 David Alar and aflatoxin Monte Carlo • 10,000 runs • Generate distributions – (don’t allow 0) • Don’t expect correlation
  • 35. Copyright © 2004 David Aflatoxin and Alar Monte Carlo results (point values) Aflatoxin Analytical Monte Carlo Mean 0.028 0.028 Conservative 0.29 0.095 Alar Analytical Monte Carlo Mean 0.046 0.046 Conservative 0.77 0.18
  • 36. Copyright © 2004 David Aflatoxin and Alar Monte Carlo results (distributions) Frequency Chart Certainty is 98.05% from -Infinity to 0.1495 .000 .004 .008 .012 .016 0 40.75 81.5 122.2 163 0 0.0375 0.075 0.1125 0.15 10,000 Trials 192 Outliers Forecast: peanut butter risk
  • 37. Copyright © 2004 David Aflatoxin and Alar Monte Carlo results (distributions) Frequency Chart Certainty is 93.93% from -Infinity to 0.15 .000 .026 .051 .077 .102 0 255 510 765 1020 0 0.1125 0.225 0.3375 0.45 10,000 Trials 125 Outliers Forecast: apple juice risk
  • 38. Copyright © 2004 David Aflatoxin and Alar Monte Carlo results (distributions) Cumulative Chart Certainty is 98.04% from -Infinity to 0.1495 .000 .250 .500 .750 1.000 0 10000 0 0.0375 0.075 0.1125 0.15 10,000 Trials 192 Outliers Forecast: peanut butter risk
  • 39. Copyright © 2004 David Aflatoxin and Alar Monte Carlo results (distributions) Cumulative Chart Certainty is 93.93% from -Infinity to 0.15 .000 .250 .500 .750 1.000 0 10000 0 0.1125 0.225 0.3375 0.45 10,000 Trials 125 Outliers Forecast: apple juice risk
  • 40. Copyright © 2004 David Aflatoxin and Alar Monte Carlo results (distributions) Frequency distribution--comparison .000 .026 .051 .077 .102 0 0.1125 0.225 0.3375 0.45 peanut butter risk apple juice risk Overlay Chart
  • 41. Copyright © 2004 David Aflatoxin and Alar Monte Carlo results (distributions) Cumulative distribution--comparison .000 .250 .500 .750 1.000 0 0.1125 0.225 0.3375 0.45 peanut butter risk apple juice risk Overlay Chart
  • 42. Copyright © 2004 David References and Further Reading Burmaster, D.E and Anderson, P.D. (1994). “Principles of good practice for the use of Monte Carlo techniques in human health and ecological risk assessments.” Risk Analysis 14(4):447-81 Finkel, A (1995). “Towards less misleading comparisons of uncertain risks: the example of aflatoxin and Alar.” Environmental Health Perspectives 103(4):376-85. Kammen, D.M and Hassenzahl D.M. (1999). Should We Risk It? Exploring Environmental, Health and Technological Problem Solving. Princeton University Press, Princeton, NJ. Thompson, K. M., D. E. Burmaster, et al. (1992). "Monte Carlo techniques for uncertainty analysis in public health risk assessments." Risk Analysis 12(1): 53-63. Vose, David (1997) “Monte Carlo Risk Analysis Modeling” in Molak, Ed., Fundamentals of Risk Analysis and Risk Management.