Everyday causal inference
How to estimate, test, and explain impacts with R and Python
A/B Testing, Causal Inference, Causal Time Series Analysis, Data Science, Difference-in-Differences, Directed Acyclic Graphs, Econometrics, Impact Evaluation, Instrumental Variables, Heterogeneous Treatment Effects, Potential Outcomes, Power Analysis, Sample Size Calculation, Python and R Programming, Randomized Experiments, Regression Discontinuity, Treatment Effects
Why this book?

Searches for causal inference — the science of cause and effect — have been rising for more than a decade, which is no coincidence. Most relevant questions for businesses and societies are causal. Consider: Did this policy reduce crime? Did that campaign increase sales? Did the new user experience (UX) improve retention?
While the questions are causal, the decision-makers answering them often aren’t equipped to address them. Yet in every meeting, someone will make a causal claim. They will look at a chart or a dashboard and weave a story of cause and effect. You need to be prepared for that moment. You need the tools to assess an analysis critically, trust it when the evidence supports it, and challenge it when the story falls apart.
The good news is that causal inference isn’t just for those fluent in advanced statistics or code. Much of it isn’t technical skill, but how you reason. It is about knowing what questions to ask, understanding what the evidence shows (and what it doesn’t), and identifying what might be distorting your results. That is critical thinking, and this book is designed to give you that reasoning ability.
I will cover the core methods—experiments, statistical power, instrumental variables, regression discontinuity, and difference-in-differences. But we won’t get lost in the math. Instead, we’ll keep one foot in rigor and the other in practice.
The philosophy here is inspired by Richard Feynman: “Everything that I read I try to figure out what it really means, what it’s really saying by translating.” I take that literally. This book is an exercise in translation. I strip away the jargon to reveal the underlying logic and turn it into intuition you can use.
Use it as a street-smart guide to causal analysis. You will learn to:
- Decode the fine print, translating abstract assumptions into checkable facts about your business reality.
- Stress-test your work, catching flaws in your analysis before your stakeholders do.
- Bridge the gap, converting statistical findings into the language of decision-makers.
This book aims to help you understand models well enough to know when they work, when they don’t, and why it matters.
Yes, this book is for you
This book is for the builders and the decision-makers. It is for anyone who needs to make high-stakes decisions based on data and wants to do it with confidence.
The examples you’ll see are grounded in the world of digital business — e-commerce, tech, and online platforms. These are environments where data is abundant and decisions happen fast, but causal logic is universal.
The same tool that measures the impact of a website redesign is used to evaluate a new public health policy or an educational program. The variables change, but the reasoning does not.
Whether you are a data scientist tired of unreadable papers, a product manager looking for truth, or a researcher wanting to apply your skills in practice, this book is for you. I trade dense proofs for intuition and abstract formulas for analogies. There are plenty of textbooks that will teach you the math. This one teaches you the craft.
How to support this project
If you find this book useful, here is how you can help:
Share it: Post on LinkedIn, X, or send it to your team.
Star it: Give the GitHub repository a star. It signals interest to publishers.
Cite it: Tigre, Robson. Everyday causal inference: How to estimate, test, and explain impacts with R and Python.
Buy it: Search for the print version when it is available. Your purchase supports this work.
Acknowledgements
This book wouldn’t have been possible without the encouragement, feedback, and support of many people. So thanks to everyone who helped bring this project to life.
First, I thank my wife, Cristiane Cabral, for being my number one supporter. I must also thank the following people who provided feedback, ideas, and encouragement for this book: Ron Kohavi, Peter Hull, Nick Huntington-Klein, Scott Cunningham, Matheus Facure, Andre Yukio, Fernanda Maciel, Isaac Gerber, Hugo Gobato, Kay H. Brodersen, Max H. Farrell, Fiammetta Menchetti, Bruno Moura, Vanessa Barreiros, Raphael Bruce, Cleyton Farias, Ana Santos, Junia Barbosa, Luis Meloni.

