Exploring Monte Carlo Methods

Similar documents
Fundamentals of Applied Probability and Random Processes

Monte Carlo Methods. Handbook of. University ofqueensland. Thomas Taimre. Zdravko I. Botev. Dirk P. Kroese. Universite de Montreal

An Introduction to Stochastic Modeling

TABLE OF CONTENTS CHAPTER 1 COMBINATORIAL PROBABILITY 1

Notation Precedence Diagram

Numerical Analysis for Statisticians

STOCHASTIC PROCESSES IN PHYSICS AND CHEMISTRY

Statistical Methods in HYDROLOGY CHARLES T. HAAN. The Iowa State University Press / Ames

COPYRIGHTED MATERIAL CONTENTS. Preface Preface to the First Edition

Applied Probability and Stochastic Processes

HANDBOOK OF APPLICABLE MATHEMATICS

Malvin H. Kalos, Paula A. Whitlock. Monte Carlo Methods. Second Revised and Enlarged Edition WILEY- BLACKWELL. WILEY-VCH Verlag GmbH & Co.

PART I INTRODUCTION The meaning of probability Basic definitions for frequentist statistics and Bayesian inference Bayesian inference Combinatorics

Geophysical Data Analysis: Discrete Inverse Theory

GEOPHYSICAL INVERSE THEORY AND REGULARIZATION PROBLEMS

Irr. Statistical Methods in Experimental Physics. 2nd Edition. Frederick James. World Scientific. CERN, Switzerland

Digital Control Engineering Analysis and Design

Fundamentals of Nuclear Reactor Physics

J. MEDHI STOCHASTIC MODELS IN QUEUEING THEORY

Stat 5101 Lecture Notes

System Dynamics for Engineering Students Concepts and Applications

Modelling Operational Risk Using Bayesian Inference

APPLIED PARTIAL DIFFERENTIAL EQUATIONS

CONTENTS. Preface List of Symbols and Notation

The Bayesian Choice. Christian P. Robert. From Decision-Theoretic Foundations to Computational Implementation. Second Edition.

Contents. Part I: Fundamentals of Bayesian Inference 1

Contents. Preface to Second Edition Preface to First Edition Abbreviations PART I PRINCIPLES OF STATISTICAL THINKING AND ANALYSIS 1

Ronald Christensen. University of New Mexico. Albuquerque, New Mexico. Wesley Johnson. University of California, Irvine. Irvine, California

Numerical Methods with MATLAB

GAME PHYSICS ENGINE DEVELOPMENT

STATISTICS; An Introductory Analysis. 2nd hidition TARO YAMANE NEW YORK UNIVERSITY A HARPER INTERNATIONAL EDITION

Monte-Carlo Methods and Stochastic Processes

Differential Equations with Mathematica

EEC 686/785 Modeling & Performance Evaluation of Computer Systems. Lecture 19

Foundations of Probability and Statistics

Karl-Rudolf Koch Introduction to Bayesian Statistics Second Edition

( ) ( ) Monte Carlo Methods Interested in. E f X = f x d x. Examples:

DIFFERENTIAL EQUATIONS, DYNAMICAL SYSTEMS, AND AN INTRODUCTION TO CHAOS

Outline. Simulation of a Single-Server Queueing System. EEC 686/785 Modeling & Performance Evaluation of Computer Systems.

Pattern Recognition and Machine Learning

Probability Distributions Columns (a) through (d)

Multilevel Statistical Models: 3 rd edition, 2003 Contents

Table of Contents [ntc]

The Finite Element Method for Solid and Structural Mechanics

DIFFERENTIAL EQUATIONS, DYNAMICAL SYSTEMS, AND AN INTRODUCTION TO CHAOS

Introduction to Bayesian Statistics and Markov Chain Monte Carlo Estimation. EPSY 905: Multivariate Analysis Spring 2016 Lecture #10: April 6, 2016

Mathematics for Engineers and Scientists

IDL Advanced Math & Stats Module

MATHEMATICAL HANDBOOK. Formulas and Tables

Probability for Statistics and Machine Learning

Generalized, Linear, and Mixed Models

GAME PHYSICS SECOND EDITION. дяййтаййг 1 *

Review for the previous lecture

Computational Fluid Dynamics

Linear Algebra and Probability

Univariate Discrete Distributions

Markov Chain Monte Carlo (MCMC)

