Combining two group means: why the group sizes belong in the calculation

Two groups can have different means and different numbers of observations. When we join their observations, the combined mean must account for both facts. Taking the two means and averaging them equally can answer a different question. This activity from Academia Master Trader uses four small observations to show where the group sizes enter the calculation and why keeping them preserves the meaning of the original data.

Start with the observations, not the summary

Group A contains one observation, with a value of two. Its arithmetic mean is two because its total is two and its count is one. Group B contains three observations, each with a value of six. Its total is eighteen, its count is three, and its arithmetic mean is six.

If we combine the groups, the full list is two, six, six and six. The total is twenty and the count is four. The combined arithmetic mean is therefore twenty divided by four, which equals five.

Group A has one value of two and Group B has three values of six; the combined mean is five

Original illustration: Group A has one observation and Group B has three. The combined mean is five. Giving the two group means equal weight produces four, which is not the mean of the four original observations.

Recover each group total from its mean

A group mean is its total divided by its number of observations. Reversing that relationship lets us recover a group total: multiply the mean by the count. For Group A, one times two gives a total of two. For Group B, three times six gives a total of eighteen.

We then add the group totals and divide by the combined count. In this example, the calculation is one times two plus three times six, all divided by one plus three. The numerator is twenty and the denominator is four, so the result is five.

The counts act as weights. Each group contributes according to the number of original observations it represents. This is appropriate because the task gives every original observation equal weight. Group B contributes three observations, so its mean receives three times the weight of Group A's mean.

Ask what an unweighted mean of means describes

The simple average of two and six is four. That calculation gives each group equal weight, regardless of how many observations the group contains. It is a valid arithmetic operation, but it does not preserve equal weight for the four original observations.

If the groups had the same number of observations, the simple average of their means would equal the combined mean. With unequal group sizes, it can still coincide in special cases, such as identical group means. It is not a general method for combining observations.

The question determines the weights. If someone deliberately wants to give two groups equal influence, averaging their means may match that goal. They should describe the result as an equally weighted average of the group means rather than quietly presenting it as the mean across all observations.

Check that the summaries can be combined

Before applying the calculation, make sure the groups measure the same kind of quantity in the same units. Their counts should refer to the observations behind the reported means. Avoid counting the same observation twice when groups overlap.

Use the most precise available group means. If a reported mean was rounded, multiplying it by the count reconstructs an approximate total rather than necessarily the exact original total. The combined result will inherit that uncertainty.

Finally, distinguish the arithmetic mean from other summaries. Group medians alone do not generally let us reconstruct a combined median by this method. The calculation works here because an arithmetic mean and its count together carry the information needed to recover the group total.

Discover the Academia Master Trader project and its structure at academiamastertrader.com.br. Continue exploring the materials through the Aprenda link below.

Aprenda: https://academiamastertrader.com.br/materiais/aprenda/