PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Statistics & Math/HBO

Choose tests for rare-event A/B analysis

Last updated: Mar 29, 2026

Quick Overview

This question evaluates expertise in statistical experiment design for rare binary outcomes, covering hypothesis test selection for low-event-rate proportions, sample-size calculation with and without continuity correction, variance reduction via CUPED, confidence-interval construction for risk difference and relative risk, interim alpha spending, and Bayesian Beta–Binomial modeling; it falls under the Statistics & Math domain with emphasis on A/B testing and experimental design. It is commonly asked to assess how a candidate balances statistical validity, power, and sequential monitoring in low-probability A/B tests and requires both conceptual understanding of inference principles and practical application skills such as analytic sample-size derivation and sequential decision criteria.

  • hard
  • HBO
  • Statistics & Math
  • Data Scientist

Choose tests for rare-event A/B analysis

Company: HBO

Role: Data Scientist

Category: Statistics & Math

Difficulty: hard

Interview Round: Take-home Project

You observe binary cancellation outcomes in an A/B test with very low event rates. Baseline weekly cancellation p0 = 0.003; you want to detect p1 = 0.0035 with alpha = 0.05 (two-sided) and power = 0.80 using equal allocation. (1) Decide whether to use a normal approximation z-test, Fisher's exact test, or a mid-p variant, and justify based on expected counts; (2) Compute/outline the sample size per arm for the z-test with and without a continuity correction; (3) Show how CUPED with a continuous covariate (pre-period watch-hours) changes the variance and effective sample size—derive the adjustment using 1−R^2; (4) Provide an exact or conservative confidence interval for the risk difference and for the relative risk; (5) If you perform weekly interim looks (4 total), specify an alpha-spending function and approximate adjusted critical values; (6) Explain when a Bayesian Beta–Binomial model would be preferable, and how you would set priors and a stopping rule (e.g., P(Δ<0) > 0.95).

Quick Answer: This question evaluates expertise in statistical experiment design for rare binary outcomes, covering hypothesis test selection for low-event-rate proportions, sample-size calculation with and without continuity correction, variance reduction via CUPED, confidence-interval construction for risk difference and relative risk, interim alpha spending, and Bayesian Beta–Binomial modeling; it falls under the Statistics & Math domain with emphasis on A/B testing and experimental design. It is commonly asked to assess how a candidate balances statistical validity, power, and sequential monitoring in low-probability A/B tests and requires both conceptual understanding of inference principles and practical application skills such as analytic sample-size derivation and sequential decision criteria.

HBO logo
HBO
Oct 13, 2025, 9:49 PM
Data Scientist
Take-home Project
Statistics & Math
1
0
Loading...

A/B Test for Rare Weekly Cancellations — Planning, Testing, and Monitoring

You are testing whether a product change affects weekly cancellation probability in a streaming service. Cancellations are rare and binary (canceled vs. not). Baseline weekly cancellation probability is p0 = 0.003; you want to detect an increase to p1 = 0.0035 with two-sided alpha = 0.05 and power = 0.80 using equal allocation.

Perform the following:

  1. Test choice
  • Decide whether to use a normal-approximation z-test, Fisher's exact test, or a mid-p variant, and justify using expected counts criteria.
  1. Sample size (z-test)
  • Compute/outline the required sample size per arm for the two-sample z-test for proportions:
    • Without continuity correction (CC).
    • With a CC.
  1. CUPED variance reduction
  • Show how using a continuous pre-period covariate (e.g., watch-hours) via CUPED changes the variance and effective sample size. Derive the adjustment using the factor 1 − R^2.
  1. Confidence intervals
  • Provide an exact or conservative 95% confidence interval for:
    • The risk difference (p1 − p0).
    • The relative risk (p1 / p0). State clearly how to construct these intervals from observed counts.
  1. Interim monitoring
  • If you perform 4 weekly interim looks (including the final), specify an alpha-spending function and give approximate adjusted critical values at each look.
  1. Bayesian alternative
  • Explain when a Bayesian Beta–Binomial model would be preferable. Specify reasonable priors and a sequential stopping rule (e.g., stop for harm if P(Δ > 0) > 0.95, where Δ = p_treat − p_control), and how to compute it.

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Statistics & Math•More HBO•More Data Scientist•HBO Data Scientist•HBO Statistics & Math•Data Scientist Statistics & Math
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.