g↗genai/ learner
Data and Evaluation / Lesson 10

Performance across different groups

Compare results across groups, not just averages. A strong overall accuracy score can still hide a weaker result for some people.

Concept + interactive labBeginner friendly

One average can hide a group gap.

A common misconception is that average accuracy shows fairness. Accuracy is the share of test cases predicted correctly, while an overall score combines all groups in one number. That number alone cannot show whether performance is similar across groups.

A subgroup is a defined slice of test cases, such as calls from speakers with a particular accent. Disaggregated evaluation means reporting a result separately for each subgroup. This lesson uses accuracy first, then checks specific errors and combinations of traits.

Worked example: CityBus Voice Desk (invented)

This fictional phone helper classifies rider calls as Urgent (send to a dispatcher) or Routine (answer a timetable question). On 200 test calls, it gets 172 right, so overall accuracy is 86%.

Now split those same test calls by accent. Local accent calls are 160 of 200 and score 90%; Regional accent calls are 40 and score 70%. The larger group contributes more calls to the combined score, so its stronger result carries more weight. These illustrative values add up to the same 86% overall accuracy.

Test groupCallsCorrectAccuracy
All calls20017286%
Local accent16014490%
Regional accent402870%
One average, two group scores: 200 calls score 86% overall, splitting into Local accent (160 calls, 90%) and Regional accent (40 calls, 70%). The Analogy card says many dinner reviews weigh more; Key takeaways say one average can hide a gap, compare each group’s score, and group size affects the average.
The overall score summarizes both groups, while the split makes the 20-point difference visible.

The same accuracy can hide different errors.

Accuracy counts every correct call together. A false negative is an urgent call marked Routine; a false positive is a routine call marked Urgent. The rate for each error divides that error count by the calls that truly belonged in its category.

An error disparity is a difference between groups in accuracy or in a specific error rate. For example, two groups can each have 20 calls and 80% accuracy while one has four false alarms and the other has four missed urgent calls. Their accuracy matches, but the kinds of mistakes differ.

Same score, different errors: Group A and Group B each have 20 calls and 80% accuracy; Group A has 0 missed urgent and 4 false alarms, while Group B has 4 missed urgent and 0 false alarms. The Analogy card says same count wrong, different items; Key takeaways say accuracy counts all mistakes alike, check errors that matter here, and compare groups by error type.
Which error matters more depends on what the system is meant to do and who may be harmed.

Combine traits to check more specific groups.

An intersectional subgroup combines two or more attributes. Here, we combine speaker accent with phone line quality: Quiet or Noisy. This can reveal a pattern that either attribute alone might blur.

In the same fictional 200-call test, accuracy is 95% for Local + Quiet, 90% for Regional + Quiet, 85% for Local + Noisy, and 50% for Regional + Noisy. The 50% result is a signal to investigate, not proof of why the system struggled.

Two traits reveal a gap: a grid combines Quiet and Noisy phone lines with Local and Regional accents; accuracy is 95%, 85%, 90%, and 50%, with Regional plus Noisy lowest. The Analogy card says two conditions can compound; Key takeaways say check combinations of traits, one slice may reveal more, and small groups need caution.
The lowest cell is worth checking, but the score alone does not identify a cause.

Explore the same calls by group.

This lab uses the same invented 200 calls. A metric is the particular measurement being compared; here you can choose accuracy, missed urgent rate, or false alarm rate. Each view regroups the test results without changing the calls.

  1. Start with the combined accuracy score.
  2. Choose By accent to compare the two subgroup scores.
  3. Select Missed urgent (FN rate) to compare that error rate by accent.
  4. Choose Accent + line quality and notice both the result and the small-sample note.

CityBus Voice Desk — Evaluation Slicer

1. Choose how to slice the 200 test calls
2. Choose which metric to inspect
Showing: Overall (combined) · AccuracyCombined view (no split)
All test calls86%

200 calls (100% of test set) · 172 of 200 calls correct

Combined across all 200 calls, accuracy is 86%. Switch to a subgroup view to see what this average hides.

Illustrative lab: all 200 calls and outcomes are invented for this lesson, not measurements from a real transit system.

Read subgroup results with care.

  • Small groups make estimates less steady. In the Regional + Noisy slice, there are only 10 urgent calls. One additional missed call changes that rate by 10 percentage points.
  • A gap is a clue, not a diagnosis. The scores do not tell us whether the cause is training examples, recording quality, labels, or another factor.
  • Groups depend on available data. Teams should only compare attributes that are recorded appropriately and can be used responsibly; real people may not fit neatly into a category.
✎ Try it yourselfKnowledge check · Practice only

Check your understanding.

A fictional clinic’s triage tool has 91% overall accuracy across 1,000 cases: 850 younger adults and 150 older adults. What is the best next evaluation step?

Take this with you.

Compare subgroup results alongside the overall average. Check the accuracy and error types that matter for the task, and examine combinations of traits when the data supports a useful comparison. A gap points to a question worth investigating; it does not prove a cause by itself.

Return to the Data and Evaluation learning path.