Function for calculating errors from the Monte Carlo simulations.
The standard deviation formula used to calculate the errors is the
square root of the bias-corrected variance, given by the formula:
__________________________
/ 1
sd = / ----- * sum({Xi - Xav}^2)
\/ n - 1
where
-
n is the total number of simulations.
-
Xi is the parameter value for simulation i.
-
Xav is the mean parameter value for all simulations.
- Parameters:
prune (float) - The amount to prune the upper and lower tails the distribution.
If set to 0.0, no simulations will be pruned. If set to 1.0, all
simulations will be pruned. This argument should be set 0.0 to
avoid meaningless statistics.
|