Three-Dimensional Electron Microscopy of Macromolecular Assemblies

Bayesian Methods for Machine Learning

Appendix F. Computational Statistics Toolbox. The Computational Statistics Toolbox can be downloaded from:

STA 4273H: Statistical Machine Learning

Preface Introduction to Statistics and Data Analysis Overview: Statistical Inference, Samples, Populations, and Experimental Design The Role of

Markov Chain Monte Carlo Using the Ratio-of-Uniforms Transformation. Luke Tierney Department of Statistics & Actuarial Science University of Iowa

Parameter Estimation. William H. Jefferys University of Texas at Austin Parameter Estimation 7/26/05 1

Machine Learning using Bayesian Approaches

Fundamental Probability and Statistics

Probability and Stochastic Processes

Continuous Univariate Distributions

Part IA Probability. Definitions. Based on lectures by R. Weber Notes taken by Dexter Chua. Lent 2015

Feature Extraction and Image Processing

Distributions of Functions of Random Variables. 5.1 Functions of One Random Variable

Boundary. DIFFERENTIAL EQUATIONS with Fourier Series and. Value Problems APPLIED PARTIAL. Fifth Edition. Richard Haberman PEARSON

Contents LIST OF TABLES... LIST OF FIGURES... xvii. LIST OF LISTINGS... xxi PREFACE. ...xxiii

Integrated Arithmetic and Basic Algebra

in Computer Simulations for Bioinformatics

LINEAR AND NONLINEAR PROGRAMMING

Subjective and Objective Bayesian Statistics

Stochastic Processes. Theory for Applications. Robert G. Gallager CAMBRIDGE UNIVERSITY PRESS

2 Random Variable Generation

The Boltzmann Equation and Its Applications

Generating the Sample

Simulating Random Variables

Wave Propagation in Anisotropic, Anelastic, Porous and Electromagnetic Media

Contents. 1 Basic Equations 1. Acknowledgment. 1.1 The Maxwell Equations Constitutive Relations 11

STAT 302 Introduction to Probability Learning Outcomes. Textbook: A First Course in Probability by Sheldon Ross, 8 th ed.

Basics of Monte Carlo Simulation

Cheng Soon Ong & Christian Walder. Canberra February June 2018

Markov chain Monte Carlo

DETAILED CONTENTS PART I INTRODUCTION AND DESCRIPTIVE STATISTICS. 1. Introduction to Statistics

Probability Distribution Summary Dr. Mohammed Hawa October 2007

Introduction to Machine Learning CMU-10701

F denotes cumulative density. denotes probability density function; (.)

College Algebra. Third Edition. Concepts Through Functions. Michael Sullivan. Michael Sullivan, III. Chicago State University. Joliet Junior College

Distribution Fitting (Censored Data)

16 : Markov Chain Monte Carlo (MCMC)

An Introduction to Computer Simulation Methods

INVERTED KUMARASWAMY DISTRIBUTION: PROPERTIES AND ESTIMATION

Stream Ciphers and Number Theory

Probability and Estimation. Alan Moses

Principles of Bayesian Inference

Transcription:

Exploring Monte Carlo Methods William L Dunn J. Kenneth Shultis AMSTERDAM BOSTON HEIDELBERG LONDON NEW YORK OXFORD PARIS SAN DIEGO SAN FRANCISCO SINGAPORE SYDNEY TOKYO ELSEVIER Academic Press Is an imprint of Elsevier

Preface xv 1 Introduction 1 1.1 What Is Monte Carlo? 1 1.2 A Brief History of Monte Carlo 2 1.3 Monte Carlo as Quadrature 8 1.4 Monte Carlo as Simulation 12 1.5 Preview of Things to Come IS 1.6 Summary 16 2 The Basis of Monte Carlo 21 2.1 Single Continuous Random Variables 22 2.1.1 Probability Density Function 22 2.1.2 Cumulative Distribution Function 23 2.1.3 Some Example Distributions 23 2.1.4 Population Mean, Variance, and Standard Deviation 25 2.1.5 Sample Mean, Variance, and Standard Deviation 27 2.2 Discrete Random Variables 29 2.3 Multiple Random Variables 31 2.3.1 Two Random Variables 31 2.3.2 More Than Two Random Variables 33 2.3.3 Sums of Random Variables 34 2.4 The Law of Large Numbers 35 2.5 The Central Limit Theorem 37 2.6 Monte Carlo Quadrature 39 2.7 Monte Carlo Simulation 41 2.8 Summary 44 3 Pseudorandom Number Generators 47 3.1 Linear Congruential Generators 48 3.2 Structure of the Generated Random Numbers 49 3.3 Characteristics of Good Random Number Generators 52 3.4 Tests for Congruential Generators 52 3.4.1 Spectral Test 52 3.4.2 Number of HyperpJanes 53 3.4.3 Distance between Points 53 3.4.4 Other Tests 53

