Skip to content
← All questions

How is standard deviation calculated from a set of data values?

Standard deviation is calculated by finding the squared differences from the mean, averaging those squared differences to get the variance, and then taking the square root of the variance. The formula is σ=∑(X−μ)2N\sigma = \sqrt{\frac{\sum (X - \mu)^2}{N}}.

Conditions

  • The mean μ\mu of the dataset has already been calculated.

Reasoning, step by step

  1. Subtract the mean μ\mu from each data value XX and square the result.
  2. Sum all the squared differences.
  3. Divide the sum by the total number of values NN to get the variance.
  4. Take the square root of the variance to obtain the standard deviation σ\sigma.

Example

For heights 64, 70, 72, 68, 76 with mean 70: (64−70)2+(70−70)2+(72−70)2+(68−70)2+(76−70)2=36+0+4+4+36=80(64-70)^2 + (70-70)^2 + (72-70)^2 + (68-70)^2 + (76-70)^2 = 36 + 0 + 4 + 4 + 36 = 80. Variance is 80/5=1680 / 5 = 16. Standard deviation is 16=4\sqrt{16} = 4.

Common misconceptions

  • Forgetting to take the square root of the variance, mistakenly reporting the variance as the standard deviation.

Watch the explanation

Explore next

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.