SlideShare une entreprise Scribd logo
1  sur  30
Télécharger pour lire hors ligne
Monte Carlo and
quasi-Monte Carlo Integration
John D. Cook
M. D. Anderson Cancer Center
July 24, 2002
Trapezoid rule in one dimension

  Error bound proportional to product of
     Step size squared
     Second derivative of integrand
  N = number of function evaluations
  Step size h = N-1
  Error proportional to N-2
Simpson’s rule in one dimensions

  Error bound proportional to product of
     Step size to the fourth power
     Fourth derivative of integrand
  Step size h = N-1
  Error proportional to N-4
  All bets are off if integrand doesn’t have
  a fourth derivative.
Product rules
  In two dimensions, trapezoid error
  proportional to N-1
  In d dimensions, trapezoid error
  proportional to N-2/d.
  If 1-dimensional rule has error N-p,
  n-dimensional product has error N-p/d
Dimension in a nutshell
  Assume the number of integration
  points N is fixed, as well as the order of
  the integration rule p.
  Moving from 1 dimension to
  d dimensions divides the number of
  correct figures by d.
Monte Carlo to the rescue
  Error proportional to N-1/2,
  independent of dimension!
  Convergence is slow, but doesn’t get
  worse as dimension increases.
  Quadruple points to double accuracy.
How many figures can you get
with a million integration points?
Dimension   Trapezoid   Monte Carlo
1           12          3
2           6           3
3           4           3
4           3           3
6           2           3
12          1           3
Fine print
  Error estimate means something
  different for product rules than for MC.
  Proportionality factors other than
  number of points very important.
  Different factors improve performance
  of the two methods.
Interpreting error bounds
  Trapezoid rule has deterministic error
  bounds: if you know an upper bound on
  the second derivative, you can bracket
  the error.
  Monte Carlo error is probabilistic.
  Roughly a 2/3 chance of integral being
  within one standard deviation.
Proportionality factors
  Error bound in classical methods
  depends on maximum of derivatives.
  MC error proportional to variance of
  function, E[f2] – E[f]2
Contrasting proportionality
  Classical methods improve with smooth
  integrands
  Monte Carlo doesn’t depend on
  differentiability at all, but improves with
  overall “flatness”.
Good MC, bad trapezoid

        1


      0.8


      0.6


      0.4


      0.2



            1.5   2   2.5   3
Good trapeziod, bad MC

                    8


                    6


                    4


                    2



     -3   -2   -1       1   2   3
Simple Monte Carlo

 If xi is a sequence of independent samples from
 a uniform random variable
Importance Sampling

Suppose X is a random variable with PDF and xi is a
sequence of independent samples from X.
Variance reduction (example)
If an integrand f is well approximated by a PDF   that is
easy to sample from, use the equation




and apply importance sampling.

Variance of the integrand will be small, and so
convergence will be fast.
MC Good news / Bad news
 MC doesn’t get any worse when the
 integrand is not smooth.
 MC doesn’t get any better when the
 integrand is smooth.
 MC converges like N-1/2 in the worst
 case.
 MC converges like N-1/2 in the best case.
Quasi-random vs. Pseudo-random

  Both are deterministic.
  Pseudo-random numbers mimic the
  statistical properties of truly random
  numbers.
  Quasi-random numbers mimic the
  space-filling properties of random
  numbers, and improves on them.
120 Point Comparison

1 .0                                                1 .0



0 .8                                                0 .8



0 .6                                                0 .6



0 .4                                                0 .4



0 .2                                                0 .2



0 .0                                                0 .0
       0 .0   0 .2      0 .4   0 .6   0 .8   1 .0          0 .0   0 .2     0 .4   0 .6   0 .8   1 .0


                     Sobol’ Sequence                                     Excel’s PRNG
Quasi-random pros and cons
  The asymptotic convergence rate is more like
  N-1 than N-1/2.
  Actually, it’s more like log(N)dN-1.
  These bounds are very pessimistic in practice.
  QMC always beats MC eventually.
  Whether “eventually” is good enough
  depends on the problem and the particular
  QMC sequence.