viii Contents 3.5 Practical Multiplicative Congruential Generators 54 3.5.1 Generators with m = 2" 54 3.5.2 Prime Modulus Generators 56 3.5.3 A Minimal Standard Congruential Generator 57 3.5.4 Coding the Minimal Standard 57 3.5.5 Deficiencies of the Minimal Standard Generator 59 3.5.6 Optimum Multipliers for Prime Modulus Generators 59 3.6 Shuffling a Generator's Output 60 3.7 Skipping Ahead 61 3.8 Combining Generators 62 3.8.1 Bit Mixing 62 3.8.2 The Wichmann-Hill Generator 62 3.8.3 The L'Ecuyer Generator 62 3.9 Other Random Number Generators 63 3.9.1 Multiple Recursive Generators 63 3.9.2 Lagged Fibonacci Generators 64 3.9.3 Add-with-Carry Generators 64 3.9.4 Inversive Congruential Generators 65 3.9.5 Nonlinear Congruential Generators 65 3.10 Summary 65 4 Sampling, Scoring, and Precision 69 4.1 Sampling 69 4.1.1 Inverse CDF Method for Continuous Variables 70 4.1.2 Inverse CDF Method for Discrete Variables 72 4.1.3 Rejection Method 74 4.1.4 Composition Method 76 4.1.5 Rectangle-Wedge-Tail Decomposition Method 78 4.1.6 Sampling from a Nearly Linear PDF 79 4.1.7 Composition-Rejection Method 79 4.1.8 Ratio of Uniforms Method 80 4.1.9 Sampling from a Joint Distribution 80 4.1.10 Sampling from Specific Distributions 81 4.2 Scoring 82 4.2.1 Statistical Tests to Assess Results 83 4.2.2 Scoring for "Successes-Over-Trials" Simulation 85 4.2.3 Use of Weights in Scoring 86 4.2.4 Scoring for Multidimensional Integrals 87 4.3 Accuracy and Precision 89 4.3.1 Factors Affecting Accuracy 89 4.3.2 Factors Affecting Precision 90 4.4 Summary 93 5 Variance Reduction Techniques 97 5.1 Use of Transformations 100

ix 5.2 Importance Sampling 101 5.2.1 Application to Monte Carlo Integration 105 5.3 Systematic Sampling 107 5.3.1 Comparison to Straightforward Sampling 109 5.3.2 Systematic Sampling to Evaluate an Integral 110 5.3.3 Systematic Sampling as Importance Sampling 110 5.4 Stratified Sampling 111 5.4.1 Comparison to Straightforward Sampling 112 5.4.2 Importance Sampling Versus Stratified Sampling 113 5.5 Correlated Sampling 113 5.5.1 Correlated Sampling With One Known Expected Value 114 5.5.2 Antithetic Variates 117 5.6 Partition of the Integration Volume 121 5.7 Reduction of Dimensionality 121 5.8 Russian Roulette and Splitting 122 5.8.1 Application to Monte Carlo Simulation 123 5.9 Combinations of Different Variance Reduction Techniques 124 5.10 Biased Estimators 125 5.11 Improved Monte Carlo Integration Schemes 126 5.11.1 Weighted Monte Carlo Integration 127 5.11.2 Monte Carlo Integration with Quasirandom Numbers 129 5.12 Summary 129 6 Markov Chain Monte Carlo 133 6.1 Markov Chains to the Rescue 133 6.1.1 Ergodic Markov Chains 136 6.1.2 The Metropolis-Hastings Algorithm 137 6.1.3 The Myth of Burn-in 143 6.1.4 The Proposal Distribution 144 6.1.5 Multidimensional Sampling 148 6.1.6 The Gibbs Sampler 152 6.2 Brief Review of Probability Concepts 153 6.3 Bayes Theorem 154 6.4 Inference and Decision Applications 159 6.4.1 Implementing MCMC with Data 161 6.5 Summary 166 7 Inverse Monte Carlo 171 7.1 Formulation of the Inverse Problem 173 7.1.1 Integral Formulation 174 7.1.2 Practical Formulation 175 7.1.3 Optimization Formulation 176 7.1.4 Monte Carlo Approaches to Solving Inverse Problems 176 7.2 Inverse Monte Carlo by Iteration 177 7.3 Symbolic Monte Carlo 178 7.3.1 Uncertainties in Retrieved Values 179

