1.Treated cities averaged 53.75 before launch and 63.5 after. Control cities averaged 41.75 and 47.5. What is the difference-in-differences estimate?
2.Your pre_trend_gap fits each group's slope on all 16 weeks of a practice panel. The trends are parallel and the effect is 2, starting at week 8. About what does it return?
3.Treated cities trend 0.3 a week faster than control cities, before and after launch. The pre weeks are 0 to 7, the post weeks 8 to 15, and the true effect is 2. What does difference-in-differences return on average?
4.Thirty cities, 16 weeks, a placebo launch with no real effect, and weekly shocks that carry over from one week to the next. You fit two-way fixed effects and use the plain OLS standard error. About how often is the placebo significant at 5%?
5.Two waves of cities launch in week 4 and week 10, every city ends up treated, and the effect grows each week after launch. Why can one two-way fixed effects regression return a negative number?
That's the lesson.
Now the problem this lesson builds to: 20 When you can't run an A/B test: difference-in-differences (NumPy)Practice it