Weight the groups

Combine totals correctly and see how changing group proportions can reverse a comparison

Weight a mean by its group size

28× 10× 20(2 × 10 + 8 × 20)/10 = 18
The bar widths represent 2 and 8 observations, not equal group weights.

One group has 2 observations with mean 10; another has 8 with mean 20. Their totals are 20 and 160, so the combined mean is 180/10 = 18.

More

Averaging the two means gives 15, which gives the groups equal weight despite their different sizes. Multiply each mean by its group size, add the totals, then divide by the total count.

Lesson help

Combine totals, not unweighted averages of unequal groups. Check group rates and group sizes before interpreting an overall comparison; a different mix can reverse it.

About this lesson

Try the method in a practice when you are ready.

Report

Weight a mean by its group size

One group has 2 observations with mean 10; another has 8 with mean 20. Their totals are 20 and 160, so the combined mean is 180/10 = 18.

Averaging the two means gives 15, which gives the groups equal weight despite their different sizes. Multiply each mean by its group size, add the totals, then divide by the total count.

28× 10× 20(2 × 10 + 8 × 20)/10 = 18
The bar widths represent 2 and 8 observations, not equal group weights.

Watch a comparison reverse

Programs A and B serve easier cases in group 1 and harder cases in group 2. B has a higher success rate in each group: 19/20 > 90/100 and 40/100 > 3/10. Yet overall A has 93/110, above B’s 59/120.

This is a Simpson reversal. A serves mostly easier cases, while B serves mostly harder ones. The overall rates describe their actual mixes; they do not establish which program is better for comparable cases.

12ΣA90/1003/1093/110B19/2040/10059/120
Columns 1 and 2 show the case groups; Σ combines successes and cases.

Compare a shared group mix

Now compare both programs with 100 cases in each group, keeping their group success rates unchanged. A has 90 + 30 successes; B has 95 + 40.

The common mix gives both groups equal weight for both programs. Which program has the higher combined rate? This compares the programs on the same mix of cases, so only their group rates can make a difference.

12ΣA90/10030/100?/200B95/10040/100?/200
Each program now has 100 cases in each group.

Try it

With 100 cases in each group, which program has the higher combined rate?

  1. Program A
  2. Program B
Show the answer

Program B

Correct. B has 95 + 40 = 135 successes out of 200, above A’s 120/200. At the same group mix, B’s advantage within each group remains visible overall.

Enable JavaScript to answer interactively and save your place.

Practice When averages mislead

Sign in free

Practice without limits and keep your progress.