Standard Deviation & Variance: Mathematical Formulas & Practical Applications
Standard deviation is the primary metric used across finance, manufacturing, scientific research, and machine learning to quantify variability and volatility. While the mean provides the central balance point of a dataset, standard deviation explains how much confidence you should have in that mean.
Sample Standard Deviation (s)
Used whenever analyzing a subset of data to infer population characteristics:
Divided by (n - 1)—known as Bessel's correction—which mathematically corrects for the fact that sample variance tends to underestimate the true population variance.
Population Standard Deviation (σ)
Used strictly when every member of the target population is measured:
Divided by N because there is no sampling error; the true population mean (μ) is known with complete certainty.
Frequently Asked Questions
Can standard deviation ever be negative?
No. Because every deviation from the mean is squared before summation, variance is always greater than or equal to zero. The principal square root of a non-negative number is always positive or zero. Standard deviation equals zero only if every number in the dataset is identical.
How is standard deviation used to calculate financial risk (Sharpe Ratio)?
In modern portfolio theory, the standard deviation of an asset's historical returns serves as the canonical measure of volatility. The Sharpe Ratio divides excess return (portfolio return minus risk-free rate) by standard deviation to determine how much reward an investor earns per unit of risk.