To combine group means, weight each mean by the number of observations it represents
Suppose one group contains two observations with a mean of 10, while another contains six observations with a mean of 20. The mean across all eight observations is 17.5, not 15. The larger group contributes more observations, so it must have more weight in the combined result.
A mean is a total divided by a count. When we join groups, we need to join their totals and their counts. Simply averaging the two group means gives each group equal influence, even when their sizes differ. That answers a different question from finding the mean of all the individual observations.

Recover each group's total first
If a group has n observations and mean m, its total is n × m. For the first group, the total is 2 × 10 = 20. For the second, it is 6 × 20 = 120. Their combined total is 140, and their combined count is 2 + 6 = 8.
Dividing gives 140/8 = 17.5. In the illustration, all observations within each group happen to be equal, making the counting easy to see. That equality is not required. The first group could contain 8 and 12, and the same calculation would still apply because its count and mean are unchanged.
For two nonempty groups, the rule is (n₁m₁ + n₂m₂)/(n₁ + n₂). The observations must measure the same quantity in compatible units, and the groups must form the intended combined set without unintended duplicate counting.
The weights can also be written as shares
The first group represents 2/8 of all observations, and the second represents 6/8. We can therefore calculate (2/8) × 10 + (6/8) × 20 = 2.5 + 15 = 17.5. These normalized weights add to one.
Both forms express the same operation. The total-and-count form makes the underlying arithmetic clear. The share form makes each group's relative influence visible. If every positive weight is multiplied by the same positive constant, the weighted mean remains unchanged because numerator and denominator increase by the same factor.
Equal weighting is a separate choice
The calculation (10 + 20)/2 = 15 is the equally weighted mean of the two group means. It may be appropriate when the goal explicitly gives the two groups equal importance. It is not the mean of the eight observations in this example.
If two groups have equal counts, their combined mean does equal the simple average of their means. Unequal counts do not guarantee a different numerical answer in every case: if both group means are identical, either method gives that common value. The counts still explain which method matches the question.
Check the result against the inputs
With positive group sizes, the combined mean must lie between the smallest and largest group means. Here, 17.5 lies between 10 and 20 and is closer to 20, consistent with the second group's larger count. A result outside that interval would signal a problem in the calculation or inputs.
Use exact totals when they are available. A reported group mean may already have been rounded, and multiplying that rounded value by the count may not recover the original total exactly. State any resulting approximation rather than presenting it as exact.
Before combining averages, identify what each average measures, how many observations it represents, and whether those observations belong together. Then add totals, add counts, and divide. The arithmetic stays connected to the individual observations rather than treating every summary as an equally sized group.
Further educational resources at academiamastertrader.com.br.