What is Variance?
Variance
The variance is a number that shows how far the values in a data set spread out from their mean.
The mean is the average. The variance tells you how much the values differ from it. A small variance means the values lie close to the mean. A large variance means they spread wide. You may also see the word as “varianza” in Spanish, “wariancja” in Polish, “rozptyl” in Czech and “szórásnégyzet” in Hungarian.
How to calculate it
- Find the mean of the values.
- Subtract the mean from each value. This gives the deviations.
- Square each deviation.
- Add the squares.
- Divide the sum.
The deviations of a data set always add up to zero. This is why the method squares them first. The variance is then the average of the squared deviations.
The formulas
For a whole population, divide by the number of values N:
σ² = Σ(xᵢ − μ)² / N
For a sample, divide by n − 1:
s² = Σ(xᵢ − x̄)² / (n − 1)
Here μ is the population mean and x̄ is the sample mean. The Guide to the expression of uncertainty in measurement (GUM) defines the variance of a random variable. It is the expectation of the squared centred random variable. The standard deviation is its positive square root.
Worked example
Five measurements are 3, 7, 5, 10 and 8.
- The mean is (3 + 7 + 5 + 10 + 8) / 5 = 33 / 5 = 6.6.
- The deviations are −3.6, 0.4, −1.6, 3.4 and 1.4.
- The squared deviations are 12.96, 0.16, 2.56, 11.56 and 1.96.
- Their sum is 29.2.
- The population variance is 29.2 / 5 = 5.84.
- The sample variance is 29.2 / 4 = 7.3.
The standard deviation is the square root. For the population it is √5.84 = 2.42. For the sample it is √7.3 = 2.70.
Sample or population
Use the population formula when your data are every value that you care about. Use the sample formula when your data are part of a larger group. It estimates the spread of the whole group.
The sample mean comes from the same data. Dividing by n − 1 gives a better estimate of the population variance than dividing by n. This divisor is called Bessel’s correction. The National Institute of Standards and Technology (NIST) and the GUM both use n − 1 for the variance of observations.
How to read it
- A variance of zero means that all values are equal.
- The variance is never negative, because it is an average of squares.
- The variance is in the square of the data unit. A spread in millimetres gives a variance in square millimetres.
- The standard deviation is the square root of the variance. It is in the original unit.
- Squaring gives large differences more weight, so one value far from the mean raises the variance a lot.
The standard deviation is easier to read, so people often quote it. See standard deviation for how to use it.
The 68-95-99 rule
For bell-shaped, symmetric data, about 68 percent of the values lie within one standard deviation of the mean. About 95 percent lie within two, and more than 99 percent lie within three. This rule does not apply to skewed data. For any data set, at least 75 percent of the values lie within two standard deviations.
For the example above, the sample standard deviation is 2.70. The rule would put about 68 percent of values between 3.9 and 9.3. Five values are too few for the rule to mean much. Use it on larger data sets.
Common mistakes
- Dividing by N when the data are a sample.
- Forgetting to square the deviations, which makes the sum zero.
- Quoting the variance as if it had the data unit.
- Mixing up the variance of the data with the variance of the mean. The variance of the mean of n independent observations is the variance of the observations divided by n (GUM clause 4.2.3).
Variance at an airfield
A measurement is often repeated. For example, a surveyor may measure one coordinate ten times. The GUM treats the sample variance of such repeated observations as a Type A evaluation of uncertainty. The square root of the variance of the mean is the standard uncertainty of the result.
This is how a measured value gets an uncertainty. TarmacView does not compute this for your own data sets.
The word in airfield documents
Airfield documents mostly use “variance” in the ordinary sense of a departure from a set value, not as the statistic.
- FAA AC 150/5300-13B calls the acceptable alternative runway cross-slope configurations “variances”.
- FAA AC 150/5370-10H sets a smoothness check for new pavement at “variances less than ¼ inch in 12 feet”. Here the word means a measured surface deviation.
- ICAO Annex 14 uses the word in the same ordinary sense, for example “variance in alignment, approach slope, approach minima”.
Frequently Asked Questions
- What is variance in statistics?
- The variance is the average of the squared distances of the values from their mean. It is a number that shows how far the values in a data set spread out. A variance of zero means that all values are equal.
- What is the formula for variance?
- For a population the formula is σ² = Σ(xᵢ − μ)² / N. For a sample it is s² = Σ(xᵢ − x̄)² / (n − 1). Subtract the mean from each value, square the differences, add them and divide.
- What is the difference between variance and standard deviation?
- The standard deviation is the square root of the variance. The variance is in the square of the data unit, so a spread in millimetres gives a variance in square millimetres. The standard deviation gives the spread back in the original unit.
- Does variance have units?
- Yes. The variance has the square of the data unit. Values in metres give a variance in square metres. This is why people often quote the standard deviation, which has the unit of the data.
- Why does the sample variance divide by n - 1?
- Because the sample mean comes from the same data. OpenStax says that dividing by n - 1 gives a better estimate of the population variance than dividing by n. NIST and the GUM also use n - 1 for a sample.
- What does variance measure?
- It measures spread, which means how far the values lie from their mean. A small variance means the values cluster near the mean. A large variance means they spread wide. One value far from the mean raises it a lot, because the differences are squared.
- Can the variance be negative?
- No. The variance is an average of squares, and a square is never negative. The smallest possible variance is zero, which means that all values are equal.
- What is the symbol for variance?
- The population variance is written σ² (sigma squared). The sample variance is written s². The standard deviation is σ or s, without the square.
References
- nist-handbook-scale
- NIST/SEMATECH e-Handbook of Statistical Methods, 1.3.5.6 Measures of Scale NIST
- faa-ac-150-5300-13b
- AC 150/5300-13B, Airport Design FAA
- faa-ac-150-5370-10h
- AC 150/5370-10H, Standard Specifications for Construction of Airports FAA
- icao-annex-14-vol-i-9ed
- Annex 14 to the Convention on International Civil Aviation, Aerodromes, Volume I, 9th edition ICAO
- nist-handbook-scale-2
- NIST/SEMATECH e-Handbook of Statistical Methods, 1.3.5.6 Measures of Scale (re-opened) NIST
- openstax-intro-stats-2-7
- Introductory Statistics 2e, section 2.7 Measures of the Spread of the Data OpenStax
- jcgm-100-2008
- JCGM 100:2008, Evaluation of measurement data, Guide to the expression of uncertainty in measurement (GUM) BIPM, Joint Committee for Guides in Metrology
This is a reference entry. TarmacView provides drone inspection services and doesn't sell the equipment or materials described in this glossary.