Checking a one-value list in sample and population modes
See why a list containing one value has a population variance of zero but no sample variance, and where the tool draws the line between the two modes.
The two divisors again
Variance begins with the sum of squared deviations from the mean, M2. Population variance divides it by n, the number of values. Sample variance divides it by n minus 1. For a list of one value, n is 1 and n minus 1 is 0. The first division is fine and the second is a division by zero. The Variance Calculator reflects that difference directly. In population mode it returns a number for a one-value list, and in sample mode it refuses and says at least two observations are needed. This guide goes through why, and how to report each case. The distinction matters in practice because data tables often contain groups of size one, and a routine that quietly treats the two modes as interchangeable can turn a missing value into a zero.
Population mode with the value 5
The list contains only 5. Its mean is 5, so the single deviation is 0, and M2 is 0. Population variance is 0 divided by 1, which is 0, and the tool returns 0. This is a correct statement about the list itself: it contains one value, and that value is at its own mean, so there is no spread among the entries. It would also be 0 if the single value were 500 or minus 3. Population variance of a one-value list is always zero, whatever the value. The same holds for any list whose values are all equal, such as 5, 5, 5, where every deviation is zero. The result tells you the entries do not differ from one another, and it does not tell you the underlying quantity is fixed. A thermometer that reads 5 once has not shown that temperature is constant.
Sample mode with the value 5
In sample mode the divisor is 1 minus 1, which is 0. The quotient 0 divided by 0 is undefined, so the tool rejects the list with a message that at least two observations are needed. The rejection is not a defect. It reflects the purpose of sample variance, which estimates how much the underlying population varies. A single observation shows one value drawn from that population and offers no information about how far other draws would be from it. Statistical software handles the case in different ways: some return not-a-number, some return an error, and some return a missing value. The tool here gives an explicit rejection with a reason, which is easier to notice than a silent blank. Reports built on the output should carry the rejection forward as insufficient data.
Why n minus 1 is the divisor
Deviations are measured from the sample mean, which is computed from the same data and sits closer to the observations than the true population mean would. As a result the sum of squared deviations from the sample mean is smaller on average than the sum from the true mean. Dividing by n minus 1 instead of n corrects the shortfall, in the sense that the expected value of the result equals the population variance. One way to see the count is that after the mean is estimated from one value, no independent deviations remain to measure spread. Statisticians call this the degrees of freedom: n values, minus one used up by estimating the mean, leaves n minus 1 free to describe spread. With one value, zero are left. The n minus 1 divisor is usually called Bessel's correction, after the astronomer Friedrich Bessel, and it is the standard for sample variance in most statistics texts.
Two identical values are different from one
The list 5, 5 has two observations, so sample mode works. M2 is 0, the divisor is 1, and the sample variance is 0. This is a defined result: two measurements agree exactly, which is limited evidence that the process is steady but is a legitimate estimate. Compare it with the single value 5, where no estimate exists at all. The calculator's answers for the lists 5 and 5, 5 therefore differ in kind, an undefined result against a defined zero. The step from one observation to two is what turns an undefined quantity into a number, even when that number is zero.
A short list that does have spread
For the values 4 and 8, the mean is 6 and the deviations are minus 2 and 2, so M2 is 8. Sample variance divides by 1 and equals 8. Population variance divides by 2 and equals 4. The two conventions differ by a factor of 2 here, the largest factor possible for a valid sample. Seeing both numbers shows why the mode setting matters for tiny lists, and why a report should say which version it used.
What not to do when the tool refuses
Switching to population mode to get a number changes the statistic. The result of 0 in population mode is a different thing from a sample estimate, and presenting it as one would claim that the variability of a wider process is zero on the strength of a single observation. Replacing the rejected result with 0 in a report has the same effect. The correct report says that the sample variance is not defined for fewer than two observations, and, if possible, collects more data.
Missing and one-row groups in real tables
One-value lists appear often in grouped data. When a table is split by customer, site or day, some groups contain a single row. A sample variance computed per group will fail or return missing values for those groups. A population variance will show 0 for them, which can pull an average of group variances toward zero and misrepresent how variable the data are. Count the rows in each group before computing, and decide in advance how singletons will be handled in the report.
What the controls do not establish
The zero from population mode describes the supplied list only. It does not show that a wider process has no variability, and one reading cannot tell you how repeatable a measurement is. The rejection in sample mode is a statement about the formula and not about the data. Neither result evaluates measurement quality. For an estimate of variability in practice, collect repeated observations and report the sample variance with the count. Even three or four repeats give a rough figure, though a wide uncertainty accompanies it, and the count should always travel with the number.
Reproduce the checks
Population mode for one value
Open the Variance Calculator and enter:
- Numbers
5- Calculation mode
population
Expected output:
Variance
0The supplied list has zero squared deviation from its own mean.
Sample mode for one value
Open the Variance Calculator and enter:
- Numbers
5- Calculation mode
sample
Expected rejection:
at least two observationsThe sample divisor would be zero.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.
Sources
- Primary definition and convention reference ↗ · 2026-10-08