How does variance measure the spread of a probability distribution around its mean?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

In probability theory, the variance measures the spread of a distribution by calculating the weighted average of the squared deviations of a random variable from its mean (μ). By squaring the difference between each value (x) and the mean, the variance ensures that deviations are treated as positive values, preventing them from canceling each other out.1

The calculation depends on the nature of the random variable:

  • Discrete variables: The variance is the sum of the squared deviations weighted by the probability mass function, expressed as:
    Var(x)=σ2=∑(x−μ)2f(x)1

  • Continuous variables: The variance is the integral of the squared deviations weighted by the probability density function:
    Var(x)=σ2=∫(x−μ)2f(x)dx1

Because variance is measured in squared units, the standard deviation—the positive square root of the variance—is often preferred as a measure of dispersion because it shares the same units as the original data.12