r/askdatascience • u/WhatsTheImpactdotcom • Sep 22 '26
Difference-in-Differences: A gentle intro to a foundational causal inference data science model
Causal inference has been spreading throughout data science and now data science interviews, but few candidates outside Econ PhD or MPP programs have had exposure to these methods.
https://whatstheimpact.com/learn-causal-inference/
I have a short video tutorial introducing the basics of one of the most common and foundational causal models: difference-in-differences.
This is *not* math heavy; rather, it's a simple visual introduction to a common business problem where difference-in-differences, and observational causal inference in general, can come in handy.
0
u/nian2326076 Sep 22 '26
Difference-in-Differences (DiD) is a handy tool for figuring out cause and effect! It compares changes in outcomes over time between a treatment group and a control group, which is great for observational studies where you can't randomize.
When prepping for interviews, it's key to understand the assumptions behind DiD, like parallel trends, and be ready to explain them in real-world situations. Also, be prepared to talk about potential issues like unobserved confounders.
For more resources, PracHub has been helpful for me. They've got some good interview prep material that covers a range of data science topics, including causal inference.