Onemain Financial · Statistics & Data Analysis
Differentiate and control Type I/II errors
TrueInterview
October 7, 2026 · 1 min read
Imagine you are setting up a two-arm A/B test that measures sign-up conversion. The baseline conversion rate is . The goal is to detect an absolute increase of (from to ) with a two-sided significance level and power , using a two-proportion z-test.
- Work out the necessary sample size per arm, showing the formula and the values you plug in.
- Suppose you also track 10 secondary metrics and need to control the family-wise error rate using Bonferroni correction. What per-metric should you use, and how does that affect the required sample size?
- If you intend to check the results daily for 14 days, describe a valid sequential testing approach (such as O’Brien–Fleming or Pocock alpha-spending) and explain how it changes the stopping boundary.
- Explain the practical consequence of a Type II error in this test, and give one concrete way to lower without raising , quantifying the trade-off.
Overview: This question tests knowledge of core hypothesis testing concepts: Type I and Type II errors, statistical power and sample size formulas for two-proportion tests, family-wise error rate control (e.g., Bonferroni), and sequential analysis with alpha-spending.
This question was shared as part of a data scientist interview experience.
Loading comments…