In addition to the average value ⟨f⟩ the other important quantity in a Monte-Carlo calculation is the variance σ2 and the standard deviation σ. We define first the variance of the integral with f for a uniform distribution in the interval x∈[0,1] to be σ2f=N∑i=1(f(xi)−⟨f⟩)2p(xi), and inserting the uniform distribution this yields σ2f=1NN∑i=1f(xi)2−(1NN∑i=1f(xi))2, or σ2f=(⟨f2⟩−⟨f⟩2).