X Contents 7.3.2 The PDF Is Fully Known 181 7.3.3 The PDF Is Unknown 185 7.3.4 Unknown Parameter in Domain of x 194 7.4 Inverse Monte Carlo by Simulation 196 7.4.1 A Simple Two-Dimensional World 196 7.5 General Applications of IMC 199 7.6 Summary 199 8 Linear Operator Equations 8.1 Linear 203 Algebraic Equations 8.1.1 Solution of Linear Equations by Random Walks 204 8.1.2 Solution of the Adjoint Linear Equations by Random Walks 207 8.1.3 Solution of Linear Equations by Finite Random Walks 209 8.2 Linear Integral Equations 8.2.1 Monte Carlo Solution of a Simple Integral Equation 212 8.2.2 A More General Procedure for Integral Equations 214 8.3 Linear Differential Equations 216 8.3.1 Monte Carlo Solutions of Linear Differential Equations 217 8.3.2 Continuous Monte Carlo for Laplace's Equation 218 8.3.3 Generalization to Three Dimensions 220 8.3.4 Continuous Monte Carlo for Poisson's Equation 222 8.3.5 The Two-dimensional Helmholtz Equation 225 8.3.6 The Three-dimensional Helmholtz Equation 229 8.4 Eigenvalue Problems 230 8.5 Summary 231 203 211 9 The Fundamentals of Neutral Particle Transport 235 9.1 Description of the Radiation Field 236 9.1.1 Directions and Solid Angles 236 9.1.2 Particle Density 238 9.1.3 Flux Density 239 9.1.4 Fluence 240 9.1.5 Current Vector 241 9.2 Radiation Interactions with the Medium 242 9.2.1 Interaction Coefficient Macroscopic Cross Section 242 9.2.2 Attenuation of Uncollided Radiation 244 9.2.3 Average Travel Distance Before an Interaction 245 9.2.4 Scattering Interaction Coefficients 245 9.2.5 Microscopic Cross Sections 247 9.2.6 Reaction Rate Density 249 9.3 Transport Equation 251 9.3.1 Integral Forms of the Transport Equation 255 9.4 Adjoint Transport Equation 261 9.4.1 Derivation of the Adjoint Transport Equation 262

xi 9.4.2 Utility of the Adjoint Solution 263 9.5 Summary 265 10 Monte Carlo Simulation of Neutral Particle Transport 269 10.1 Basic Approach for Monte Carlo Transport Simulations 270 10.2 Geometry 270 10.2.1 Combinatorial Geometry 271 10.3 Sources 273 10.3.1 Isotropic Sources 273 10.4 Path-Length Estimation 274 10.4.1 Travel Distance in Each Cell 274 10.4.2 Convex versus Concave Cells 275 10.4.3 Effect of Computer Precision 275 10.5 Purely Absorbing Media 277 10.6 Type of Collision 278 10.6.1 Scattering Interactions 279 10.6.2 Photon Scattering from a Free Electron 283 10.6.3 Neutron Scattering 284 10.7 Time Dependence 285 10.8 Particle Weights 286 10.9 Scoring and Tallies 286 10.9.1 Fluence Averaged Over a Surface 287 10.9.2 Average Fluence in a Volume: Path-Length Estimator 288 10.9.3 Average Fluence in a Volume: Reaction-Density Estimator 289 10.9.4 Average Current Through a Surface 290 10.9.5 Fluence at a Point: Next-Event Estimator 290 10.9.6 Flow Through a Surface: Leakage Estimator 292 10.10 An Example of One-Speed Particle Transport 293 10.11 Monte Carlo Based on the Integral Transport Equation 296 10.11.1 Integral Transport Equation 296 10.11.2 Integral Equation Method as Simulation 299 10.12 Variance Reduction and Nonanalog Methods 300 10.12.1 Importance Sampling 300 10.12.2 Truncation Methods 302 10.12.3 Splitting and Russian Roulette 302 10.12.4 Implicit Absorption 303 10.12.5 Interaction Forcing 303 10.12.6 Exponential Transformation 303 10.13 Summary 304 A Some Common Probability Distributions 307 A.l Continuous Distributions 307 A. 1.1 Uniform Distribution 308 A. 1.2 Exponential Distribution 310 A. 1.3 Gamma Distribution 312

