KatInterview

A/B Test Plan for a Selfie Liveness Step in Signup

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsab-testingexperiment-designpower-analysis

Last updated

Plan an experiment for a new selfie-based liveness check in onboarding: pick metrics, choose a randomization unit that survives fraudster behavior, size the test, and handle uneven pass rates.

Scenario

A financial platform wants to add a selfie-based liveness check to its identity verification step during onboarding. The product team expects it to cut fraudulent sign-ups by about 40%, but worries that the extra step will push legitimate applicants to abandon the flow. You must design an online experiment to decide whether to ship it.

What to cover

  1. Metrics. Choose one primary metric and at least two guardrail metrics. Justify the denominators and say how you would handle the fact that fraud labels arrive late.
  2. Randomization. Pick the unit of assignment (user, IP address, device, or something else). Explain your reasoning, especially around interference between arms.
  3. Sample size. The baseline conversion rate is 20%, and the business needs to detect an absolute drop of 0.5 percentage points. List the factors that determine the required sample size and show the calculation.
  4. Bias and fairness. Liveness checks may pass at different rates across demographics and device types. Explain how you would account for this in design and analysis.

Things to keep in mind

  • Fraudsters often create several accounts. Consider how that distorts results if you randomize by user.
  • Verification is a gate that every new customer passes through. A bad treatment could block a whole cohort of legitimate applicants, so think about risk control during the rollout.

Hints

Hint 1

Ask who is in the denominator. If the treatment filters people out, a rate computed over approved accounts is distorted by selection, so think about measuring per applicant who reached the step.

Hint 2

Ask what happens to a fraudster rejected in treatment. If they can simply retry and land in the other arm, the arms are no longer independent. Consider assigning by a cluster of linked identifiers (device, phone, payment instrument) instead of by account.

Hint 3

For the sample size, use the two-proportion formula with p1 = 0.20 and p2 = 0.195, and then list what inflates it: clustering, multiple metrics, a separate calculation for the rare fraud outcome, and the label maturation window.