MC-QMC compromise
 Randomized QMC
 Evaluate integral using a number of randomly
 shifted QMC series.
 Return average of estimates as integral.
 Return standard deviation of estimates as
 error estimate.
 Maybe better than MC or QMC!
 Can view as a variance reduction technique.
Some quasi-random sequences

  Halton – bit reversal in relatively prime
  bases
  Hammersly – finite sequence with one
  uniform component
  Sobol’ – common in practice, based on
  primitive polynomials over binary field
Sequence recommendations
 Experiment!
 Hammersley probably best for low
 dimensions if you know up front how many
 you’ll need. Must go through entire cycle or
 coverage will be uneven in one coordinate.
 Halton probably best for low dimensions.
 Sobol’ probably best for high dimensions.
Lattice Rules
  Nothing remotely random about them
  “Low discrepancy”
  Periodic functions on a unit cube
  There are standard transformations to
  reduce other integrals to this form
Lattice Example
Advantages and disadvantages
  Lattices work very well for smooth integrands
  Don’t work so well for discontinuous
  integrands
  Have good projections on to coordinate axes
  Finite sequences
  Good error posterior estimates
  Some a priori estimates, sometimes
  pessimistic
Software written
  QMC integration implemented for
  generic sequence generator
  Generators implemented: Sobol’,
  Halton, Hammersley
  Randomized QMC
  Lattice rules
  Randomized lattice rules
Randomization approaches
  Randomized lattice uses specified lattice size,
  randomize until error goal met
  RQMC uses specified number of
  randomizations, generate QMC until error
  goal met
  Lattice rules require this approach: they’re
  finite, and new ones found manually.
  QMC sequences can be expensive to compute
  (Halton, not Sobol) so compute once and
  reuse.
Future development
  Variance reduction. Good
  transformations make any technique
  work better.
  Need for lots of experiments.
Contact
  http://www.JohnDCook.com

Contenu connexe

Tendances

Hidden markov model
Hidden markov modelHidden markov model
Hidden markov modelUshaYadav24
 
Data Science - Part XIII - Hidden Markov Models
Data Science - Part XIII - Hidden Markov ModelsData Science - Part XIII - Hidden Markov Models
Data Science - Part XIII - Hidden Markov ModelsDerek Kane
 
Financial Networks III. Centrality and Systemic Importance
Financial Networks III. Centrality and Systemic ImportanceFinancial Networks III. Centrality and Systemic Importance
Financial Networks III. Centrality and Systemic ImportanceKimmo Soramaki
 
Markov analysis
Markov analysisMarkov analysis
Markov analysisganith2k13
 
Test-bench for Task Offloading Mechanisms: Modelling the rewards of Non-stati...
Test-bench for Task Offloading Mechanisms: Modelling the rewards of Non-stati...Test-bench for Task Offloading Mechanisms: Modelling the rewards of Non-stati...
Test-bench for Task Offloading Mechanisms: Modelling the rewards of Non-stati...Sarnava Konar
 
Grovers Algorithm
Grovers Algorithm Grovers Algorithm
Grovers Algorithm CaseyHaaland
 
Quantum algorithm for solving linear systems of equations
 Quantum algorithm for solving linear systems of equations Quantum algorithm for solving linear systems of equations
Quantum algorithm for solving linear systems of equationsXequeMateShannon
 
Hidden markov model explained
Hidden markov model explainedHidden markov model explained
Hidden markov model explainedDonghoon Park
 
Recurrent Neuron Network-from point of dynamic system & state machine
Recurrent Neuron Network-from point of dynamic system & state machineRecurrent Neuron Network-from point of dynamic system & state machine
Recurrent Neuron Network-from point of dynamic system & state machineGAYO3
 
Cryptanalysis with a Quantum Computer - An Exposition on Shor's Factoring Alg...
Cryptanalysis with a Quantum Computer - An Exposition on Shor's Factoring Alg...Cryptanalysis with a Quantum Computer - An Exposition on Shor's Factoring Alg...
Cryptanalysis with a Quantum Computer - An Exposition on Shor's Factoring Alg...Daniel Hutama
 

