Mean and Standard Deviation 

The mean, μ, of N≥1 real numbers, A[1], ..., A[N], is their sum divided by N, i.e., (∑_{1..N} A[i])/N. Their variance is (∑_{1..N} (A[i]μ)^{2})/N, and their standard deviation, σ, is √variance. note that these quantities are always ≥0. The mean gives the "centre of gravity" (CG) of the numbers, and the standard deviation indicates how far they stray from the CG, on average. Both the mean and the standard deviation can be calculated on a single scan through A[ ] even though the mean is not known until the end of the scan:
 L.A., 1999
Notes


↑ © L. Allison, www.allisons.org/ll/ (or as otherwise indicated). Created with "vi (Linux)", charset=iso88591, fetched Wednesday, 18May2022 09:09:28 UTC. Free: Linux, Ubuntu operatingsys, OpenOffice officesuite, The GIMP ~photoshop, Firefox webbrowser, FlashBlock flash on/off. 