Product Sense · hard · Asked at Spotify

Design an experiment to test a new recommendation algorithm.

Asked in ML Engineer interviews.

Short answer

Randomize at user level, define engagement metric, guardrails, run long enough for novelty decay.

How to answer it

The experiment has to isolate the algorithm's effect on the outcome the company cares about, over a period long enough for novelty to wear off.

Worked line: "Two arms, user-level, 4 weeks, primary metric is 28-day retention, guardrails are total hours and skip rate. Week 1 showed a 6% click lift that decayed to 1% by week 3, but retention was up 0.8% and held. Ship on the retention result; the click lift was novelty."

Related questions

Practice this for real