📊

Standard Deviation: Statistics Study Notes

October 10, 2026

📊 Standard Deviation: Comprehensive Guide & Reference

  • Core Concepts: Definition, interpretation, and relationship with variance
  • Probability & Distributions: Normal distribution, empirical rules, and existence conditions
  • Mathematical Formulations: Discrete, continuous, and random variable calculations
  • Sample Estimation & Correction: Uncorrected, corrected, unbiased sample standard deviations, and Bessel's correction
  • Statistical Inference: Confidence intervals, sample bounds, and mathematical properties

💡 Overview & Interpretation

In statistics, the standard deviation is a measure of the amount of variation or dispersion of a set of data values about their arithmetic average (mean).

Key Characteristics

  • Notational Representations: Abbreviated as SD or std dev; represented in mathematical equations by the lowercase Greek letter ΃\sigma (sigma) for populations, or ss for samples.
  • Unit Consistency: Unlike variance (which is the average of the squared deviations from the mean), the standard deviation is expressed in the exact same unit as the original data, making it much more interpretable.
  • Interpretation of Magnitude:
    • Low standard deviation: Indicates that the data values tend to be very close to the mean.
    • High standard deviation: Indicates that the values are spread out over a much wider range.

📐 Relationship with Normal Distributions

For a variable that follows a normal distribution (typified by the symmetrical bell-shaped curve), the standard deviation dictates the predictable spread of data points according to the 68–95–99.7 rule (empirical rule):

Distance from MeanApproximate Percentage of Values
Within 1 standard deviation (Âą1΃\pm 1\sigma)68.3%
Within 2 standard deviations (Âą2΃\pm 2\sigma)95.4%
Within 3 standard deviations (Âą3΃\pm 3\sigma)99.7%

Example: Adult Men Height in the US

  • Mean (Îŧ\mu): 5 feet 9 inches (69 inches / 175 cm)
  • Standard Deviation (΃\sigma): ~3 inches (7.6 cm)
  • 1 SD Range (Âą3\pm 3 in): 66–72 inches (approx. 68% of men)
  • 2 SD Range (Âą6\pm 6 in): 63–75 inches (approx. 95% of men)
  • Note: If the standard deviation were zero, every single individual would share an identical height of exactly 69 inches.

🔗 Relationship with Standard Error and Statistical Significance

While population or sample standard deviation measures the variability of raw data, standard error measures the variability of a sample statistic (such as the sample mean).

  • Standard Error of the Mean: Equals the population standard deviation divided by the square root of the sample size (nn): SE=΃n\text{SE} = \frac{\sigma}{\sqrt{n}}
  • Margin of Error: In polls, the margin of error is the expected standard deviation of the estimated mean if the poll were conducted repeatedly.
  • Statistical Significance: By convention in science, effects more than two standard errors away from a null expectation are considered "statistically significant", acting as a safeguard against spurious conclusions caused by random sampling error.

🧮 Mathematical Definitions

1. General Definition for Random Variables

Let Îŧ\mu be the expected value (average) of a random variable XX with probability density function ff: Îŧ≡E⁥[X]=âˆĢ−∞+∞x f(x) dx\mu \equiv \operatorname {\mathbb {E} } [X]=\int _{-\infty }^{+\infty }x\,f(x)\,{\mathrm {d} }x

The standard deviation ΃\sigma of XX is defined as: Īƒâ‰ĄE⁥[(X−Îŧ)2]=âˆĢ−∞+∞(x−Îŧ)2f(x) dx  =E⁥[X2]−(E⁥[X])2\sigma \equiv {\sqrt {\operatorname {\mathbb {E} } \left[\left(X-\mu \right)^{2}\right]}}={\sqrt {\int _{-\infty }^{+\infty }\left(x-\mu \right)^{2}f(x)\ {\mathrm {d} }x\;}} = {\sqrt {\operatorname {\mathbb {E} } \left[X^{2}\right]-\left(\operatorname {\mathbb {E} } \left[X\right]\right)^{2}}}

2. Discrete Random Variables

  • Equal Probabilities: For a finite data set x1,x2,â€Ļ,xNx_1, x_2, \dots, x_N with equal probabilities: ΃=1N∑i=1N(xi−Îŧ)2whereÎŧ≡1N∑i=1Nxi\sigma ={\sqrt {{\frac {1}{N}}\sum _{i=1}^{N}\left(x_{i}-\mu \right)^{2}}}\quad \text{where}\quad \mu \equiv {\frac {1}{N}}\sum _{i=1}^{N}x_{i}
  • Unequal Probabilities: Where value xix_i has probability pip_i: ΃=∑i=1Npi(xi−Îŧ)2whereÎŧ≡∑i=1Npixi\sigma ={\sqrt {\sum _{i=1}^{N}p_{i}\left(x_{i}-\mu \right)^{2}}}\quad \text{where}\quad \mu \equiv \sum _{i=1}^{N}p_{i}x_{i}

3. Continuous Random Variables

