Variance in Statistics
Variance is the average of the squared distances of data values from their mean. Squaring makes every distance non-negative and emphasises larger deviations; its units are squared, and its square root is the standard deviation.
What is variance?
Variance is a measure of spread that describes how far a set of data points is dispersed from their mean. A low variance indicates that data points are tightly clustered around the average, while a high data variance means the values are widely spread out. A variance of zero means all data values in the set are perfectly identical.
In statistics, variance is represented by the symbol (sigma squared) for a full population, and for a sample.

Find deviations from the mean
To understand how to calculate variance, we first find the center of the data. For each data point , we calculate its deviation by subtracting the mean :
Deviation
If a value is larger than the mean, its deviation is positive. If a value is smaller, its deviation is negative. A common mistake is assuming we can just add up these raw deviations to find the overall spread. However, the signed deviations alone always sum to zero. The positive differences perfectly balance the negative differences because the mean is the exact mathematical center of the data.

Square and average deviations
To stop the positive and negative deviations from canceling out, we square each difference to find the squared deviation. Squaring not only ensures every value is positive or zero, but it also applies a larger penalty to data points that are further from the mean.

After finding the squared deviation for each point, we find the average of these squared values.
For a complete population of items, the variance formula divides the sum by :
When working with a smaller sample of the population, we adjust the average by dividing by (where is the sample size) to correct for missing information:
Compare variance and standard deviation
When evaluating variance vs standard deviation, both measure how spread out data is, but they represent different steps in the same mathematical process. Standard deviation is exactly the square root of the variance:
You must calculate the variance first. Only after the variance is secure do you take the square root to find the standard deviation. While variance simplifies many statistical calculations, standard deviation is often easier to interpret because it describes specific probabilities in models like the normal distribution.
Interpret squared units
Because the variance formula squares every deviation, its final result is expressed in squared units. If a dataset measures the heights of plants in centimeters, the variance is in squared centimeters. If tracking time in seconds, the variance is in squared seconds.
These squared units are mathematically useful but difficult to visualize. This is why standard deviation is often preferred for reporting—taking the square root returns the measure of spread to the original units of the data. Both variance and standard deviation provide a much deeper look at how data behaves than simpler measures like the range in statistics or basic visual shapes like histograms.
Worked examples
Example 1: Calculating population variance
Question: Find the population variance of the dataset: .
Method:
- Find the mean.
- Find the deviation from the mean for each value.
- Square each deviation.
- Average the squared deviations by dividing by .
Data () | Mean () | Deviation () | Squared Deviation |
Sum of squared deviations .
Since there are data points, the population size is .
Variance .
Answer: The population variance is .
Check: Ensure the sum of the unsquared deviations () equals .
Example 2: Calculating sample variance
Question: Find the sample variance of the dataset: .
Method:
- Find the sample mean ().
- Find and square the deviations.
- Divide the sum by because this is a sample.
Mean () .
Data () | Deviation () | |
Sum of squared deviations .
The sample size is , so .
Sample variance .
Answer: The sample variance is .
Check: The standard deviation is , which aligns with the data being spread exactly units away from the mean.
Example 3: Working backward from variance
Question: The population variance of a dataset is square meters. What is the standard deviation?
Method:
- Identify the relationship between variance and standard deviation.
- The standard deviation is the square root of the variance.
Answer: The standard deviation is meters.
Check: , which correctly returns the variance in square meters.
Common mistakes
- Forgetting to square: Trying to average the raw deviations will always result in zero. You must calculate the squared deviation for every data point.
- Using the wrong denominator: Dividing by for a sample instead of will artificially underestimate the true variance.
- Confusing variance and standard deviation: Remembering that standard deviation is the square root of the variance is crucial. The variance itself is , not .
Frequently asked questions
Can variance fall below zero?
No. Because the calculation involves squaring the deviations, every term in the sum is either zero or a positive number. The lowest possible variance is zero, which occurs only when every single data value is perfectly identical.
Why does sample variance divide by ?
When we only have a sample, we do not know the true population mean. Using the sample mean slightly underestimates the spread. Dividing by , rather than , perfectly adjusts for this underestimation.
Practice questions

Which dataset has a higher variance?
Dataset A
Dataset B
They have the same variance
Cannot be determined
Dataset A
Find the sample variance of the dataset: .

If the area of the square above represents a dataset's variance of , what is the standard deviation?
Why do we divide by instead of when calculating the sample variance?
To correct for the underestimation of the spread when using a sample mean.
To make the variance exactly equal to the standard deviation.
Because a sample always has one less data point than a population.
To ensure the calculated variance remains a positive number.
To correct for the underestimation of the spread when using a sample mean.
Which of the following statements about variance is correct?
The variance falls below zero if the dataset contains negative values.
You calculate variance by averaging the absolute values of the differences.
Standard deviation is exactly the square root of the variance.
A variance of one indicates that all data points are identical.
Standard deviation is exactly the square root of the variance.