Tendances (20)

HIDDEN MARKOV MODEL AND ITS APPLICATION
HIDDEN MARKOV MODEL AND ITS APPLICATIONHIDDEN MARKOV MODEL AND ITS APPLICATION
HIDDEN MARKOV MODEL AND ITS APPLICATION
 
HMM (Hidden Markov Model)
HMM (Hidden Markov Model)HMM (Hidden Markov Model)
HMM (Hidden Markov Model)
 
Hidden markov model
Hidden markov modelHidden markov model
Hidden markov model
 
Hidden markov model
Hidden markov modelHidden markov model
Hidden markov model
 
Data Science - Part XIII - Hidden Markov Models
Data Science - Part XIII - Hidden Markov ModelsData Science - Part XIII - Hidden Markov Models
Data Science - Part XIII - Hidden Markov Models
 
Viterbi algorithm
Viterbi algorithmViterbi algorithm
Viterbi algorithm
 
Financial Networks III. Centrality and Systemic Importance
Financial Networks III. Centrality and Systemic ImportanceFinancial Networks III. Centrality and Systemic Importance
Financial Networks III. Centrality and Systemic Importance
 
Markov analysis
Markov analysisMarkov analysis
Markov analysis
 
Hidden markov model ppt
Hidden markov model pptHidden markov model ppt
Hidden markov model ppt
 
Quantum Fuzzy Logic
Quantum Fuzzy LogicQuantum Fuzzy Logic
Quantum Fuzzy Logic
 
Test-bench for Task Offloading Mechanisms: Modelling the rewards of Non-stati...
Test-bench for Task Offloading Mechanisms: Modelling the rewards of Non-stati...Test-bench for Task Offloading Mechanisms: Modelling the rewards of Non-stati...
Test-bench for Task Offloading Mechanisms: Modelling the rewards of Non-stati...
 
Hidden Markov Model
Hidden Markov Model Hidden Markov Model
Hidden Markov Model
 
Grovers Algorithm
Grovers Algorithm Grovers Algorithm
Grovers Algorithm
 
Quantum algorithm for solving linear systems of equations
 Quantum algorithm for solving linear systems of equations Quantum algorithm for solving linear systems of equations
Quantum algorithm for solving linear systems of equations
 
Hidden markov model explained
Hidden markov model explainedHidden markov model explained
Hidden markov model explained
 
A bit about мcmc
A bit about мcmcA bit about мcmc
A bit about мcmc
 
Recurrent Neuron Network-from point of dynamic system & state machine
Recurrent Neuron Network-from point of dynamic system & state machineRecurrent Neuron Network-from point of dynamic system & state machine
Recurrent Neuron Network-from point of dynamic system & state machine
 
Queueing theory
Queueing theoryQueueing theory
Queueing theory
 
Cryptanalysis with a Quantum Computer - An Exposition on Shor's Factoring Alg...
Cryptanalysis with a Quantum Computer - An Exposition on Shor's Factoring Alg...Cryptanalysis with a Quantum Computer - An Exposition on Shor's Factoring Alg...
Cryptanalysis with a Quantum Computer - An Exposition on Shor's Factoring Alg...
 
Markov chain-model
Markov chain-modelMarkov chain-model
Markov chain-model
 

En vedette

Sampling-Importance-Sampling을 이용한 선수 경기능력 측정
Sampling-Importance-Sampling을 이용한 선수 경기능력 측정Sampling-Importance-Sampling을 이용한 선수 경기능력 측정
Sampling-Importance-Sampling을 이용한 선수 경기능력 측정Mad Scientists
 
Sampling strategies for Sequential Monte Carlo (SMC) methods
Sampling strategies for Sequential Monte Carlo (SMC) methodsSampling strategies for Sequential Monte Carlo (SMC) methods
Sampling strategies for Sequential Monte Carlo (SMC) methodsStephane Senecal
 
