Population Variance Calculator

Population Variance Calculator

Calculate σ², the variance of a complete population, from a list of values or straight from a frequency table, with the sample variance alongside for comparison.

σ² = Σ(x − μ)² ÷ N · from a table: σ² = Σf(x − μ)² ÷ Σf

Enter at least two numbers

What is Population Variance?

Population variance (σ²) is the average squared distance from the mean when your data includes every member of the group you're describing. You divide the sum of squares by N, the number of values.

That applies to the marks of every student in one class (if the class is all you care about), the sales of every store in a chain, or a full census. If your data is a sample used to learn about something bigger, which covers most surveys and experiments, use the sample variance instead.

The two differ by a factor of N ÷ (N − 1). With 10 values that's an 11% difference; with 1,000 values it's 0.1%. So the choice matters most for small groups.

Population Variance Formula

Formula as given in the NIST/SEMATECH e-Handbook of Statistical Methods. See Sources.

1. From a list of values

μ = Σx ÷ N
σ² = Σ(x − μ)² ÷ N

2. From a frequency table

N = Σf · μ = Σfx ÷ N
σ² = Σf(x − μ)² ÷ N

Each value counts as many times as its frequency, in both the mean and the sum of squares.

Worked Example: Children per Household

Given:
All 20 households on a street: 3 have no children, 8 have one, 6 have two, 2 have three and 1 has four.
Step 1:
Mean:
Σfx = 0 + 8 + 12 + 6 + 4 = 30 · μ = 30 ÷ 20 = 1.5
Step 2:
Weighted squared distances:
3(2.25) + 8(0.25) + 6(0.25) + 2(2.25) + 1(6.25) = 21
Step 3:
Divide by N:
σ² = 21 ÷ 20 = 1.05 · σ = 1.02
Result:
The population variance is 1.05.

These are all the households on the street, so the population formula is right. If they were a sample of a whole town, the sample variance (21 ÷ 19 = 1.11) would be the one to report.

How Much n − 1 Changes the Answer

For the same data, the sample variance is always the population variance times n ÷ (n − 1).

Ratio of sample to population variance by number of values
Number of valuess² ÷ σ²Difference
22100%
51.2525%
101.111111.1%
301.03453.4%
1001.01011%
1,0001.0010.1%

Common Population Variance Mistakes

  • Treating a sample as the population. A survey of 500 voters is a sample of the electorate, even though it's all the data you have. Use the sample variance for it.
  • Forgetting the frequencies in the mean. In a frequency table, the mean is Σfx ÷ Σf. Averaging the distinct values (here 0 to 4, giving 2) is wrong.
  • Dividing by the number of rows. N is the total of the frequencies (20 households), not the number of different values (5).
  • Using class limits instead of midpoints. For grouped data such as "10–20", use the midpoint 15 as the value. The grouped data calculator does this.

Population Variance FAQs

When should I use population variance?

Only when your data includes every member of the group and you don’t want to generalise beyond it: one class, one company’s staff, a complete census.

Why does it divide by N and not N − 1?

With the whole population, the mean is the true mean, so there’s no bias to correct for. Dividing by N gives the exact average squared distance.

Which Excel function is this?

VAR.P (or VARP in older versions). VAR.S is the sample version.

Is σ² always smaller than s²?

For the same data, yes, by the factor (N − 1) ÷ N, unless every value is identical and both are zero.

What is the symbol for population variance?

σ² (sigma squared). The sample variance is written s², and the population mean μ (mu).

How do I enter a frequency table?

Choose “Frequency table”, list each different value once in the first box and how often it occurs in the second, in the same order.

Can population variance be used for inference?

If you already have the whole population, there’s nothing left to infer: the figure is exact. Inference (confidence intervals, tests) is for samples.

What units is the variance in?

The square of the data’s units. Children squared, in the example, which is why the standard deviation (σ = 1.02 children) is easier to interpret.

Sources

Related Tools