InterviewStack.io LogoInterviewStack.io

Test Design & Avoiding Confounds Questions

Learn common experiment pitfalls: time-of-week biases (weekend vs. weekday users behave differently), seasonal effects (holiday periods skew conversion), learning effects (users adapt to new features over time), and network effects (one user's action influences another). Practice identifying these confounds in scenarios and designing tests to avoid them. Understand random assignment and why it matters.

MediumTechnical
101 practiced
When the primary metric is heavily skewed (e.g., purchase amounts with many zeros and a heavy right tail), what robust metrics and analysis strategies would you recommend to estimate treatment effect reliably and avoid misleading significance? Discuss median, trimmed means, log-transformations, bootstrap, and two-part models.
HardSystem Design
82 practiced
You want to test a change aimed at improving 30-day retention in a mobile app that shows strong weekly and seasonal retention patterns. Propose experiment duration, cohort and sample-size strategy, ramp plan, and detailed analyses (cohort survival curves, Cox models, and steady-state detection) to distinguish short-term engagement bumps from durable retention improvements.
HardTechnical
90 practiced
Implement a block-wise permutation test in Python for an experiment randomized within daily blocks. Input is a pandas DataFrame with columns ['user_id', 'day', 'variant', 'metric']. Permute variants only within each 'day' block N times, compute the distribution of mean(metric_treatment) - mean(metric_control) under the null, and return a two-sided p-value. Outline complexity and memory considerations.
MediumTechnical
161 practiced
You want to test a new 'share' button on a social platform where acceptance by one user can cause friends to adopt features (spillover). Design an experiment to measure both direct treatment effects and indirect spillover. Discuss randomization unit (user vs cluster), metrics to capture spillover, identification strategy, and handling of incomplete network visibility.
EasyTechnical
78 practiced
You ran an A/A test for two identical UI variants and see a 2.5% absolute difference in conversion between groups with p < 0.05. List possible causes (both statistical and engineering), describe diagnostics you'd run to root-cause the issue, and propose short-term and long-term remediations.

Unlock Full Question Bank

Get access to hundreds of Test Design & Avoiding Confounds interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.