In probability and statistics, the standard deviation is a measure of the mean distance of values in a data set from their mean. For example, in the data set (2, 4), the mean is 3 and the standard deviation is 1. Standard deviation is the most common measure of statistical dispersion, measuring how spread out the values in a data set are. If the data points are all close to the mean, then the standard deviation is low (closer to zero). If many data points are very different from the mean, then the standard deviation is high (further from zero). If all the data values are equal, then the standard deviation will be zero. The standard deviation has no maximum value although it is limited for most data sets (see Chebyshev's inequality).
The standard deviation is defined as the square root of the variance. This means it is the root mean square (RMS) deviation from the arithmetic mean. The standard deviation is always a positive number (or zero) and is always measured in the same units as the original data. For example, if the data are distance measurements in meters, the standard deviation will also be measured in meters.
The term standard deviation was introduced to statistics by Karl Pearson (On the dissection of asymmetrical frequency curves, 1894). Today, a distinction is made between the standard deviation σ (sigma) of a whole population or of a random variable, and the standard deviation s of a subset-population sample. The formulae are given below.
The standard deviation of a random variable X is defined as:
where E(X) is the expected value of X.
Not all random variables have a standard deviation, since these expected values need not exist. For example, the standard deviation of a random variable which follows a Cauchy distribution is undefined.
If the random variable X takes on the values x1,...,xN (which are real numbers) with equal probability, then its standard deviation can be computed as follows. First, the mean of X, , is defined as:
(see sigma notation). Next, the standard deviation simplifies to:
In other words, the standard deviation of a discrete uniform random variable X can be calculated as follows:
In the real world, finding the standard deviation of an entire population is unrealistic except in certain cases, such as standardized testing, where every member of a population is sampled. In most cases, sample standard deviation () is used to estimate population standard deviation (). Given only a sample of values x1,...,xN from some larger population, many authors define the sample (or estimated) standard deviation by:
The reason for this definition is that s2 is an unbiased estimator for the variance σ2 of the underlying population, if it is uncorrelated and has uniform variance of σ2. However, s is not an unbiased estimator for the standard deviation σ; it tends to underestimate the population standard deviation. Although an unbiased estimator for "s" is known when the random variable is normally distributed, the formula is complicated and amounts to a minor correction. Moreover, unbiasedness, in this sense of the word, is not always desirable; see statistical bias. Some have argued that even the difference between N and N − 1 in the denominator is overly complex and insignificant. Without that term, what is left is the simpler expression:
This form has the desirable property of being the maximum-likelihood estimate when the population (or the random variable X) is normally distributed.
We will show how to calculate the standard deviation of a population. Our example will use the ages of four young children: { 5, 6, 8, 9 }.
Step 1. Calculate the mean or average, :
We have N = 4 because there are four data points:
Step 2. Calculate the standard deviation :
Were this set a sample drawn from a larger population of children, and the question at hand was the standard deviation of the population, convention would replace the N (or 4) here with N−1 (or 3).
A large standard deviation indicates that the data points are far from the mean and a small standard deviation indicates that they are clustered closely around the mean.
For example, each of the three data sets (0, 0, 14, 14), (0, 6, 8, 14) and (6, 6, 8, 8) has a mean of 7. Their standard deviations are 7, 5, and 1, respectively. The third set has a much smaller standard deviation than the other two because its values are all close to 7. In a loose sense, the standard deviation tells us how far from the mean the data points tend to be. It will have the same units as the data points themselves. If, for instance, the data set (0, 6, 8, 14) represents the ages of four siblings, the standard deviation is 5 years. The data set (1000, 1006, 1008, 1014) may represent the distances travelled by four athletes in 2 minutes, measured in meters. It has a mean of 1007 meters, and a standard deviation of 5 meters. In the age example, a standard deviation of 5 may be considered large; in the distance example, 5 may be considered small.
Standard deviation may serve as a measure of uncertainty. In physical science for example, the reported standard deviation of a group of repeated measurements should give the precision of those measurements. When deciding whether measurements agree with a theoretical prediction, the standard deviation of those measurements is of crucial importance: if the mean of the measurements is too far away from the prediction (with the distance measured in standard deviations), then we consider the measurements as contradicting the prediction. This makes sense since they fall outside the range of values that could reasonably be expected to occur if the prediction were correct and the standard deviation appropriately quantified. See prediction interval.
To gain some geometric insights, we will start with a population of three values, x1, x2, x3. This defines a point P = (x1, x2, x3) in R3. Consider the line L = {(r, r, r) : r in R}. This is the "main diagonal" going through the origin. If our three given values were all equal, then the standard deviation would be zero and P would lie on L. So it is not unreasonable to assume that the standard deviation is related to the distance of P to L. And that is indeed the case. Moving orthogonally from P to the line L, one hits the point:
whose coordinates are the mean of the values we started out with. A little algebra shows that the distance between P and R (which is the same as the distance between P and the line L) is given by σ√3. An analogous formula (with 3 replaced by N) is also valid for a population of N values; we then have to work in RN.
In practice, one often assumes that the data are from an approximately normally distributed population. If that assumption is justified, then about 68.27% of the values are within 1 standard deviation of the mean, about 95.45% of the values are within two standard deviations and about 99.73% lie within 3 standard deviations. This is known as the "68-95-99.7 rule". Typically, however, this assumption becomes less accurate in the tails.
The confidence intervals are as follows:
| σ | 68.26895% |
| 2σ | 95.44997% |
| 3σ | 99.73002% |
| 4σ | 99.99366% |
| 5σ | 99.99994% |
For normal distributions, the two points of the curve which are one standard deviation from the mean are also the inflection points.
If the distribution is unknown, one can use Chebyshev's inequality to approximate the probability of being a certain distance from the mean.
The mean and the standard deviation of a set of data are usually reported together. In a certain sense, the standard deviation is a "natural" measure of statistical dispersion if the center of the data is measured about the mean. This is because the standard deviation from the mean is smaller than from any other point. The precise statement is the following: suppose x1, ..., xn are real numbers and define the function:
Using calculus, it is possible to show that σ(r) has a unique minimum at the mean:
(this can also be done with fairly simple algebra alone, since, as a function of r, it is a quadratic polynomial).
The coefficient of variation of a sample is the ratio of the standard deviation to the mean. It is a dimensionless number that can be used to compare the amount of variance between populations with different means.
Chebyshev's inequality proves that in any data set, nearly all of the values will be nearer to the mean value, where the meaning of "close to" is specified by the standard deviation.
A slightly faster (significantly for running standard deviation) way to compute the population standard deviation is given by the following formula (though this can exacerbate round-off error):
Similarly for sample standard deviation:
Or from running sums:
See also algorithms for calculating variance.
The set of two numbers,
so that
Consider the power sums:
The power sums sj are symmetric functions of the vector X, and the symmetric functions μ and σ2 are written in terms of these like this:
This formula for the special case n=2 generalizes to n=1,2,3,4,..., preserving the rules. The general power sums are
Probability theory | Statistics
Desviació típica | Směrodatná odchylka | Standardafvigelse | Standardabweichung | Standardhälve | Desviación estándar | Écart type | Desviación típica | Standardna devijacija | Simpangan baku | Deviazione standard | סטיית תקן | Standartinis nuokrypis | Standaardafwijking | 標準偏差 | Standardavvik | Odchylenie standardowe | Desvio padrão | Дисперсия случайной величины | Smerodajná odchýlka | Standardni odklon | Стандардна девијација | Simpangan baku | Hajontaluku | Standardavvikelse | 標準差
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Standard deviation".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world