Explain P-Value and Errors in A/B Testing
A/B Test Design and Analysis: Core Concepts
Scenario
You are advising on the design and analysis of an A/B test for a new product feature (e.g., a checkout or payments flow change). Assume standard online experimentation: users are randomly assigned to control (A) or treatment (B), and we observe conversion and risk outcomes.
Questions
-
What does a p-value represent in the context of an experiment?
-
Define Type-I and Type-II errors and give business-relevant examples.
-
Describe Simpson’s Paradox and why it is dangerous in experiment readouts.
-
How would you select primary, secondary, and guard-rail metrics for this experiment?
-
If randomization were impossible, name and briefly describe two causal-inference methods you would use.
Constraints & Assumptions
-
Preserve the scope, facts, inputs, and requested outputs from the prompt above.
-
If the prompt leaves a detail unspecified, state a reasonable assumption before relying on it.
-
Keep the answer interview-ready: concise enough to present, but concrete enough to implement or evaluate.
Clarifying Questions to Ask
-
Clarify the business objective, unit of analysis, time window, exposure definition, and primary metric.
-
State assumptions about instrumentation, randomization, sample size, and data quality.
-
Separate descriptive analysis from causal claims.
What a Strong Answer Covers
-
A metric framework with primary, guardrail, and diagnostic metrics.
-
A credible analysis or experiment design with clear assumptions and bias checks.
-
SQL/statistical logic for segmentation, variance, confidence, and data validation where relevant.
-
An actionable recommendation that explains trade-offs and next steps.
Follow-up Questions
-
What sanity checks would you run before trusting the result?
-
How would you handle novelty effects, seasonality, or selection bias?
-
What decision would you make if metrics disagree?