Causation: Notation Cheat Sheet (WIP)
Every symbol in the causation unit, with a formal definition and a plain-English translation
Statistics notation can feel like a foreign language. This page is your dictionary for the causation unit. For each symbol you get the formal definition (what you’d write on an exam) and a plain-English translation (what you’d say to a friend).
The running example on this page is the one from the notes: students choosing between professor Biegschott (treatment) and professor Nobbo-Dee (control), with their final percentage score as the outcome.
General conventions
These rules apply to every symbol below.
| Notation | Formal meaning | Plain English |
|---|---|---|
| \(\equiv\) | “is defined as” | We’re not claiming two things happen to be equal: we’re giving a name to something. |
| \(E(\,\cdot\,)\) | Population expectation | The average over the whole population. Almost always unknowable, because we never see the whole population. |
| \(\bar{\ \ }\) (a bar, as in \(\bar{Y}\)) | Sample mean | The average over our sample. We can always compute it. |
| \(\hat{\ \ }\) (a hat, as in \(\widehat{\mbox{ATE}}\)) | Estimate or prediction | Our best guess, computed from data, of something we can’t see directly. |
| \(\mid\) (as in \(E(Y \mid D=1)\)) | “Given” or “among those with” | Only look at the units that satisfy the condition after the bar. |
| Subscript \(i\) (as in \(Y_i\)) | The value for observation \(i\) | The value for one particular person (row) in the data. |
| Subscripts \(t\) and \(c\) | Treatment and control | \(t\) = “in the world where they get the treatment”, \(c\) = “in the world where they get the control”. |
The variables
| Symbol | Formal definition | Plain English | Example |
|---|---|---|---|
| \(D\) | The treatment variable. In this class it is usually binary: \(D=1\) (treatment) or \(D=0\) (control). | The thing whose effect we want to know. | \(D = 1\) if the student enrolled with Biegschott, \(D = 0\) if with Nobbo-Dee. |
| \(Y\) | The outcome variable: the value we actually observe. | The result we care about, as it really happened. | The student’s final score. |
| \(X\) | A covariate: a variable that couldn’t have been affected by the treatment (typically measured before it). | Background information about each person, fixed before the treatment happened. | Waking pattern (early bird, normie, night owl), GPA before the semester. |
| \(X_{ik}\) | The value of covariate \(k\) for observation \(i\). The first index is the observation, the second is the covariate. | Row \(i\), column \(k\) of the covariates. | \(X_{21}\) = the GPA (covariate 1) of student 2. |
| \(q\) | The number of covariates. | How many background variables we use. | \(q = 3\) for age, height, income. |
Potential outcomes and effects
| Symbol | Formal definition | Plain English | Example |
|---|---|---|---|
| \(Y(d)\) | The potential outcome: the value \(Y\) would take in a hypothetical world where \(D\) took the value \(d\). | “What would happen to this person if the treatment were set to \(d\).” | \(Y(30)\) = your grade if you studied 30 minutes a day. |
| \(Y_t\), also written \(Y(1)\) | The potential outcome under treatment. | What would happen if this person got the treatment. | The score the student would get with Biegschott. |
| \(Y_c\), also written \(Y(0)\) | The potential outcome under control. | What would happen if this person got the control. | The score the student would get with Nobbo-Dee. |
| \(\mbox{ITE} \equiv Y_t - Y_c\) | The individual treatment effect. | How much the treatment changes the outcome for one person. Never observable, because we only ever see one of \(Y_t\), \(Y_c\). | Maria: \(73\% - 77\% = -4\%\). |
| \(\mbox{ATE} \equiv E(Y_t - Y_c)\) | The average treatment effect: the population expectation of the individual treatment effect. Also equal to \(E(Y_t) - E(Y_c)\). | How much the treatment changes the outcome on average, over the whole population. This is the main target of the unit. | \(\mbox{ATE} = -6\%\): on average, students would score 6 points lower with Biegschott. |
The link between potential and observed outcomes. Each person shows us only one of their two potential outcomes:
\[ Y = \begin{cases} Y_t & \mbox{if } D = 1 \\ Y_c & \mbox{if } D = 0 \end{cases} \]
In plain English: the treated show us their \(Y_t\), the controls show us their \(Y_c\), and the other potential outcome stays hidden in a counterfactual world.
Three averages that are easy to confuse
These three look alike but are very different. Most mistakes in this unit come from mixing them up.
| Symbol | Formal definition | Plain English | Can we know it? |
|---|---|---|---|
| \(E(Y_t)\) | Population expectation of the treatment potential outcome. | The average outcome if everyone in the population got the treatment. | Twice unknowable: we never see the whole population, and we never see \(Y_t\) for the people who got the control. |
| \(E(Y \mid D=1)\) | Population expectation of the observed outcome among the treated. | The average outcome of the people in the population who actually got the treatment. | Once unknowable: we’d know it if we had the whole population. |
| \(\bar{Y}_{D=1} \equiv \dfrac{1}{n_t} \displaystyle\sum_{D_i = 1} Y_i\) | Sample mean of the observed outcome among the \(n_t\) treated units in the sample. | The average outcome of the people in our sample who got the treatment. | Knowable: we compute it from our data. |
The same three exist for the control: \(E(Y_c)\), \(E(Y \mid D=0)\), and \(\bar{Y}_{D=0}\).
How they relate. \(\bar{Y}_{D=1}\) is a good estimator of \(E(Y \mid D=1)\). But \(E(Y \mid D=1)\) equals \(E(Y_t)\) only if there is no confounding (for example, in a randomized experiment).
Estimating the ATE
| Symbol | Formal definition | Plain English |
|---|---|---|
| \(n_t\), \(n_c\) | The number of treated and control units in the sample. \(n = n_t + n_c\). | How many people are in each group of our sample. |
| \(\bar{Y}_{D=1} - \bar{Y}_{D=0}\) | The difference in sample means: \(\dfrac{1}{n_t} \displaystyle\sum_{D_i=1} Y_i - \dfrac{1}{n_c} \displaystyle\sum_{D_i=0} Y_i\). | Average outcome of the treated minus average outcome of the controls, in our sample. |
| \(\widehat{\mbox{ATE}}\) | An estimator (or estimate) of the ATE, computed from a sample. | Our best guess of the ATE. In a randomized experiment, \(\widehat{\mbox{ATE}} = \bar{Y}_{D=1} - \bar{Y}_{D=0}\). With matching, see below. |
| \(H_0: \mbox{ATE} = 0\) | The null hypothesis that the treatment has no average effect. | “The treatment doesn’t change the outcome on average.” We try to reject it with data. |
The Confounding Problem in one line. If the potential outcomes are related to who gets the treatment, then
\[ \mbox{ATE} \neq E(Y \mid D=1) - E(Y \mid D=0) \]
In plain English: comparing the treated with the controls doesn’t tell us the effect of the treatment, because the two groups were different to begin with.
Randomized experiments and covariate balance
| Symbol | Formal definition | Plain English |
|---|---|---|
| \(p\) | In random assignment, the fixed probability that a unit is assigned to treatment (\(D = 1\)). | The chance of being put in the treatment group, like the chance of heads on a (maybe unfair) coin. Often, but not always, \(p = 0.5\). |
| \(P(X = x \mid D = 1) = P(X = x \mid D = 0)\) | Covariate balance: \(X\) is independent of \(D\). | The covariate looks the same in the treatment group and the control group. |
| \(E(X \mid D=1) = E(X \mid D=0)\) | A consequence of covariate balance: equal population means. | On average, the treated and the controls have the same value of the covariate. |
| \(\bar{X}_{D=1}\), \(\bar{X}_{D=0}\) | Sample means of the covariate \(X\) among the treated and the controls. | The average of the covariate in each group of our sample. |
| \(s^2_{X, D=1}\), \(s^2_{X, D=0}\) | Sample variances of \(X\) among the treated and the controls. | How spread out the covariate is in each group. |
| \(\mbox{SMD}(X) \equiv \dfrac{\bar{X}_{D=1} - \bar{X}_{D=0}}{\sqrt{\frac{1}{2}s_{X,D=1}^2 + \frac{1}{2}s_{X,D=0}^2}}\) | The standardized mean difference of covariate \(X\). | How different the two groups are on \(X\), measured in standard deviations. No units. Close to 0 means balanced. |
| \(T = \bar{X}_{D=1} - \bar{X}_{D=0}\) | Test statistic of a covariate balance test of \(H_0\): \(X\) is independent of \(D\). | The difference in the covariate between the groups. In a randomized experiment, we hope not to reject \(H_0\). |
Observational studies and confounders
| Symbol | Formal definition | Plain English |
|---|---|---|
| \(X\) (as a confounder) | A covariate associated both with the potential outcomes (\(Y_t\), \(Y_c\)) and with the treatment assignment (\(D\)). | A background variable that affects both who gets the treatment and how they’d do anyway. The reason confounding exists. |
| \(E(Y \mid D=1, X=x)\) | Population expectation of the outcome among the treated with covariate value \(x\). | The average outcome of the treated people who share the same background \(x\). |
| \(Y^\ast_t\), \(Y^\ast_c\) | Substitute potential outcomes: for a control, \(Y^\ast_t = E(Y \mid D=1, X)\) and \(Y^\ast_c = Y\); for a treated unit, \(Y^\ast_t = Y\) and \(Y^\ast_c = E(Y \mid D=0, X)\). | Fill in each person’s missing potential outcome with the average of the people like them (same \(X\)) in the other group. |
| \(\mbox{ATE} = E(Y^\ast_t - Y^\ast_c)\) | True if all confounders \(X\) are observed. | If we measured every confounder, the substitute outcomes give back the true ATE. That “if” can’t be proved with data. |
Matching
| Symbol | Formal definition | Plain English |
|---|---|---|
| \(\hat{Y}_{i,t}\), \(\hat{Y}_{i,c}\) | The predicted potential outcomes of observation \(i\). For a treated \(i\): \(\hat{Y}_{i,t} = Y_i\), and \(\hat{Y}_{i,c}\) comes from matched controls. For a control \(i\): \(\hat{Y}_{i,c} = Y_i\), and \(\hat{Y}_{i,t}\) comes from matched treated units. | Each person keeps their real outcome, and gets a prediction for the missing one from similar people in the other group. |
| \(\bar{Y}_{D=0, X=X_i}\) | Sample mean of the outcome among the controls with the same covariate value as observation \(i\). | Exact matching: the average outcome of the controls who look exactly like person \(i\). |
| \(s(X_k)\) | The pooled standard deviation of covariate \(k\): \(\sqrt{\frac{1}{2}s^2_{X_k, D=1} + \frac{1}{2}s^2_{X_k, D=0}}\). | A typical spread of covariate \(k\), in the units of \(X_k\). |
| \(Z_{ik} \equiv \dfrac{X_{ik}}{s(X_k)}\) | The scaled covariate \(k\) for observation \(i\). | The covariate measured in standard deviations instead of its original units (years, cm, dollars…), so that different covariates can be compared. No units. |
| \(d_{ij} \equiv \sqrt{\displaystyle\sum_{k=1}^{q} (Z_{ik} - Z_{jk})^2}\) | The scaled Euclidean distance between observations \(i\) and \(j\). | How different two people are, combining all the covariates fairly. The usual ruler distance, on the scaled covariates. |
| \(j(i)\) | The nearest neighbor of \(i\): the observation in the opposite treatment group with the smallest \(d_{ij}\). | Person \(i\)’s closest look-alike in the other group. |
| \(\widehat{\mbox{ATE}} = \dfrac{1}{n} \displaystyle\sum_{i=1}^{n} \left( \hat{Y}_{i,t} - \hat{Y}_{i,c} \right)\) | The matching estimator of the ATE. | Average, over everyone in the sample, of (predicted outcome with treatment) minus (predicted outcome with control). |
Quick translation exercise
Cover the right column and try to read each line out loud.
| Formula | Read it as… |
|---|---|
| \(\mbox{ATE} = -6\%\) | “On average, over the whole population, the treatment lowers the score by 6 percentage points.” |
| \(E(Y \mid D=1) - E(Y \mid D=0) = +9.5\%\) | “In the population, the people who took the treatment scored 9.5 points higher on average than those who didn’t.” (Not a causal statement!) |
| \(\bar{Y}_{D=1} - \bar{Y}_{D=0} = 6.5\) | “In our sample, the treated scored 6.5 points higher on average than the controls.” |
| \(\mbox{SMD}(\mbox{GPA}) = 0.39\) | “In our sample, the treated have a GPA about 0.39 standard deviations higher than the controls.” |
| \(\hat{Y}_{3,c} = 90\%\) | “We predict that student 3 would have scored 90% under the control.” |
| \(d_{12} = 2.02\) | “Observations 1 and 2 are 2.02 (scaled) units apart.” |