Week 6 Monte Carlo Basics Flashcards
how are measurements typically represented
using its central value and its accompanying uncertainty
define the two types of error
statistical error - errors that arise from random fluctuation in the experiment
systematic error - errors that are consistent and constant for all data in an experiment and therefore the effect can’t be reduced by repeating the experiment
what are Monte Carlo methods
class of computational techniques that rely on using random sampling in order to solve problems
what are the 3 scenarios you would use Monte carlo
numerical integration
sampling from an arbitrary probability distribution
optimisation
what is the starting point for most monte carlo methods
use a sequence of uniformly distributed random numbers
what is the name of a commonly used pseudo-random number generator
linear congruential generator
LCG
what is the LCG equation
ni = (an_i-1 + c)mod(m)
what is the transformation used to obtain a uniform distribution
ri = ni / m
what is the multiplicative congruential generator
a special LCG case where the incremental value c is c=0
what is the procedure of crude monte carlo integration
generate n random numbers from a uniform distribution
evaluate the integral according to b-a/n Σf(xi)
what is the procedure for rejection sampling integration
generate a random number xi that is uniformly distributed between two limits a and b
generate a second random variable number ui
if ui satisfies ui < f(xi) / fmax then accept xi
what are the three advantages of Monte carlo integration
simplicity
unbiased
parallel by nature
what are the two disadvantages of monte carlo integration
slow rate of convergence
difficult to evaluate the uncertainty of the approximation
what are the 3 methods to generate a sample from an arbitrary probability distribution
Weighted sampling
Rejection sampling
Inverse transform sampling
how does weighted sampling work
generate a uniform random variable and weight each event by the factor w = f(x)