MLCrack

    EXPERIMENTATION & A/B TESTING · INTERVIEW QUESTION

    What is power in A/B testing?

    🟢 beginner · A/B Testing

    Hint: Focus on the decision rule, assumptions, and failure mode behind a/b testing.

    Answer

    Power is the probability of detecting an effect of a specified size when it exists. Low-powered tests often produce inconclusive or exaggerated results.

    Interview reasoning

    For a simple two-arm mean comparison, sample size grows with variance and roughly inverse squared detectable effect. Binary outcomes also depend on baseline conversion and the absolute effect.

    Power is the probability of detecting a specified effect under the design assumptions. Required sample size depends on variance, alpha, power, allocation, minimum effect and analysis unit. For equal-sized independent arms, a common normal approximation is n per arm approximately 2 sigma squared (z_alpha/2+z_beta)^2 divided by delta squared.

    Worked example. Increasing power from 80% to 90% generally requires more independent units at the same effect and alpha.

    Validation

    Plan alpha, power, allocation, MDE, and stopping rules using historical variability.

    Check assumptions with historical unit-level variance and simulation; account for clustering, multiple comparisons and outcome maturity.

    Common pitfalls

    A target effect chosen after observing results does not recover prospective power.

    Relative 1% and absolute one percentage point are different deltas. Large row counts do not create power when independent units are few.

    Likely follow-up: Plan alpha, power, allocation, MDE, and stopping rules using historical variability.