KatInterview

Handling Skewed, Zero-Inflated Revenue Metrics in A/B Tests

Statistics & ExperimentsModel answer
HardModel answerStatistics & Experimentsab-testinghypothesis-testingbootstrap

Last updated

Select and justify statistical inference methods for a revenue metric plagued by zero-inflation, heavy tails, and unequal variance between treatment arms.

Scenario

Your team ships a new in-app feature intended to grow revenue per user session. After the experiment concludes, you examine the primary metric and notice three things:

  • Lots of zeros. Roughly 30% of users in both arms opened the app but never completed a purchase, producing an exact value of $0.
  • Right-skewed non-zero values. Among users who did buy, a small number of high-spend users pull the distribution far to the right.
  • Unequal variance across arms. The treatment arm has noticeably higher spread than the control arm, which is typical when a feature shifts some users toward much larger baskets.

What you are asked to do

  1. Explain concretely why a standard two-sample t-test produces unreliable p-values and confidence intervals under these three conditions.
  2. Propose two distinct inferential approaches that address these problems. For each one:
    • Describe how it handles the zeros and the skewness.
    • State what quantity it actually estimates (the estimand).
    • Explain how you would interpret the resulting effect size in business terms, and flag any common misinterpretation traps.

A strong answer stays anchored to what the business cares about measuring, rather than defaulting to a convenient test without asking what its output means.

Hints

Hint 1

Start by listing the t-test's assumptions one by one and map each assumption to a specific problem in this data. Heteroskedasticity, slow CLT convergence, and a mixture distribution are three separate failure modes — treat them separately before discussing fixes.

Hint 2

For Approach 1, ask yourself whether you need to change the estimand or just make inference more robust around the raw mean difference. The bootstrap can do the latter, but not all bootstrap intervals handle skewness equally well — think about which variant corrects for asymmetric coverage error.

Hint 3

For Approach 2, notice that E[Y] = P(Y > 0) × E[Y | Y > 0]. That factorization suggests modeling two processes instead of one. If you use a log transform on the positive values, be very careful about what exp(β) actually represents when the two arms have different variances — this is the retransformation trap.