Causal Inference

Difference in Differences you own this product

This project is part of the liveProject series Causal Inference and Personalization
basics of Python • basics of data science and machine learning
skills learned
when and how to use difference-in-differences • estimate the impact of discount on profits using diff-in-diff
Matheus Facure
1 week · 4-6 hours per week · INTERMEDIATE
filed under

placing your order...

Don't refresh or navigate away from the page.
liveProject This project is part of the liveProject series Causal Inference and Personalization liveProjects give you the opportunity to learn new skills by completing real-world challenges in your local development environment. Solve practical problems, write working code, and analyze real data—with liveProject, you learn by doing. These self-paced projects also come with full liveBook access to select books for 90 days plus permanent access to other select Manning products. $19.99 $29.99 you save $10 (33%)
Difference in Differences (liveProject) added to cart
continue shopping
adding to cart

Look inside

In this liveProject, you’ll use difference-in-differences as an alternative to A/B testing to assess the discounting strategy of an e-commerce company. This approach compares growth between a group that has been experimented on, and data from a control group. You’ll use Python and causal inference to examine the growth trajectory in profits from customers in a high discounts group against customers that didn’t get a discount.

This project is designed for learning purposes and is not a complete, production-ready application or solution.

book resources

When you start your liveProject, you get full access to the following books for 90 days.

project author

Matheus Facure
Matheus Facure is an economist, data scientist and causal inference specialist at Nubank. He currently works with adding causal inference capabilities to machine learning models with application in the credit card business, and acts as a consultant for other business areas inside Nubank, such as personal loans and marketing.


This liveProject is for data scientists with knowledge of Python, machine learning, and statistics. To begin this liveProject you will need to be familiar with the following:

TOOLS Basics of Python
  • Basics of pandas
  • Basics of Matplotlib
  • Basics of NumPy
  • TECHNIQUES Basics of data science and machine learning
  • Basics of causal inference
  • you will learn

    In this liveProject, you’ll learn core skills of causal inference and how to apply them to practical business scenarios.

    Understand how to leverage differences and similarities across time to control for biases
  • Learn the assumptions behind causal inference techniques that exploit temporal similarities
  • Learn when and how we can use difference-in-differences
  • Estimate the impact of discount on profits using diff-in-diff
  • features

    You choose the schedule and decide how much time to invest as you build your project.
    Project roadmap
    Each project is divided into several achievable steps.
    Get Help
    While within the liveProject platform, get help from other participants and our expert mentors.
    Compare with others
    For each step, compare your deliverable to the solutions by the author and other participants.
    book resources
    Get full access to select books for 90 days. Permanent access to excerpts from Manning products are also included, as well as references to other resources.