The Monte Carlo estimate for the variance, , is given by the formula:

  • Generate Output Realizations: A set of independent random input realizations, , is generated. The model is then run for each of these inputs to get a corresponding set of output realizations, .

  • Estimate the Mean: The mean of the output is estimated by averaging the output realizations from the previous step. This mean estimate is denoted as .

  • Calculate Sum of Squared Differences: For each output , the squared difference between it and the estimated mean is calculated. These squared differences are then summed up for all realizations.

  • Normalize the Sum: The sum is multiplied by the factor . The notes mention that this factor is used to create an “un-biased estimator,” although using is also possible.