Why is post-hoc subgroup slicing of an experiment dangerous, and how should you handle heterogeneous effects?

Quick Overview

Asks why slicing A/B test results into subgroups after the fact is risky and how to analyze heterogeneous treatment effects properly. Tests your grasp of multiple comparisons, underpowered segments, interaction tests and confirmation of exploratory findings.

Why is post-hoc subgroup slicing of an experiment dangerous, and how should you handle heterogeneous effects?

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: hard

Interview Round: Other

Why is post-hoc segmentation or slicing an experiment by subgroups dangerous, and how should you handle heterogeneous treatment effects? ```hint Count the chances Suppose the treatment has the same effect for everyone and you test 20 segments at a 5% level. What is the chance that at least one segment looks significant? ``` ```hint Look at the size of each slice A segment holding 10% of users has a much wider confidence interval than the full experiment. What does that do to the segments that happen to look best? ``` ```hint Which comparison answers the question "Significant in segment A, not significant in segment B" describes two separate tests. What single test would tell you the effects differ? ``` ### What a Strong Answer Covers - Why testing many post-hoc slices inflates the false-positive rate, with the arithmetic - Why small subgroups give noisy and exaggerated estimates - How choosing cuts after seeing results, or cutting on variables the treatment can change, biases the conclusions - A disciplined way to estimate and test heterogeneous effects - How exploratory findings get confirmed before anyone acts on them ### Follow-up Questions - Why is slicing by a variable the treatment can change, such as "users who opened the new feature", biased even when you look at only one slice? - How large does an experiment need to be to detect an interaction effect half the size of the main effect? - When would you choose Benjamini-Hochberg over Bonferroni for a segment analysis? - How would you validate a causal forest's estimated effects before using them to target users?

Overview: Asks why slicing A/B test results into subgroups after the fact is risky and how to analyze heterogeneous treatment effects properly. Tests your grasp of multiple comparisons, underpowered segments, interaction tests and confirmation of exploratory findings.

General logo
General
Nov 24, 2026
hardData ScientistOtherAnalytics & Experimentation
0
0

Why is post-hoc segmentation or slicing an experiment by subgroups dangerous, and how should you handle heterogeneous treatment effects?

What a Strong Answer Covers Guidance

  • Why testing many post-hoc slices inflates the false-positive rate, with the arithmetic
  • Why small subgroups give noisy and exaggerated estimates
  • How choosing cuts after seeing results, or cutting on variables the treatment can change, biases the conclusions
  • A disciplined way to estimate and test heterogeneous effects
  • How exploratory findings get confirmed before anyone acts on them

Follow-up Questions Guidance

  • Why is slicing by a variable the treatment can change, such as "users who opened the new feature", biased even when you look at only one slice?
  • How large does an experiment need to be to detect an interaction effect half the size of the main effect?
  • When would you choose Benjamini-Hochberg over Bonferroni for a segment analysis?
  • How would you validate a causal forest's estimated effects before using them to target users?