Testing a Leagues Change When Learners Compete With Each Other
Last updated: November 29, 2026
Quick Overview
Duolingo wants to test a change to League XP rules, but learners in the same League compete against each other, so treating one learner affects the others. Design the experiment and explain how you would estimate the effect on weekly engagement.
Duolingo
November 29, 20260
0
0 solved
Duolingo wants to test a change to League XP rules, but learners in the same League compete against each other, so treating one learner affects the others. Design the experiment and explain how you would estimate the effect on weekly engagement.
Duolingo runs many A/B tests at once, and Leagues are a social feature where user-level randomization breaks the independence assumption. An onsite data science interviewer looks for recognizing interference, choosing cluster randomization, and getting the variance and power consequences right.
What the Interviewer Expects
- Identifies interference (SUTVA violation) inside a League
- Proposes randomizing at the League cohort level and forming cohorts by arm
- Uses cluster-robust or cohort-level analysis for variance
- Discusses power loss from clustering and the intraclass correlation
- Picks a primary metric and guardrails such as retention and lesson quality
- Addresses novelty effects and multi-week carryover through promotion
Key Topics to Cover
How to Approach This
- Define success metrics carefully. A good metric is measurable, actionable, and aligned with business goals.
- Run experiments long enough to account for novelty effects and weekly seasonality.
- Use funnel analysis to identify where users drop off for maximum optimization impact.
- Segment results by key dimensions (platform, country, user cohort) to catch hidden patterns.
- Consider network effects and interference between treatment and control groups.
Possible Follow-up Questions
- How many Leagues would you need if the intraclass correlation is 0.05?
- Promotion moves learners into new Leagues next week. How does that contaminate arms?
- How would you detect whether the change just shifts XP to the top few learners?
- What would you do if a mixed League design were the only option?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Analytics QuestionsSample Answer
Clarify
Change example: double XP for the last hour of the week. Goal: more lessons and higher weekly retention without degrading learning. Unit of interference: the roughly 30-person League, since one learne...
Approach
Assign learners to arms first, then form Leagues within an arm so every League is fully treated or fully control. Analyze at the League level (or with cluster-robust standard errors). Keep arms closed...