For a continuous real-valued random variable XX with probability density function p(x)p(x): ΃=âˆĢX(x−Îŧ)2 p(x) dxwhereÎŧ≡âˆĢXx p(x) dx\sigma ={\sqrt {\int _{\mathbf {X} }\left(x-\mu \right)^{2}\,p(x)\,{\mathrm {d} }x}}\quad \text{where}\quad \mu \equiv \int _{\mathbf {X} }x\,p(x)\,{\mathrm {d} }x

Existence of Standard Deviation: Not all random variables possess a standard deviation. Distributions with heavy or "fat" tails out to infinity (such as the Cauchy distribution) lack both a mean and standard deviation. Others (like the Pareto distribution with parameter ι∈(1,2]\alpha \in (1, 2]) have a mean but an infinite standard deviation.


📝 Practical Calculation Example: Population Standard Deviation

Suppose we analyze the complete population of test grades for eight students: 2, 4, 4, 4, 5, 5, 7, 92,\ 4,\ 4,\ 4,\ 5,\ 5,\ 7,\ 9

Step 1: Calculate the Mean (Îŧ\mu)

Îŧ=2+4+4+4+5+5+7+98=408=5\mu = {\frac {2+4+4+4+5+5+7+9}{8}} = {\frac {40}{8}} = 5

Step 2: Compute Squared Deviations from the Mean

  • (2−5)2=(−3)2=9(2 - 5)^2 = (-3)^2 = 9
  • (4−5)2=(−1)2=1(4 - 5)^2 = (-1)^2 = 1 (occurs 3 times →1×3=3\rightarrow 1 \times 3 = 3)
  • (5−5)2=02=0(5 - 5)^2 = 0^2 = 0 (occurs 2 times →0\rightarrow 0)
  • (7−5)2=22=4(7 - 5)^2 = 2^2 = 4
  • (9−5)2=42=16(9 - 5)^2 = 4^2 = 16

Step 3: Calculate Variance (΃2\sigma^2) and Standard Deviation (΃\sigma)

΃2=9+1+1+1+0+0+4+168=328=4\sigma^2 = \frac{9 + 1 + 1 + 1 + 0 + 0 + 4 + 16}{8} = \frac{32}{8} = 4 ΃=4=2\sigma = \sqrt{4} = 2


📉 Sample Estimation & Correction Methods

When dealing with a sample rather than an entire population, estimating standard deviation requires handling statistical bias.

Estimator TypeFormulaMathematical Behavior & Usage
Uncorrected Sample Standard Deviation (sNs_N)sN=1N∑i=1N(xi−xˉ)2s_N = \sqrt{\frac{1}{N}\sum_{i=1}^{N}(x_i - \bar{x})^2}- Biased estimator (estimates tend to be too low).
- Has lower mean squared error.
- Acceptable for very large sample sizes (N>75N > 75, bias <1%< 1\%).
Corrected Sample Standard Deviation (ss)s=1N−1∑i=1N(xi−xˉ)2s = \sqrt{\frac{1}{N-1}\sum_{i=1}^{N}(x_i - \bar{x})^2}- Uses Bessel's correction (N−1N-1 degrees of freedom).
- Commonly referred to simply as the "sample standard deviation".
Unbiased Estimator for Normal Distributions (΃^\hat{\sigma})΃^=sc4(N)\hat{\sigma} = \frac{s}{c_4(N)} or ΃^≈1N−1.5∑i=1N(xi−xˉ)2\hat{\sigma} \approx \sqrt{\frac{1}{N-1.5}\sum_{i=1}^{N}(x_i - \bar{x})^2}- Scales ss using correction factors (e.g., gamma functions) to eliminate distribution-specific bias entirely.

🔍 Confidence Intervals and Bounds

1. Confidence Intervals (CI)

Because a sample standard deviation is an estimate, it carries sampling uncertainty governed by chi-square distributions.

  • Small Sample (N=2N = 2): 95% CI runs from 0.45×SD0.45 \times \text{SD} to 31.9×SD31.9 \times \text{SD}.
  • Moderate Sample (N=10N = 10): 95% CI runs from 0.69×SD0.69 \times \text{SD} to 1.83×SD1.83 \times \text{SD}.
  • Larger Sample (N=100N = 100): 95% CI narrows down to 0.88×SD0.88 \times \text{SD} to 1.16×SD1.16 \times \text{SD}.

2. Range Rules and Bounds

  • General Upper Bound: For any set of N>4N > 4 data spanning a range RR, an upper bound on standard deviation is s≈0.6Rs \approx 0.6R.
  • Normal Range Rule: For N>100N > 100 approximately normal data, since 95% of the curve spans about 4 standard deviations, s≈R4s \approx \frac{R}{4}.

âš–ī¸ Identities and Mathematical Properties

The standard deviation behaves predictably under linear transformations:

΃(c) = 0             (The standard deviation of a constant is zero)
΃(X + c) = ΃(X)      (Adding a constant shifts location without altering spread)
΃(cX) = |c|΃(X)      (Scaling a variable scales its standard deviation by the absolute value of c)