← TikTok Interview Insights

TikTok·Data Scientist·Technical Phone Screen·Senior

Senior
May 2026

Summary

TikTok data scientist interview with a classic A/B testing scenario that sounds straightforward until you realize how many layers they actually want you to peel back. The question is less about the color change and more about whether you trust the experiment at all.

Questions Asked (1)

Q1

An A/B test changed a button color from green to red and retention dropped afterward. Stakeholders think the traffic split might be the real culprit. How do you investigate whether the allocation itself caused the retention drop, and what checks would you run before concluding the new color is actually harmful?

A/B Testing & ExperimentationRoot Cause AnalysisProduct Analytics & Metrics
Author's notes

I started talking about the retention metric too fast and the interviewer kind of steered me back with 'but how do you know the groups are even comparable?' which, fair point.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by validating the experiment's integrity: check if the traffic split was random and balanced across key dimensions, and if the retention metric was measured consistently. Then, isolate the effect of allocation by comparing pre-experiment characteristics and running falsification tests, before attributing the drop to the button color.

Pro tip: Always check for Sample Ratio Mismatch (SRM) first—it's a common and often overlooked issue that can invalidate results. If SRM exists, the experiment is compromised, and you should not trust any metric differences.

1. Check for Sample Ratio Mismatch (SRM)

Verify that the actual traffic split matches the intended ratio (e.g., 50/50) using a chi-square test. If SRM is present, the randomization or logging may be flawed, and the retention drop could be due to biased allocation.

2. Validate Randomization and Balance

Compare pre-experiment covariates (e.g., user demographics, past behavior) between control and treatment groups. If groups differ significantly, the allocation may have introduced confounding, not the button color.

3. Inspect Metric Definition and Data Pipeline

Ensure retention is defined consistently and measured correctly for both groups. Check for data loss, logging errors, or differences in how events are captured that could artificially lower retention in one group.

4. Run Falsification Tests and Sensitivity Analysis

Test for effects on metrics that should not be impacted by button color (e.g., pre-experiment retention). If these show differences, it suggests allocation bias. Also, analyze subgroups to see if the drop is concentrated in specific segments.

5. Conclude and Communicate

If allocation issues are found, recommend fixing the experiment and re-running. If not, and the drop is robust, conclude the color change likely caused harm, but consider practical significance and potential novelty effects.

Key Points to Mention

  • Sample Ratio Mismatch (SRM) detection and its implications
  • Pre-experiment covariate balance checks (e.g., using standardized mean differences)
  • Data quality checks: logging, metric definition, and pipeline integrity
  • Falsification tests: A/A tests or checking metrics unaffected by treatment
  • Subgroup analysis to identify heterogeneous treatment effects
  • Statistical power and practical significance of the retention drop

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.