next up previous index
Next: Differential cross-section for Up: Method Previous: Method

MonteCarlo technique

We give a very short summary of the random number technique used here [,]. The method is a combination of the composition and rejection Monte Carlo methods. Suppose we wish to sample x from the distribution f(x) and the (normalised) probability density function can be written as f(x) = ∑i=1nαif i(x) gi(x)

where f i(x) are normalised density functions, αi> 0 and 0 ≤gi(x) ≤1 .

According to this method, x can sampled in the following way:

  1. select a random integer i such that (1≤i ≤n)

    with probability proportional to αi

  2. select a value x' from the distribution fi(x)

  3. calculate gi(x') and accept x = x' with probability gi(x') ;
  4. if x' is rejected restart from step 1.
It can be shown that this scheme is correct and the mean number of tries to accept a value is iαi .

In practice we have a good method of sampling from the distribution f(x) , if

Thus the different possible decompositions of the distribution f(x) are not equivalent from the practical point of view (e.g. they can be very different in computational speed) and it can be very useful to optimise the decomposition. A remark of practical importance is that if our distribution is not normalised (∫f(x)dx=C>0; C≈1 ), the method can be used in the same manner, the only difference is that the mean number of tries in this case is given by iαi/C .


Janne Saarela
Mon Apr 3 12:46:29 METDST 1995