Combined population variance
Combined population variance
Combined population variance · μ,v,σ
- 102 bytes
- COMP mode
Worked examples
Example 1
Class A has 12 scores with mean 60 and population variance 16. Class B has 8 scores with mean 75 and population variance 25. What is the combined population variance of all 20 scores?
Answer
Standard solution (without a calculator)
- Count all scores: N=12+8=20. The groups are disjoint, so their population summaries can be combined.
- Find the combined mean: μ=(12×60+8×75)/20=66.
- Account for both spreads: v=[12(16+(60−66)²)+8(25+(75−66)²)]/20=[12(16+36)+8(25+81)]/20=73.6.
- Check the two contributions: Within-group variance is (12×16+8×25)/20=19.6; between-group variance is (12×8/20²)(75−60)²=54, giving 73.6.
- Choose the option: The combined population variance is 73.6 score², option C.
Example 2
Three experiment readings have mean 4 and population variance 2. A fourth reading is 10. Find the combined mean, population variance and population standard deviation, rounding only the standard deviation to three decimal places.
Answer
Standard solution (without a calculator)
- Represent the fourth reading: n₁=3, μ₁=4, v₁=2; the singleton has n₂=1, μ₂=10, v₂=0.
- Find the mean: N=3+1=4 and μ=(3×4+1×10)/4=5.5.
- Find the population variance: v=[3(2+(4−5.5)²)+1(0+(10−5.5)²)]/4=8.25.
- Take the square root: σ=√8.25=√33/2≈2.872281323.
- Round as requested: μ=5.5, v=8.25 and σ≈2.872 to three decimal places.
Example 3
One batch of 5 temperature errors has mean −2 °C and population variance 0 °C². A disjoint batch of 7 has mean 4 °C and population variance 9 °C². Find the combined mean, population variance and population standard deviation in exact surd form.
Answer
Standard solution (without a calculator)
- Count and average: N=5+7=12 and μ=[5(−2)+7×4]/12=1.5 °C.
- Find the within-group part: (5×0+7×9)/12=5.25 °C².
- Find the between-group part: (5×7/12²)[4−(−2)]²=8.75 °C².
- Combine and take the root: v=5.25+8.75=14 °C², so σ=√14 °C≈3.741657387 °C.
- State exact results: μ=1.5 °C, v=14 °C² and σ=√14 °C.
When to use it
For two disjoint groups, each population variance measures spread around its own group mean. The combined variance adds within-group spread and the spread between the two means, weighted by group size; its denominator is the total population count N=n₁+n₂.
Enter both group summaries
- Enter group 1 as A=n₁, B=μ₁ and C=v₁, then group 2 as D=n₂, X=μ₂ and Y=v₂. The six prompts appear in that order; use the same measurement unit for both groups.
- The counts must be positive integers and v₁,v₂ must be nonnegative population variances. If given standard deviations, square them before entry. A singleton group has population variance 0.
Read the combined measures
- Read μ, then v, then σ=√v. Press EXE at the first two Disp pauses and AC after the final σ display.
- Nonpositive group sizes or negative variances trigger Math ERROR. The program does not test whether a positive count is an integer or whether reported group summaries are mutually possible.
Question types
- Original HKDSE Mathematics Compulsory Part statistics practice can combine two populations from their counts, means and population variances. Show the population denominator N and distinguish variance from standard deviation.
Before you start
- Use COMP and an empty P1 with at least 102 bytes; P1–P4 share 680 bytes. The code does not use trigonometry, so the angle unit does not affect the result.
- The groups must be disjoint. A=n₁ and D=n₂ must be positive whole-number counts; C=v₁ and Y=v₂ must be nonnegative population variances. The calculator checks signs, not integrality or summary consistency.
- Enter population variance, not sample variance or standard deviation. If a group contains just one observation, its population variance is 0; do not apply a sample-variance denominator.
- Means and standard deviations use the original measurement unit; each variance uses its square. Use a consistent unit for both groups and state squared units for v.
- Enter all six values explicitly. A blank EXE can reuse a stored value; enter 0 for a zero variance or mean. Negative means are allowed and require (−).
- The program overwrites A, B, C, D and M and uses X and Y; save stored values first. Its last display is σ, not v.
- Very large or close group means can lose numerical precision in the weighted calculation. Keep exact values in written work and round only to the requested accuracy.
Checking access…