Causality
Intermediate
What you need first. Nothing else on this path comes first. This page is part of Statistical inference.
In study design, causality is a contrast between the outcomes of the same units under two actions. Two groups can differ because a treatment changed the outcome, or because the groups differed already. Causality, in the sense used here, is the first of those readings: a contrast between what would happen under one action and what would happen under another, for the same units. Association is the second reading, a contrast between units that already received different actions.[1][2]
Causality
| Fact | Value |
|---|---|
| Topic | Statistical inference |
| Listed on | Statistical inference |
| Worked example | 1 |
Motivating example
A patient dies five days after a heart transplant. That fact alone does not say the transplant caused the death. The causal question is whether that patient would have been alive at five days without the transplant. If the answer is yes, the two potential outcomes differ and the transplant had an effect on that patient. If the patient would have died either way, the transplant had no effect on that outcome. The death certificate records the outcome that occurred. It does not record the outcome under the action that was not taken.[1]
Definition
For a binary treatment, write for the outcome under treatment and for the outcome under no treatment. The treatment has a causal effect on a person’s outcome when . In a population the average effect is present when the means differ, . For a binary outcome the mean is a risk, so the average contrast is a difference of risks.[1]
One of the two potential outcomes matches the outcome that was actually seen. If the person received treatment , the observed outcome equals . The other potential outcome is not seen. Individual effects are therefore not identified from the observed data: they are not a function of the outcomes that were recorded.[1]
In epidemiology a cause is an agent that changes health, and the effect is a risk comparison. The absolute effect is the risk in the exposed minus the risk in the unexposed. The relative effect is the ratio of those risks. A cause that produces the effect by itself is called sufficient. The absolute effect is the summary that counts extra cases. The relative effect is the summary that describes the strength of the association between the agent and the illness.[3]
The potential outcome under a treatment is defined for one person only when that person’s treatment does not depend on how others are treated. Hernán and Robins state the restriction as no interference. If one person’s treatment changes another’s outcome, the counterfactual for a single person is not fixed until the allocation to everyone else is fixed as well.[1]
Properties
Association is a contrast of observed outcomes between groups that received different treatments. Causation is a contrast of potential outcomes under the two treatments in the same people. The two contrasts agree when the groups are exchangeable, which is what random assignment is designed to produce. OpenIntro describes a randomised experiment, with the treatment assigned by the investigator, as the design used when the aim is a causal connection between two variables.[2][1]
A relative effect can be large when the baseline risk is small, and an absolute effect can be large when many people are affected. Dodge’s comparison of two populations of makes the arithmetic explicit. Risks of and give a relative effect of and avoidable cases. Risks of and give the same relative effect of and avoidable cases. The ratio answers a different question from the difference.[3][1]
The supposed cause has to precede the effect. A factor that is only statistically tied to the real cause is a confusion factor, and the association it produces is not the effect. Dodge lists that temporality requirement and the exclusion of a confusion factor as conditions on top of the strength of the association. An association, however large, does not by itself establish the temporal order or rule out the confusion factor.[3]
Statistical use
A randomised experiment assigns the treatment and is the standard design when the aim is a causal connection. An observational study, in which no treatment is assigned, is the design OpenIntro describes as generally sufficient to show an association or to form a hypothesis that an experiment might later check. Sun exposure can make both sunscreen use and skin cancer more common, so the association between sunscreen and cancer can point the wrong way. Searching for measured confounders can narrow the gap. It does not guarantee that every confounder was measured.[2]
Even if every potential outcome in a sample were known, the sample proportion estimates the population risk and need not equal it. A causal conclusion from a sample is an inference about the population contrast, not a direct count of a census of counterfactuals. In the worked numbers below the five people are the population, so the means are the population means. A sample from a larger population would estimate those means.[1]
Worked example
Five people have outcomes under treatment and under no treatment . The individual effects, treatment minus no treatment, are . Two of the five effects are nonzero. The mean under treatment is and the mean under no treatment is , so the average causal effect is .[1]
Your turn. The third person’s outcome under no treatment is corrected from to . The treatment outcomes stay . What are the new mean under no treatment and the new average causal effect?
The outcomes under no treatment are , so the mean is . The average causal effect is .
Common misconceptions
A statistically detectable association is not a cause. The strength of an association is one item in the epidemiological list. Temporality, and evidence that the factor is not standing in for another factor, are further items. A large risk ratio in a large study and a non-significant ratio in a small study of the same proportions are different statements about sampling error. Neither statement is the argument that the exposure precedes the outcome and is not a confusion factor.[3]
Seeing that treated patients fare worse does not establish harm. The treated patients may have been the sicker ones. The contrast of observed outcomes mixes the effect with whatever else differs between the groups, unless the groups were formed so that the mixture cancels. Random assignment is the design aimed at that cancellation.[1][2]
Connections
The average treatment effect is the population mean of the individual contrasts. A designed experiment assigns the action. A cohort study and a case-control study record actions that were not assigned. The response variable is the outcome in the contrast, and the explanatory variable is the action or exposure. Methods that avoid measuring every common cause, such as difference in differences, replace that requirement with a different identifying condition.[1][2]
Check yourself
Try these questions before opening an answer.
The outcome that was seen
If a person received treatment A = a, which potential outcome equals the observed outcome?
The potential outcome under action a.
When the two contrasts agree
Under what design condition do the associational contrast and the causal contrast agree?
When the groups receiving the two treatments are exchangeable, which is what random assignment is designed to produce.
History
Cause and effect, as a risk comparison, have been part of the language of epidemiology since its beginnings in the seventeenth century. The absolute effect and the relative effect are the two forms of that comparison: a difference of risks and a ratio of risks. The potential-outcome notation is a way to write the same comparison so that an average over a population is a well-defined number, including the case in which the average is zero while some individual contrasts are not.[3][1]
See also
Line chart · Apriori algorithm · Asymptotic analysis · Average treatment effect · Base rate · Bayesian inference · Bayesian model · Bayesian probability
References
- ^ a b c d e f g h i j k l a. (pp. 3–4) b. (pp. 3–4) c. (pp. 4–5) d. (p. 4) e. (p. 5) f. (p. 5) g. (p. 7) h. (pp. 5, 8) i. (pp. 4–5) j. (p. 3) k. (p. 5) l. (pp. 3–5) Hernán, M. A. & Robins, J. M. (2020). Causal Inference: What If. Chapman & Hall/CRC. https://miguelhernan.org/s/hernanrobins_WhatIf_19aug26.pdf
- ^ a b c d e a. (Ch. 1, §1.4) b. (Ch. 1, §1.4) c. (Ch. 1, §1.3.4, §1.4) d. (Ch. 1, §1.4) e. (Ch. 1, §1.4) Diez, D. M., Çetinkaya-Rundel, M. & Barr, C. D. (2019). OpenIntro Statistics (4th ed.). OpenIntro. https://www.openintro.org/book/os/
- ^ a b c d e a. (p. 62) b. (p. 63) c. (p. 62) d. (pp. 61–62) e. (p. 62) Dodge, Yadolah (2008). The Concise Encyclopedia of Statistics. Springer. https://doi.org/10.1007/978-0-387-32833-1
Cite this page
StatWiki (2026). "Causality." StatWiki. Last updated 2 December 2026. https://www.statwiki.io/articles/causality.html
@misc{statwiki_causality,
author = {{StatWiki}},
title = {{Causality}},
year = {2026},
url = {https://www.statwiki.io/articles/causality.html},
urldate = {2026-12-02},
note = {StatWiki, last updated 2 December 2026}
}