Build Lightmap system
Build Lightmap systemBuild Lightmap system
Build Lightmap systemJaesik Hwang
 
The pink night by eddy.odp
The pink night by eddy.odpThe pink night by eddy.odp
The pink night by eddy.odpbarbelkarlsruhe
 
ABC Breakfast Club m Solar: Opret politikker for ind- og udfasning
ABC Breakfast Club m Solar: Opret politikker for ind- og udfasningABC Breakfast Club m Solar: Opret politikker for ind- og udfasning
ABC Breakfast Club m Solar: Opret politikker for ind- og udfasningABC Softwork
 
Basic ads should be content
Basic ads should be contentBasic ads should be content
Basic ads should be contentJan Godsk
 
Vct anafuertes2-120111093510
Vct anafuertes2-120111093510Vct anafuertes2-120111093510
Vct anafuertes2-120111093510Ana FUERTES SANZ
 
Handwork sarees online
Handwork sarees onlineHandwork sarees online
Handwork sarees onlineChrisPerez
 
Our exclusive wedding collection
Our exclusive wedding collectionOur exclusive wedding collection
Our exclusive wedding collectionChrisPerez
 
ABC Breakfast Club m Tresu: Effektiv lageroprydning
ABC Breakfast Club m Tresu: Effektiv lageroprydningABC Breakfast Club m Tresu: Effektiv lageroprydning
ABC Breakfast Club m Tresu: Effektiv lageroprydningABC Softwork
 
Resume A. Rinaldi (ENG-ME)
Resume A. Rinaldi (ENG-ME)Resume A. Rinaldi (ENG-ME)
Resume A. Rinaldi (ENG-ME)Arturo Rinaldi
 
Reiki simag
Reiki simagReiki simag
Reiki simagfrostiss
 
ABC Dream Team - Skab dit analytiske dream team, ABC Softwork best practice
ABC Dream Team - Skab dit analytiske dream team, ABC Softwork best practice ABC Dream Team - Skab dit analytiske dream team, ABC Softwork best practice
ABC Dream Team - Skab dit analytiske dream team, ABC Softwork best practice ABC Softwork
 
Rode Duivels - Red Devils
Rode Duivels - Red DevilsRode Duivels - Red Devils
Rode Duivels - Red DevilsNils Demanet
 
Hira ratan manek
Hira ratan manekHira ratan manek
Hira ratan manekfrostiss
 

En vedette (20)

Sampling-Importance-Sampling을 이용한 선수 경기능력 측정
Sampling-Importance-Sampling을 이용한 선수 경기능력 측정Sampling-Importance-Sampling을 이용한 선수 경기능력 측정
Sampling-Importance-Sampling을 이용한 선수 경기능력 측정
 
Sampling strategies for Sequential Monte Carlo (SMC) methods
Sampling strategies for Sequential Monte Carlo (SMC) methodsSampling strategies for Sequential Monte Carlo (SMC) methods
Sampling strategies for Sequential Monte Carlo (SMC) methods
 
Build Lightmap system
Build Lightmap systemBuild Lightmap system
Build Lightmap system
 
Heli presentation
Heli presentationHeli presentation
Heli presentation
 
The pink night by eddy.odp
The pink night by eddy.odpThe pink night by eddy.odp
The pink night by eddy.odp
 
Zend db
Zend dbZend db
Zend db
 
ABC Breakfast Club m Solar: Opret politikker for ind- og udfasning
ABC Breakfast Club m Solar: Opret politikker for ind- og udfasningABC Breakfast Club m Solar: Opret politikker for ind- og udfasning
ABC Breakfast Club m Solar: Opret politikker for ind- og udfasning
 
Basic ads should be content
Basic ads should be contentBasic ads should be content
Basic ads should be content
 
About him
About himAbout him
About him
 
Vct anafuertes2-120111093510
Vct anafuertes2-120111093510Vct anafuertes2-120111093510
Vct anafuertes2-120111093510
 
Handwork sarees online
Handwork sarees onlineHandwork sarees online
Handwork sarees online
 
