Math · Probability

Variance & Standard Deviation

Variance turns a collection of values into a measure of its spread. Change the observations to see how their distance from the mean becomes a useful signal.

Concept

The mean is the balance point of a population. Variance is the average squared distance from that point; standard deviation returns that spread to the original units. This exploration uses population variance, dividing by n.

Equation

σ2=1n∑i=1n(xi−μ)2

Focus or select an equation to trace that part of the calculation.

Manipulate

Drag a point, or focus one and use Left and Right Arrow. Hold Shift for a larger step.

Interactive population number lineEight draggable observations on a number line. Keyboard users can focus an observation and use arrow keys to change its value.

Live calculation

Observe

Points farther from μ make larger squared deviations. Because distance is squared, a distant outlier contributes much more than a nearby point: greater spread from the mean means greater variance and standard deviation.

Standardization

Data science often changes a value into a z-score.

z=x−μσ

This puts the current population on a common scale.

Why this matters

Spread helps describe datasets, spot outliers, and reason about statistical models. Standardizing features can keep one large-scale measurement from dominating another during machine-learning preprocessing.