Britannica
Sources used in this answer
How is the variance of a random variable calculated?
Created from Britannica articles
using AI.
AI can make mistakes, so verify using Britannica articles.
probability and statistics
Swiss commemorative stamp of mathematician Jakob Bernoulli, issued 1994, displaying the formula and the graph for the law of large numbers, first proved by Bernoulli in 1713.
In probability and statistics, the variance of a random variable is a measure of the weighted average of the squared deviations from the mean (). It is denoted as or and is defined as .12
The calculation method depends on whether the random variable is discrete or continuous:
- Discrete Random Variables: The variance is calculated using the probability mass function, :
- Continuous Random Variables: The variance is calculated using the probability density function, :
Alternatively, the variance can be calculated using the formula . The standard deviation is the positive square root of the variance, providing a measure of dispersion in the same units as the original variable.231