You ask in plain words
With whatever notes or documents you already have.
What is the overall average if I only have each group’s average and size?
Combine the non-overlapping groups in minutes. Their means are exact.
Your notes
group|count|mean North|3|4 South|9|8 East|0|blank
Your agent answers with a checked method
It runs 4 checks before it replies.
Your agentUsing this skill
The overall wait was 7 minutes across 12 respondents. North contributed 12 person-minutes and South 72. East had no respondents.
- Averaging the displayed means gives every group the same weight even when their sizes differ.
- Using percentages as counts mixes units. Ask for the underlying counts or appropriate weights.
- Treating a missing mean as zero, or quietly dropping that group, changes the population and the result.
- Combining medians as if they were means. The overall median cannot be recovered from group medians.
Why that’s right. North contributes 12 person-minutes and South contributes 72, spread across 12 respondents.
Is it the right skill?
What it’s for, and when another skill or a person is the better choice.
Use it when
- Someone has the mean and the count for each group and wants the overall mean.
- A report averages the group averages, and the overall figure looks wrong.
- One group's mean is missing, or a group has no observations.
Not the right skill when
- Combining medians, percentiles or other summaries that are not arithmetic means. These cannot be rebuilt from group values; the underlying data is needed.
- Survey estimates that need design weights or a margin of error. Use the survey's own weighting method.
The method it follows
6 steps, in order, every time.
- Verify the groups do not overlap and that each count is the number of observations behind that particular mean. A headcount for a different measure is an invalid weight.
- Check units: every mean in the same unit, such as minutes or pounds, and every count a number of observations rather than a percentage.
- Multiply each group mean by its count and add the products. Total the counts separately and divide once, at the end.
- A zero-count group contributes nothing. If a group with a positive count has no mean, the combined mean is unknown. A negative or missing count needs clarification.
- If the group means are rounded, label the result as reconstructed from the reported means. Keep full precision and round the result only after dividing.
- Show each group's contribution, the total count and the overall mean. If someone has been using the simple average of the means, show both so the difference is visible.
What to have ready
If something’s missing, your agent asks before it starts.
- Each group’s name, mean and non-negative observation count, all in the same units.
- Confirmation that the groups partition the population and the means use comparable observations.

What is the count behind each group's mean? A headcount for a different measure gives the wrong weight.

Do the groups overlap, or could any person or item appear in more than one group?

Are the group means exact or rounded, and in what unit?
Try it on your own AI
A new question with a known answer, so you can check your AI gets it right.
-
Copy the questionCombine waiting times in seconds for the full day. Return only JSON following the skill’s test format. shift|count|mean Day|20|11 Night|5|blank
-
Ask your AI in a new chat
Give it this skill first, then paste the question. It replies with a short block of data in the format the skill asks for.
-
Show the answer and why
Dropping the night shift or assigning zero would change the population and the mean.
{
"observations": 25,
"mean": null,
"missing_groups": [
"Night"
]
}
The check runs in your browser. Nothing you paste is sent anywhere.
Where the method comes from
Free to use and adapt with credit (CC BY 4.0).
Use this skill in Raq.com
Add it to your Skill Library and your agent applies it whenever a request matches. Edit it for your own business and keep every version.