



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




6/23/2012 Nasir M Mirza^1
Room A-114, Department of Physics & Applied Mathematics, Pakistan Institute of Engineering & Applied Sciences, P.O. Nilore, Islamabad email: [email protected]
Course: NE-
6/23/2012 Nasir M Mirza^2
Assume that the calculation calls for the
history.
Assume that x is a quantity we calculate during the course of a Monte Carlo simulation, i.e. a scoring variable or simply a “score" or a \tally".
The output of a Monte Carlo calculation is usually useless unless we can ascribe a probable error to it.
The conventional approach to calculating the estimated error is as follows:
N
i
xi N
x 1
1
6/23/2012 Nasir M Mirza^4
It may require a lot of effort to stop after each history and compute the xi 's and x^2. The “direct error estimation" should be considered first and if it is not feasible, then an alternative that is nearly as good is “batch statistics error estimation". We present a procedure here
In many cases, the estimation of means and variances using the methods described in the previous section is not feasible. A score may be a complicated object or there may be many geometrical volume elements to consider.
Split the N histories into n statistical batches of w= N/n histories each. Note that n must be “large enough". A standard choice is n = 30. The accumulated quantity for each of these batches is called sumj as a sum for the j’th batch. The sumj is
w
i
1 Then compute the mean value of x
n
j
x x N sumj 1
6/23/2012 Nasir M Mirza^5
Estimate the variance associated with the distribution of the xj :
n
j
j
n
j
x j x x n
x x n
s 1
2 2 1
(^2 2) ( ) 1
1 ( ) 1
1
The estimated variance of x is the standard variance of the mean:
Report the final result as x = < x> ± s(
2
Remarks: We use above equations with n fixed (at say, 30) because it gives a reasonable estimate of the error in x.
Any large number will do, as long as we are within the range of applicability of the Central limit theorem. There is some evidence that the calculated statistic depends weakly on the choice of n. Therefore, it is important to report how your statistics were done when you publish your Monte Carlo results.
6/23/2012 Nasir M Mirza^7
The Error
n az
n z e n
a w z
1 ( 1 )!
( )
This method of combining errors effectively increases
the calculation. In view of the fact that the calculated
preferable (but only marginally so for the sake of
standard number of statistical batches.
This is easy to do by initializing the data arrays to the results of the previous run before the start of a new run.