thumb|400px|right|Example of samples from two populations with the same mean but different variances. The red population has mean and variance (), while the blue population has mean and variance ().
Variance measures how spread out data points are from their average—a small variance means numbers cluster close together, while a large variance means they're scattered far apart. It matters because two groups can have the same average but tell very different stories; for example, one group's values might be tightly bunched while another's are wildly scattered, which affects how predictable or stable that group is.
AI-generated from the Wikipedia summary — may contain errors.
thumb|400px|right|Example of samples from two populations with the same mean but different variances. The red population has mean and variance (), while the blue population has mean and variance ().
In probability theory and statistics, variance is the expected value of the squared deviation from the mean of a random variable. The standard deviation is obtained as the square root of the variance. Variance is a measure of dispersion, meaning it is a measure of how far a set of numbers are spread out from their average value. It is the second central moment of a distribution, and the covariance of the random variable with itself, and it is often represented by , , {{tmath|\operatorname{Var}(X)}}, , or {{tmath|\mathbb{V}(X)}}.
Discovered by embedding cosine similarity (sentence-transformers MiniLM, 384-dim).