How do you measure performance gaps across demographic subgroups that have very few samples?

Quick Overview

Asks how to measure a model's performance gaps across demographic subgroups when some groups have very few evaluation samples. Tests confidence intervals for small proportions, shrinkage across groups, significance testing over many slices, and honest reporting rules.

How do you measure performance gaps across demographic subgroups that have very few samples?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How do you measure performance gaps across demographic subgroups that have very few samples? For example, a model is evaluated on a test set where some subgroups have only a few dozen examples. How do you decide whether an observed difference in accuracy or recall is real? ```hint Count what drives the metric Before trusting a subgroup's recall, ask how many examples actually enter that number. It may be far fewer than the group's sample size. ``` ```hint Many slices, small n Think about what happens to point estimates at small n, and how many slices you are comparing at once. ``` ### What a Strong Answer Covers - How to attach uncertainty to small-group metrics and to the gap itself - Ways to stabilize noisy small-group estimates by borrowing strength across groups - How to test a gap formally, including the multiple-comparisons problem across many slices - Options for improving the evaluation data and rules for reporting results with too little evidence ### Follow-up Questions - How would you choose the strength of the prior in a beta-binomial shrinkage model? - Intersectional slices get small very quickly. How would you decide which ones to report? - How do you report a fairness metric such as an equal opportunity gap when one group has only a handful of positives? - When is it reasonable to merge two subgroups, and what can go wrong if you do?

Overview: Asks how to measure a model's performance gaps across demographic subgroups when some groups have very few evaluation samples. Tests confidence intervals for small proportions, shrinkage across groups, significance testing over many slices, and honest reporting rules.

PracHub logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

How do you measure performance gaps across demographic subgroups that have very few samples?

For example, a model is evaluated on a test set where some subgroups have only a few dozen examples. How do you decide whether an observed difference in accuracy or recall is real?

What a Strong Answer Covers Guidance

  • How to attach uncertainty to small-group metrics and to the gap itself
  • Ways to stabilize noisy small-group estimates by borrowing strength across groups
  • How to test a gap formally, including the multiple-comparisons problem across many slices
  • Options for improving the evaluation data and rules for reporting results with too little evidence

Follow-up Questions Guidance

  • How would you choose the strength of the prior in a beta-binomial shrinkage model?
  • Intersectional slices get small very quickly. How would you decide which ones to report?
  • How do you report a fairness metric such as an equal opportunity gap when one group has only a handful of positives?
  • When is it reasonable to merge two subgroups, and what can go wrong if you do?