App Marketing (원피스)
App Marketing (원피스)App Marketing (원피스)
App Marketing (원피스)
 
Our exclusive wedding collection
Our exclusive wedding collectionOur exclusive wedding collection
Our exclusive wedding collection
 
ABC Breakfast Club m Tresu: Effektiv lageroprydning
ABC Breakfast Club m Tresu: Effektiv lageroprydningABC Breakfast Club m Tresu: Effektiv lageroprydning
ABC Breakfast Club m Tresu: Effektiv lageroprydning
 
Resume A. Rinaldi (ENG-ME)
Resume A. Rinaldi (ENG-ME)Resume A. Rinaldi (ENG-ME)
Resume A. Rinaldi (ENG-ME)
 
Reiki simag
Reiki simagReiki simag
Reiki simag
 
Resumeนที
ResumeนทีResumeนที
Resumeนที
 
ABC Dream Team - Skab dit analytiske dream team, ABC Softwork best practice
ABC Dream Team - Skab dit analytiske dream team, ABC Softwork best practice ABC Dream Team - Skab dit analytiske dream team, ABC Softwork best practice
ABC Dream Team - Skab dit analytiske dream team, ABC Softwork best practice
 
Rode Duivels - Red Devils
Rode Duivels - Red DevilsRode Duivels - Red Devils
Rode Duivels - Red Devils
 
Hira ratan manek
Hira ratan manekHira ratan manek
Hira ratan manek
 

Similaire à Monte Carlo and quasi-Monte Carlo integration

Manifold Blurring Mean Shift algorithms for manifold denoising, report, 2012
Manifold Blurring Mean Shift algorithms for manifold denoising, report, 2012Manifold Blurring Mean Shift algorithms for manifold denoising, report, 2012
Manifold Blurring Mean Shift algorithms for manifold denoising, report, 2012Florent Renucci
 
第13回 配信講義 計算科学技術特論A(2021)
第13回 配信講義 計算科学技術特論A(2021)第13回 配信講義 計算科学技術特論A(2021)
第13回 配信講義 計算科学技術特論A(2021)RCCSRENKEI
 
1 d,2d laplace inversion of lr nmr
1 d,2d laplace inversion of lr nmr1 d,2d laplace inversion of lr nmr
1 d,2d laplace inversion of lr nmrAdam Lee Perelman
 
poster_Wang Junshan
poster_Wang Junshanposter_Wang Junshan
poster_Wang JunshanJunshan Wang
 
High-Dimensional Network Estimation using ECL
High-Dimensional Network Estimation using ECLHigh-Dimensional Network Estimation using ECL
High-Dimensional Network Estimation using ECLHPCC Systems
 
Chapter24rev1.pptPart 6Chapter 24Boundary-Valu.docx
Chapter24rev1.pptPart 6Chapter 24Boundary-Valu.docxChapter24rev1.pptPart 6Chapter 24Boundary-Valu.docx
Chapter24rev1.pptPart 6Chapter 24Boundary-Valu.docxtiffanyd4
 
Forecasting Default Probabilities in Emerging Markets and Dynamical Regula...
Forecasting Default Probabilities  in Emerging Markets and   Dynamical Regula...Forecasting Default Probabilities  in Emerging Markets and   Dynamical Regula...
Forecasting Default Probabilities in Emerging Markets and Dynamical Regula...SSA KPI
 
Graph Analysis Beyond Linear Algebra
Graph Analysis Beyond Linear AlgebraGraph Analysis Beyond Linear Algebra
Graph Analysis Beyond Linear AlgebraJason Riedy
 
Machine Learning Performance Evaluation: Tips and Pitfalls - Jose Hernandez O...
Machine Learning Performance Evaluation: Tips and Pitfalls - Jose Hernandez O...Machine Learning Performance Evaluation: Tips and Pitfalls - Jose Hernandez O...
Machine Learning Performance Evaluation: Tips and Pitfalls - Jose Hernandez O...PAPIs.io
 