xii Contents A. 1.4 Beta Distribution 314 A. 1.5 Weibull Distribution 316 A. 1.6 Normal Distribution 317 A. 1.7 Lognormal Distribution 319 A. 1.8 Cauchy Distribution 319 A. 1.9 Chi-Squared Distribution 321 A.1.10 Student's t Distribution 322 A. 1.11 Pareto Distribution 323 A.2 Discrete Distributions 324 A.2.1 Bernoulli Distribution 325 A.2.2 Binomial Distribution 326 A.2.3 Geometric Distribution 329 A.2.4 Negative Binomial Distribution 329 A.2.5 Poisson Distribution 330 A. 3 Joint Distributions 333 A.3.1 Multivariate Normal Distribution 333 A. 3.2 Multinomial Distribution 334 B The Weak and Strong Laws of Large Numbers 337 B. 1 The Weak Law of Large Numbers 337 B. 2 The Strong Law of Large Numbers 339 B. 2.1 Difference Between the Weak and Strong Laws 339 B. 2.2 Other Subtleties 340 C Central Limit Theorem 341 C. l Moment Generating Functions 341 C. l.l Central Moments 342 C. 1.2 Some Properties of the MGF 342 C. 1.3 Uniqueness of the MGF 344 C. 2 Central Limit Theorem 344 D Some Popular Monte Carlo Codes for Particle Transport 347 D. l COG 347 D. l.l Current Version 347 D.1.2 Principal Authors 347 D.1.3 Operating Systems 347 D.1.4 Availability 347 D. 1.5 Applications 348 D.l.6 Significant Features 348 D.2 EGSnrc 349 D.2.1 Acronym and Current Version 349 D.2.2 Principal Authors 349 D.2.3 Operating Systems 349 D.2.4 Availability 349 D.2.5 Applications 349 D.2.6 Significant Features 350

xiii D.3 GEANT4 351 D.3.1 Current Version 351 D.3.2 Principal Author 351 D.3.3 Operating Systems 351 D.3.4 Availability 351 D.3.5 Applications 352 D.3.6 Significant Features 352 D.4 MCNP and MCNPX 353 D.4.1 Current Version and Availability 354 D.4.2 Principal Authors 354 D.4.3 Operating Systems 354 D.4.4 Applications 354 D.4.5 Significant Features 355 D.4.6 Additional Information 356 D.5 MCSHAPE 356 D.5.1 Acronyms 356 D.5.2 Current Version and Availability 356 D.5.3 Principal Authors 357 D.5.4 Operating Systems 357 D.5.5 Applications 357 D.5.6 Significant Features 358 D.6 PENELOPE 359 D.6.1 Acronyms and Current Version 359 D.6.2 Principal Authors 359 D.6.3 Operating Systems 359 D.6.4 Availability 359 D.6.5 Applications 359 D.6.6 Significant Features 361 D.7 SCALE 361 D.7.1 Acronyms 361 D.7.2 Current Version 362 D.7.3 Principal Author 362 D.7.4 Operating Systems 362 D.7.5 Availability 362 D.7.6 Applications 362 D.7.7 Significant Features 363 D.8 SRIM 364 D.8.1 Acronyms 364 D.8.2 Principal Authors 364 D.8.3 Operating Systems 364 D.8.4 Availability 364 D.8.5 Applications 364 D.8.6 Significant Features 365 D.9 TRIPOLI 365 D.9.1 Acronym and Current Version 365

D.9.2 Principal Authors 365 D.9.3 Operating Systems 366 D.9.4 Availability 366 D.9.5 Applications 366 D.9.6 Significant Features 366 E Minimal Standard Pseudorandom Number Generator 373 E.l FORTRAN77 373 E.2 FORTRAN90 374 E.3 Pascal 374 E.4 C and C++ 375 E.5 Programming Considerations 375 Index 377