What is the VAR.P function?
=VAR.P(number1, [number2], ...)VAR.P treats the data as the whole population and returns its variance: the average of the squared distances from the mean.
It divides by the count (n), unlike VAR.S (n-1). Its square root is STDEV.P.
A population is data that covers everything you want to know about: every student in the class, all 12 months of this year's sales, every part in a delivery. When nothing is left to sample, use VAR.P; when you take a sample to estimate the whole, use VAR.S.
Arguments
- number1, number2, ...
- The population values. Text and blank cells are ignored.
VAR.P examples
Example 1. Variance of all scores
=VAR.P(B2:D6)The variance of the complete data.
Example 2. As a standard deviation
=SQRT(VAR.P(B2:D6))The same as STDEV.P.
Example 3. Compared with a sample
=VAR.S(B2:D6)Divides by n-1, so it is a little larger.
Example 4. Work it out by hand
=VAR.P(2, 4, 4, 4, 5, 5, 7, 9)The mean is 5. The squared differences from 5 add up to 32; dividing by 8 gives 4. The standard deviation (STDEV.P) is its square root, 2.
Value Difference from mean Squared 2 -3 9 4 (three times) -1 1 × 3 5 (twice) 0 0 7 2 4 9 4 16 Total ÷ 8 32 ÷ 8 = 4 Example 5. Microsoft example
=VAR.P(A2:A11)Treating the breaking strengths of 10 tools as the whole population gives 678.84. VAR.S on the same data is about 754.27.
Common mistakes
Units
Variance is in squared units, so the standard deviation is easier to interpret.
Using it on a sample
For partial data use VAR.S.
A single value
VAR.P returns 0 for a single value, while VAR.S returns #DIV/0!.
FAQ
- Is it the same as VARP?
- VARP is the older compatibility name; VAR.P is the new one.
- When P and when S?
- P when you have all the data, S when you have a sample of it.