NIPS2007: structured prediction
NIPS2007: structured predictionNIPS2007: structured prediction
NIPS2007: structured predictionzukun
 
llorma_jmlr copy
llorma_jmlr copyllorma_jmlr copy
llorma_jmlr copyGuy Lebanon
 
various methods for image segmentation
various methods for image segmentationvarious methods for image segmentation
various methods for image segmentationRaveesh Methi
 
Approximate ANCOVA
Approximate ANCOVAApproximate ANCOVA
Approximate ANCOVAStephen Senn
 

Similaire à Monte Carlo and quasi-Monte Carlo integration (20)

Group Project
Group ProjectGroup Project
Group Project
 
Manifold Blurring Mean Shift algorithms for manifold denoising, report, 2012
Manifold Blurring Mean Shift algorithms for manifold denoising, report, 2012Manifold Blurring Mean Shift algorithms for manifold denoising, report, 2012
Manifold Blurring Mean Shift algorithms for manifold denoising, report, 2012
 
Model Care96
Model Care96Model Care96
Model Care96
 
第13回 配信講義 計算科学技術特論A(2021)
第13回 配信講義 計算科学技術特論A(2021)第13回 配信講義 計算科学技術特論A(2021)
第13回 配信講義 計算科学技術特論A(2021)
 
1 d,2d laplace inversion of lr nmr
1 d,2d laplace inversion of lr nmr1 d,2d laplace inversion of lr nmr
1 d,2d laplace inversion of lr nmr
 
poster_Wang Junshan
poster_Wang Junshanposter_Wang Junshan
poster_Wang Junshan
 
High-Dimensional Network Estimation using ECL
High-Dimensional Network Estimation using ECLHigh-Dimensional Network Estimation using ECL
High-Dimensional Network Estimation using ECL
 
sbs.pdf
sbs.pdfsbs.pdf
sbs.pdf
 
Chapter24rev1.pptPart 6Chapter 24Boundary-Valu.docx
Chapter24rev1.pptPart 6Chapter 24Boundary-Valu.docxChapter24rev1.pptPart 6Chapter 24Boundary-Valu.docx
Chapter24rev1.pptPart 6Chapter 24Boundary-Valu.docx
 
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
 
CassIndTalk15g2
CassIndTalk15g2CassIndTalk15g2
CassIndTalk15g2
 
Forecasting Default Probabilities in Emerging Markets and Dynamical Regula...
Forecasting Default Probabilities  in Emerging Markets and   Dynamical Regula...Forecasting Default Probabilities  in Emerging Markets and   Dynamical Regula...
Forecasting Default Probabilities in Emerging Markets and Dynamical Regula...
 
Graph Analysis Beyond Linear Algebra
Graph Analysis Beyond Linear AlgebraGraph Analysis Beyond Linear Algebra
Graph Analysis Beyond Linear Algebra
 
Machine Learning Performance Evaluation: Tips and Pitfalls - Jose Hernandez O...
Machine Learning Performance Evaluation: Tips and Pitfalls - Jose Hernandez O...Machine Learning Performance Evaluation: Tips and Pitfalls - Jose Hernandez O...
Machine Learning Performance Evaluation: Tips and Pitfalls - Jose Hernandez O...
 
AllPosters
AllPostersAllPosters
AllPosters
 
NIPS2007: structured prediction
NIPS2007: structured predictionNIPS2007: structured prediction
NIPS2007: structured prediction
 
llorma_jmlr copy
llorma_jmlr copyllorma_jmlr copy
llorma_jmlr copy
 
EiB Seminar from Esteban Vegas, Ph.D.
EiB Seminar from Esteban Vegas, Ph.D. EiB Seminar from Esteban Vegas, Ph.D.
EiB Seminar from Esteban Vegas, Ph.D.
 
various methods for image segmentation
various methods for image segmentationvarious methods for image segmentation
various methods for image segmentation
 
Approximate ANCOVA
Approximate ANCOVAApproximate ANCOVA
Approximate ANCOVA
 

Plus de John Cook

