Standard Deviation
The standard deviation σ measures the typical spread of a random variable around its expected value μ.
Free · no credit card · in your study plan in 2 minutes
Formula
\sigma = \sqrt{\operatorname{Var}(X)} = \sqrt{E\big((X - \mu)^{2}\big)}Variables & units – Standard Deviation
| Symbol | Meaning | Unit |
|---|---|---|
| σ | Standard deviation | same as X |
| Var(X) = σ² | Variance, mean squared deviation | square of X |
| μ = E(X) | Expected value of the random variable | same as X |
Derivation & background – Standard Deviation
The variance averages the squared deviations from the expected value; taking the square root brings the measure back to the unit of the data. For the binomial distribution the short formula σ = √(n·p·(1−p)) holds. To be distinguished: the empirical standard deviation s of a sample divides by n − 1 instead of n (Bessel correction). For the normal distribution about 68% of values lie within μ ± σ and 95% within μ ± 2σ.
Exam blueprint
Validity range
Defined for random variables with finite variance. σ describes theoretical distributions; the empirical standard deviation s (dividing by n − 1) describes samples.
Derivation steps
Average the squared deviations, then take the square root.
- 1Var(X) = Σ(xᵢ − μ)²·pᵢ measures the mean squared deviation from μ.
- 2σ = √Var(X) brings the measure back to the unit of X.
Rearrangements
Shortcut formula
Often faster than summing the deviations directly.
Binomial distribution
Short formula for Bernoulli chains, basis of the sigma rules.
Linear transformation
Shifts (+b) do not change the spread.
Task variant
A die has μ = 3.5. Compute the standard deviation.
E(X²) = (1+4+9+16+25+36)/6 = 91/6 ≈ 15.17. Var = 15.17 − 12.25 = 35/12 ≈ 2.92. σ = √2.92 ≈ 1.71.
n = 400, p = 0.25: find μ, σ and the 2σ interval.
μ = n·p = 100. σ = √(400·0.25·0.75) = √75 ≈ 8.66. 2σ interval: [100 − 17.3; 100 + 17.3] ≈ [83; 117], about 95% of outcomes.
Common mistakes
Confusing σ and variance.
The variance is σ²; the standard deviation is its root and carries the unit of X.
Dividing by n instead of n − 1 for samples.
The empirical standard deviation s uses n − 1 (Bessel correction).
Applying √(n·p·q) to arbitrary distributions.
The short formula holds only for the binomial distribution.
Averaging deviations without squaring.
Σ(xᵢ − μ)·pᵢ is always 0; only squaring makes spread measurable.
Exam context
- Sigma rules, prediction intervals and hypothesis tests around the binomial distribution.
These mistakes cost points in real exams. The set drills them until they stick.
Formula cluster
Measures of spread
μ fixes the location, σ the width; together they carry the sigma rules.
Worked example
Binomial distribution with n = 100, p = 0.5: σ = √(n·p·(1−p)) = √(100·0.5·0.5) = √25 = 5. The 2σ interval around μ = 50 runs from 40 to 60 (about 95%).
Applications
Sigma rules and prediction intervals in exams, hypothesis tests, quality control, measurement uncertainty, risk measure in finance
Quanta exam set
Curated exam set for "Standard Deviation":
Question (front)
Which formula describes Standard Deviation?
Answer in your set
Question (front)
How do you rearrange σ = √Var(X) for Shortcut formula?
Answer in your set
Question (front)
Which common mistake happens with Standard Deviation?
Answer in your set
+ 7 more cards: units, variables, derivation, example, exam task
These 10 cards are ready. One click and they sit in your deck, FSRS schedules the reviews until exam day.
Scientific sources
Common notations & search queries
Related formulas
More Mathematics formulas
Frequently asked questions about Standard Deviation
How do I calculate the standard deviation step by step?+
For a discrete random variable: first determine the expected value μ = Σxᵢ·pᵢ. Then for each value form the deviation xᵢ − μ, square it and weight it with pᵢ; the sum is the variance Var(X) = Σ(xᵢ − μ)²·pᵢ. Finally take the square root: σ = √Var(X). Die example: μ = 3.5, E(X²) = 91/6 ≈ 15.17, so Var = 15.17 − 3.5² = 2.92 and σ ≈ 1.71. Often faster is the shortcut formula Var(X) = E(X²) − μ², where you only average the squared values. For binomially distributed variables you skip everything: σ = √(n·p·(1−p)). Important: take the root only at the very end, never of the individual deviations.
What is the difference between σ and s, that is n and n − 1?+
σ is the theoretical standard deviation of a distribution, computed from the probability model. s is the empirical standard deviation of a sample, computed from data, and there you divide by n − 1 instead of n: s = √(Σ(xᵢ − x̄)²/(n − 1)). The reason for the Bessel correction: the sample mean x̄ automatically lies "in the middle of" its own data, so deviations from x̄ come out systematically smaller than those from the true μ. Dividing by n − 1 compensates this underestimation and makes s² an unbiased estimator of the variance. For large n the difference is tiny. Calculators and spreadsheets offer both variants (σₙ and sₙ₋₁, or STDEV.P and STDEV.S); choose by context: whole population or sample.
How do I use σ = √(n·p·q) for the binomial distribution?+
For a Bernoulli chain with n trials and success probability p the short formula σ = √(n·p·(1−p)) holds; q stands for 1 − p. Example: n = 400 applications with success rate p = 0.25 give μ = 100 and σ = √(400·0.25·0.75) = √75 ≈ 8.66. With this you build prediction intervals: about 95% of outcomes lie in [μ − 2σ; μ + 2σ] ≈ [83; 117]. The sigma rules require the Laplace condition σ > 3, clearly met here. Two pitfalls: the formula holds ONLY for binomially distributed variables, not for arbitrary distributions; and under the root stands the product n·p·q, not (n·p·q)² or n·p alone. Incidentally σ is maximal at p = 0.5, where the chain spreads most.
What does the standard deviation tell you intuitively?+
It measures how far outcomes typically lie from the expected value: small σ means tightly clustered, large σ widely spread values. Two distributions can have the same mean and completely different spread; only μ and σ together characterize the situation. σ becomes tangible via the sigma rules (for approximately bell-shaped distributions): about 68% of outcomes lie within μ ± σ, 95% within μ ± 2σ, 99.7% within μ ± 3σ. An outcome beyond 2σ is thus already remarkable, beyond 3σ very unusual; hypothesis tests and industrial quality control build exactly on this. Important for interpretation: σ carries the same unit as the measured quantity itself, unlike the variance with its squared unit.
Why are the deviations squared instead of simply averaged?+
Because simply averaging the deviations always gives zero: positive and negative distances from the expected value cancel exactly, Σ(xᵢ − μ)·pᵢ = 0 is a defining property of μ. So a trick is needed to remove the signs. Squaring does this and is mathematically well-behaved: it is differentiable, penalizes large outliers overproportionally and leads to elegant rules like the additivity of variance for independent variables, from which the √(npq) formula follows. The alternative of averaging absolute values gives the mean absolute deviation; it is intuitive but computationally unwieldy and plays no role in school stochastics. To restore the unit, you take the square root after squaring: that is exactly σ.
Retain Standard Deviation for exams
Create a curated FSRS exam set for σ = √Var(X): formula recall, variables, derivation, rearrangement, worked example, common mistakes and exam context.
Free · curated formula set · LaTeX · FSRS spaced repetition
How do you calculate with Standard Deviation?
Here is how to work through a typical Standard Deviation (σ = √Var(X)) task step by step:
- 1
Task
A die has μ = 3.5. Compute the standard deviation.
Solution path
E(X²) = (1+4+9+16+25+36)/6 = 91/6 ≈ 15.17. Var = 15.17 − 12.25 = 35/12 ≈ 2.92. σ = √2.92 ≈ 1.71.
- 2
Task
n = 400, p = 0.25: find μ, σ and the 2σ interval.
Solution path
μ = n·p = 100. σ = √(400·0.25·0.75) = √75 ≈ 8.66. 2σ interval: [100 − 17.3; 100 + 17.3] ≈ [83; 117], about 95% of outcomes.