Standard deviation

   

In probability and statistics, the standard deviation is the most commonly used measure of statistical dispersion. Standard deviation is defined as the square root of the variance. It is defined this way in order to give us a measure of dispersion that is (1) a non-negative number, and (2) has the same units as the data.

We distinguish 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 formulas are given below.

The term standard deviation was introduced to statistics by Karl Pearson (On the dissection of asymmetrical frequency curves, 1894).

Interpretation and application

Simply put, the standard deviation tells us how far a typical member of the population (or sample) is from the mean value of that population (or sample). A large standard deviation suggests that a typical member is far away from the mean. A small standard deviation suggests that members are clustered closely around the mean.

For example, the sets { 0, 5, 9, 14 } and { 5, 6, 8 ,9 } each have a mean of 7, but the second set has a much smaller standard deviation.

Standard deviation is often thought of as a measure of uncertainty. In physical science for example, when making repeated measurements the standard deviation of the set of measurements is the precision of those measurements. When deciding whether measurements agree with a 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. See prediction interval.

Definition and shortcut calculation of standard deviation

Suppose we are given a population x1,...,xN of values (which are real numbers). The mean of this population is defined as

<math>\overline{x}=\frac{1}{N}\sum_{i=1}^N x_i<math>.

(see summation notation) and the standard deviation of this population is defined as

<math>\sigma = \sqrt{\frac{1}{N} \sum_{i=1}^N (x_i - \overline{x})^2}<math>.

A slightly faster way to compute the same number is given by the formula

<math>\sigma = \sqrt{{\sum_{i=1}^N{{x_i}^2}\over{N}}-\left({\sum_{i=1}^N{x_i}\over{N}}\right)^2\ } = \sqrt{\frac{N\sum_{i=1}^N{{x_i}^2} - \left(\sum_{i=1}^N{x_i}\right)^2}{N^2}\ }.<math>

The standard deviation of a random variable X is defined as

<math>\sigma = \sqrt{\operatorname{E}((X-\operatorname{E}X)^2)} = \sqrt{\operatorname{E}(X^2) - (\operatorname{E}(X))^2}<math>.

Note that not all random variables have a standard deviation, since these expected values need not exist. If the random variable X takes on the values x1,...,xN with equal probability, then its standard deviation can be computed with the formula given earlier.

Given only a sample of values x1,...,xn from some larger population, many authors define the sample standard deviation by

<math>

s = \sqrt{\frac{1}{n-1} \sum_{i=1}^n (x_i - \overline{x})^2} .<math>

The reason for this definition is that s2 is an unbiased estimator for the variance σ2 of the underlying population. Note however that s itself is not an unbiased estimator for the standard deviation σ; it tends to underestimate the population standard deviation. While the unbiased estimator for "s" is known, the formula is overly complicated and amounts to a minor correction. Some have even argued that the difference between n and n − 1 in the denominator is overly complex and exclude it. If the population is normally distributed, then without that term, what is left is the simpler expression for the maximum-likelihood estimate

<math>

s = \sqrt{\frac{1}{n} \sum_{i=1}^n (x_i - \overline{x})^2}. <math>

Examples

Here we show how to calculate the standard deviations of a set of data. The set of data is the ages of the members of a group of young children. { 5, 6, 8 ,9 }

Step 1. Calculate the mean/average <math>\overline{x}<math>.

<math>\overline{x}=\frac{1}{N}\sum_{i=1}^N x_i<math>.

We have n = 4 (because there are 4 data points in the set.} These 4 data points are:

<math>x_1 = 5\,\!<math>
<math>x_2 = 6\,\!<math>
<math>x_3 = 8\,\!<math>
<math>x_4 = 9\,\!<math>
<math>\overline{x}=\frac{1}{4}\sum_{i=1}^4 x_i<math>       Replacing <math>N<math> with 4
<math>\overline{x}=\frac{1}{4} \left ( x_1 + x_2 + x_3 +x_4 \right ) <math>
<math>\overline{x}=\frac{1}{4} \left ( 5 + 6 + 8 + 9 \right ) <math>
<math>\overline{x}= 7<math>   This is the mean.

Step 2. Calculate the standard deviation <math>\sigma\,\!<math>

<math>\sigma = \sqrt{\frac{1}{N} \sum_{i=1}^N (x_i - \overline{x})^2}<math>
<math>\sigma = \sqrt{\frac{1}{4} \sum_{i=1}^4 (x_i - \overline{x})^2}<math>       Replacing <math>N<math> with 4
<math>\sigma = \sqrt{\frac{1}{4} \sum_{i=1}^4 (x_i - 7)^2}<math>       Replacing <math>\overline{x}<math> with 7
<math>\sigma = \sqrt{\frac{1}{4} \left [ (x_1 - 7)^2 + (x_2 - 7)^2 + (x_3 - 7)^2 + (x_4 - 7)^2 \right ] }<math>
<math>\sigma = \sqrt{\frac{1}{4} \left [ (5 - 7)^2 + (6 - 7)^2 + (8 - 7)^2 + (9 - 7)^2 \right ] }<math>
<math>\sigma = \sqrt{\frac{1}{4} \left ( -2^2 + -1^2 + 1^2 + 2^2 \right ) }<math>
<math>\sigma = \sqrt{\frac{1}{4} \left ( 4 + 1 + 1 + 4 \right ) }<math>
<math>\sigma = \sqrt{\frac{10}{4}}<math>
<math>\sigma = 1.5811\,\!<math>   This is the standard deviation.

Rules for normally distributed data

In practice, one often assumes that data is approximately normally distributed. If that assumption can be justified, then 68% of the values are at most 1 standard deviation away from the mean, 95% of the values are at most two standard deviations away from the mean, and 99.7% of the values lie within 3 standard deviations of the mean. This is known as the "68-95-99.7 rule".

Relation between standard deviation and mean

The mean and the standard deviation of a data set go hand in hand and are usually reported together. In a certain sense, the standard deviation is the "natural" measure of statistical dispersion if the center of the data is measured by the mean. The precise statement is the following: suppose x1, ..., xn are real numbers and define the function

<math>\sigma(r) = \sqrt{\frac{1}{N} \sum_{i=1}^N (x_i - r)^2}<math>

Using calculus, it is not difficult to show that σ(r) has a unique minimum for

<math>r = \overline{x}<math>

Geometric interpretation

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

<math>R = (\overline{x},\overline{x},\overline{x})<math>

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.

Standard deviation as a confidence level

In experimental science, the confidence one has that a measured event is the result of a signal, rather than just statistical noise. So the higher your sigma confidence level, the less likely it is that the measured event is a result of noise.

Related articles

External links


de:Standardabweichung et:Standardhälve es:Desviación estándar fr:Écart type it:Deviazione standard nl:Standaarddeviatie ja:標準偏差 no:Standardavvik pl:Odchylenie standardowe sr:Стандардна девијација su:Simpangan baku sv:Standardavvikelse


Retrieved from "http://www.mywiseowl.com/articles/Standard_deviation"

This page has been accessed 2816 times. This page was last modified 21:12, 19 Nov 2004. All text is available under the terms of the GNU Free Documentation License (see Copyrights for details).