Bayesian adaptive clinical trials: Promises and pitfalls
Bayesian adaptive clinical trials: Promises and pitfallsBayesian adaptive clinical trials: Promises and pitfalls
Bayesian adaptive clinical trials: Promises and pitfallsJohn Cook
 
Erasure Coding Costs and Benefits
Erasure Coding Costs and BenefitsErasure Coding Costs and Benefits
Erasure Coding Costs and BenefitsJohn Cook
 
Combining Intuition and Data
Combining Intuition and DataCombining Intuition and Data
Combining Intuition and DataJohn Cook
 
Fast coputation of Phi(x) inverse
Fast coputation of Phi(x) inverseFast coputation of Phi(x) inverse
Fast coputation of Phi(x) inverseJohn Cook
 
Bayesian hypothesis testing
Bayesian hypothesis testingBayesian hypothesis testing
Bayesian hypothesis testingJohn Cook
 
Bayesian clinical trials: software and logistics
Bayesian clinical trials: software and logisticsBayesian clinical trials: software and logistics
Bayesian clinical trials: software and logisticsJohn Cook
 

Plus de John Cook (6)

Bayesian adaptive clinical trials: Promises and pitfalls
Bayesian adaptive clinical trials: Promises and pitfallsBayesian adaptive clinical trials: Promises and pitfalls
Bayesian adaptive clinical trials: Promises and pitfalls
 
Erasure Coding Costs and Benefits
Erasure Coding Costs and BenefitsErasure Coding Costs and Benefits
Erasure Coding Costs and Benefits
 
Combining Intuition and Data
Combining Intuition and DataCombining Intuition and Data
Combining Intuition and Data
 
Fast coputation of Phi(x) inverse
Fast coputation of Phi(x) inverseFast coputation of Phi(x) inverse
Fast coputation of Phi(x) inverse
 
Bayesian hypothesis testing
Bayesian hypothesis testingBayesian hypothesis testing
Bayesian hypothesis testing
 
Bayesian clinical trials: software and logistics
Bayesian clinical trials: software and logisticsBayesian clinical trials: software and logistics
Bayesian clinical trials: software and logistics
 

Dernier

So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...itnewsafrica
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
Infrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platformsInfrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platformsYoss Cohen
 
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...Karmanjay Verma
 
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...BookNet Canada
 
Landscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfLandscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfAarwolf Industries LLC
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxfnnc6jmgwh
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesManik S Magar
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Karmanjay Verma
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 

Dernier (20)

So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
Infrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platformsInfrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platforms
 
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
 
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
 
Landscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfLandscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdf
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 

