class: title-slide, center, middle, inverse background-image: url(./figs/logo.png) background-position: 50% 95% background-size: 28%, 25% # .yellow[Introduction to causality] .center[ .bigger[ L. Paloma Rojas-Saunero MD, PhD] ] --- ## Learning goals .bigger[ 1. Develop intuition for counterfactual thinking and its role in causal inference. 2. Familiarize with causal notation. 3. Understand the concept of the individual causal effect and its implications. ] --- ## Recap <br> .center[.bigger[**Descriptive goal**]] -- .center[.bigger[**Prediction goal**]] -- .center[.bigger[_Causal goals_]] --- ## Correlation is not causation .center[ <img src=./figs/icecream1.JPG width="70%" /> ] ??? In this example we see that Ice cream sales increase when people get sunburned. These two things are correlated: meaning that they happen together, but one doesn't necessarily cause the other. --- ## Correlation is not causation .center[ <img src=./figs/icecream2.JPG width="70%"/> ] ??? There could be another factor, such as as high temperature in a summer day that both causes people to buy icecream, and it causes sunburn! --- background-image: url(./figs/causal_questions_epi.jpg) background-size: 90% ??? In public health, many times we are interested in asking causal questions, we want to know if changing a behavior, changing diet, or even changing complex things such as discrimination and social and economic burden (a.k.a) weathering, can have an impact in our health. --- ## Counterfactual thinking <br<br><br> .center[ .bigger[ Counterfactual thinking involves imagining an alternative version of the past and considering how the outcome might have changed. It helps us think about "**_what could have been_**"]] ??? To answer these questions, we use counterfactual or causal thinking. Yes, the word "counterfactual" sounds very complicated, but I promise you, you are experts in using this approach in daily life. For example... --- ## Counterfactual thinking - If I had studied last night, would I have gotten a higher test score? -- - If I hadn’t walked barefoot, I would have avoided catching a cold. -- - If they hadn't changed the goalkeeper, they would have won the penalty round. -- - If you had taken Sunset Blvd. instead of Santa Monica Blvd., would you have arrived on time? --- ### Construct a counterfactual statement - Think of a recent event where something did not go as planned. -- - Imagine an alternative version of the past where you changed one specific factor. -- - Write a counterfactual statement using this structure: .center[ "If [_X had done something differently_], <br> then [_a different outcome might have happened_]." ]
−
+
01
:
00
--- ## Pair Discussion - Share your statement with your classmate sitting to your right and discuss: + What assumption are you making about causality? + Are there other factors that might have influenced the outcome? + How confident are you in your counterfactual scenario?
−
+
02
:
00
--- ## Causal Reasoning <br><br> .center[ .bigger[ Causal reasoning involves understanding how a _change_ in one factor (**"the cause"**) leads to a change in another factor (**"the effect"**). ]] --- class:center, middle ## Let's go for ice cream, it will make you feel happy... ??? Now that you know you are experts in counterfactual thinking, we are going to translate the language of counterfactuals to mathematical notations. I know that math can be intimidating, believe me I always did, but I want you to take this opportunity to see math as a universal language, a language that can help community across people all over the world. --- ## Notation .pull-left[ **Observed world (The Factual) ** - A = 0 if did not eat ❌🍦 - A = 1 if ate 🍦 - Y = 1 if 😊 - Y = 0 if 😔 ] -- .pull-right[ **Counterfactual worlds** - Y<sup>a=1</sup>: the counterfactual outcome (😊 or 😔) had a = 🍦 - Y<sup>a=0</sup>: the counterfactual outcome (😊 or 😔) had a = ❌🍦 ] --- ## Individual Causal Effect -- .pull-left[ .center[ If I had eaten 🍦 I would feel 😊 .bigger[**Y<sup>a=1</sup> = 1**] ]] -- .pull-right[ .center[ If I had not eaten ❌🍦 I would feel 😔 .bigger[**Y<sup>a=0</sup> = 0**] ]] There is an ✅ **individual causal effect** when: **Y<sup>a=1</sup>** `\(\neq\)` **Y<sup>a=0</sup>** -- There is no ❌ **individual causal effect** when: **Y<sup>a=1</sup>** = **Y<sup>a=0</sup>** --- ### Identify Individual Causal Effects Find out on which friends we would see a causal effect of 🍦 in 😊 .pull-left[ .center[ ** Individual Causal Effect** <br> <br> **Y<sup>a=1</sup>** `\(\neq\)` **Y<sup>a=0</sup>** ] ] -- .pull-right[ |Person |Y<sup>a=1</sup> |Y<sup>a=0</sup> |Effect | |:-------|:---------------|:---------------|:------| |Anita |1 |0 |? | |James |1 |0 |? | |Min |1 |1 |? | |Jackson |0 |0 |? | |Jesse |0 |1 |? | |Maria |1 |0 |? | ]
−
+
01
:
00
--- ### Fundamental problem of causal inference In real life, we only observe **one** of the counterfactual scenarios, the other one is **missing**. .pull-left[ |Person |A |Y |Y<sup>a=1</sup> |Y<sup>a=0</sup> |Effect | |:-------|:--|:--|:---------------|:---------------|:------| |Anita |1 |1 |1 |? |? | |James |0 |0 |? |0 |? | |Min |1 |1 |1 |? |? | |Jackson |0 |0 |? |0 |? | |Jesse |0 |1 |? |1 |? | |Maria |1 |1 |1 |? |? | ] -- .pull-right[ Thus, we can't estimate **individual causal effect** directly. It's a missing data issue. ] --- class:center, middle ## How do we answer causal questions in real life? --- ## Next topic .bigger[ - Estimating the average causal effect - Using randomized trials to identify causality ] --- ## Recommended Materials - [Casual Inference Podcast](https://casualinfer.libsyn.com/) - [Hernán MA, Robins JM. Causal Inference: What If (2020)](https://miguelhernan.org/whatifbook)