Novelty Effect Detection Week-by-Week
Problem
**[Asked at Microsoft]**
Detect if a treatment shows the **novelty effect** — a large initial lift that
decays over time.
For each week, return the absolute effect (`treatment - control`) and the
lift percentage. Order by week.
Tables
Example rows — the live problem includes the full dataset.
ab_weekly
| week | variant | metric_value |
|---|
Expected output
Your answer should return 4 rows with the columns week, effect_size, lift_pct.
Starter code (SQL)
SELECT *
FROM ab_weekly;Solve this SQL question free
Write SQL and run it instantly in your browser — even on your phone. No signup needed to try.
Solution & explanation
Create a free account to unlock the optimal solution, a step-by-step explanation, and the hidden test cases that grade your answer.
Sign up free to unlock