Monte Carlo and quasi-Monte Carlo integration

  • 1. Monte Carlo and quasi-Monte Carlo Integration John D. Cook M. D. Anderson Cancer Center July 24, 2002
  • 2. Trapezoid rule in one dimension Error bound proportional to product of  Step size squared  Second derivative of integrand N = number of function evaluations Step size h = N-1 Error proportional to N-2
  • 3. Simpson’s rule in one dimensions Error bound proportional to product of  Step size to the fourth power  Fourth derivative of integrand Step size h = N-1 Error proportional to N-4 All bets are off if integrand doesn’t have a fourth derivative.
  • 4. Product rules In two dimensions, trapezoid error proportional to N-1 In d dimensions, trapezoid error proportional to N-2/d. If 1-dimensional rule has error N-p, n-dimensional product has error N-p/d
  • 5. Dimension in a nutshell Assume the number of integration points N is fixed, as well as the order of the integration rule p. Moving from 1 dimension to d dimensions divides the number of correct figures by d.
  • 6. Monte Carlo to the rescue Error proportional to N-1/2, independent of dimension! Convergence is slow, but doesn’t get worse as dimension increases. Quadruple points to double accuracy.
  • 7. How many figures can you get with a million integration points? Dimension Trapezoid Monte Carlo 1 12 3 2 6 3 3 4 3 4 3 3 6 2 3 12 1 3
  • 8. Fine print Error estimate means something different for product rules than for MC. Proportionality factors other than number of points very important. Different factors improve performance of the two methods.
  • 9. Interpreting error bounds Trapezoid rule has deterministic error bounds: if you know an upper bound on the second derivative, you can bracket the error. Monte Carlo error is probabilistic. Roughly a 2/3 chance of integral being within one standard deviation.
  • 10. Proportionality factors Error bound in classical methods depends on maximum of derivatives. MC error proportional to variance of function, E[f2] – E[f]2
  • 11. Contrasting proportionality Classical methods improve with smooth integrands Monte Carlo doesn’t depend on differentiability at all, but improves with overall “flatness”.
  • 12. Good MC, bad trapezoid 1 0.8 0.6 0.4 0.2 1.5 2 2.5 3
  • 13. Good trapeziod, bad MC 8 6 4 2 -3 -2 -1 1 2 3
  • 14. Simple Monte Carlo If xi is a sequence of independent samples from a uniform random variable
  • 15. Importance Sampling Suppose X is a random variable with PDF and xi is a sequence of independent samples from X.
  • 16. Variance reduction (example) If an integrand f is well approximated by a PDF that is easy to sample from, use the equation and apply importance sampling. Variance of the integrand will be small, and so convergence will be fast.
  • 17. MC Good news / Bad news MC doesn’t get any worse when the integrand is not smooth. MC doesn’t get any better when the integrand is smooth. MC converges like N-1/2 in the worst case. MC converges like N-1/2 in the best case.
  • 18. Quasi-random vs. Pseudo-random Both are deterministic. Pseudo-random numbers mimic the statistical properties of truly random numbers. Quasi-random numbers mimic the space-filling properties of random numbers, and improves on them.
  • 19. 120 Point Comparison 1 .0 1 .0 0 .8 0 .8 0 .6 0 .6 0 .4 0 .4 0 .2 0 .2 0 .0 0 .0 0 .0 0 .2 0 .4 0 .6 0 .8 1 .0 0 .0 0 .2 0 .4 0 .6 0 .8 1 .0 Sobol’ Sequence Excel’s PRNG
  • 20. Quasi-random pros and cons The asymptotic convergence rate is more like N-1 than N-1/2. Actually, it’s more like log(N)dN-1. These bounds are very pessimistic in practice. QMC always beats MC eventually. Whether “eventually” is good enough depends on the problem and the particular QMC sequence.
  • 21. MC-QMC compromise Randomized QMC Evaluate integral using a number of randomly shifted QMC series. Return average of estimates as integral. Return standard deviation of estimates as error estimate. Maybe better than MC or QMC! Can view as a variance reduction technique.
  • 22. Some quasi-random sequences Halton – bit reversal in relatively prime bases Hammersly – finite sequence with one uniform component Sobol’ – common in practice, based on primitive polynomials over binary field
  • 23. Sequence recommendations Experiment! Hammersley probably best for low dimensions if you know up front how many you’ll need. Must go through entire cycle or coverage will be uneven in one coordinate. Halton probably best for low dimensions. Sobol’ probably best for high dimensions.
  • 24. Lattice Rules Nothing remotely random about them “Low discrepancy” Periodic functions on a unit cube There are standard transformations to reduce other integrals to this form
  • 26. Advantages and disadvantages Lattices work very well for smooth integrands Don’t work so well for discontinuous integrands Have good projections on to coordinate axes Finite sequences Good error posterior estimates Some a priori estimates, sometimes pessimistic
  • 27. Software written QMC integration implemented for generic sequence generator Generators implemented: Sobol’, Halton, Hammersley Randomized QMC Lattice rules Randomized lattice rules
  • 28. Randomization approaches Randomized lattice uses specified lattice size, randomize until error goal met RQMC uses specified number of randomizations, generate QMC until error goal met Lattice rules require this approach: they’re finite, and new ones found manually. QMC sequences can be expensive to compute (Halton, not Sobol) so compute once and reuse.
  • 29. Future development Variance reduction. Good transformations make any technique work better. Need for lots of experiments.