Confounding
In causal inference, a confounder (also confounding variable, confounding factor, extraneous determinant or lurking variable) is a variable that influences both the dependent variable and independent variable, causing a spurious association. Confounding is a causal concept, and as such, cannot be described in terms of correlations or associations.^{[1]}^{[2]}^{[3]} The existence of confounders is an important quantitative explanation why correlation does not imply causation.
Confounds are threats to internal validity.^{[4]}
Definition
Confounding is defined in terms of the data generating model. Let X be some independent variable, and Y some dependent variable. To estimate the effect of X on Y, the statistician must suppress the effects of extraneous variables that influence both X and Y. We say that X and Y are confounded by some other variable Z whenever Z causally influences both X and Y.
Let [math]\displaystyle{ P(y \mid \text{do}(x)) }[/math] be the probability of event Y = y under the hypothetical intervention X = x. X and Y are not confounded if and only if the following holds:

[math]\displaystyle{ P(y \mid \text{do}(x)) = P(y \mid x) }[/math]
(
)
for all values X = x and Y = y, where [math]\displaystyle{ P(y \mid x) }[/math] is the conditional probability upon seeing X = x. Intuitively, this equality states that X and Y are not confounded whenever the observationally witnessed association between them is the same as the association that would be measured in a controlled experiment, with x randomized.
In principle, the defining equality [math]\displaystyle{ P(y \mid \text{do}(x)) = P(y \mid x) }[/math] can be verified from the data generating model, assuming we have all the equations and probabilities associated with the model. This is done by simulating an intervention [math]\displaystyle{ \text{do}(X = x) }[/math] (see Bayesian network) and checking whether the resulting probability of Y equals the conditional probability [math]\displaystyle{ P(y \mid x) }[/math]. It turns out, however, that graph structure alone is sufficient for verifying the equality [math]\displaystyle{ P(y \mid \text{do}(x)) = P(y \mid x) }[/math].
Control
Consider a researcher attempting to assess the effectiveness of drug X, from population data in which drug usage was a patient's choice. The data shows that gender (Z) influences a patient's choice of drug as well as their chances of recovery (Y). In this scenario, gender Z confounds the relation between X and Y since Z is a cause of both X and Y:
We have that

[math]\displaystyle{ P(y \mid \text{do}(x)) \ne P(y \mid x) }[/math]
(
)
because the observational quantity contains information about the correlation between X and Z, and the interventional quantity does not (since X is not correlated with Z in a randomized experiment). It can be shown ^{[5]} that, in cases where only observational data is available, an unbiased estimate of the desired quantity [math]\displaystyle{ P(y \mid \text{do}(x)) }[/math], can be obtained by "adjusting" for all confounding factors, namely, conditioning on their various values and averaging the result. In the case of a single confounder Z, this leads to the "adjustment formula":

[math]\displaystyle{ P(y \mid \text{do}(x)) = \sum_{z} P(y \mid x, z) P(z) }[/math]
(
)
which gives an unbiased estimate for the causal effect of X on Y. The same adjustment formula works when there are multiple confounders except, in this case, the choice of a set Z of variables that would guarantee unbiased estimates must be done with caution. The criterion for a proper choice of variables is called the BackDoor ^{[5]}^{[6]} and requires that the chosen set Z "blocks" (or intercepts) every path between X and Y that contains an arrow into X. Such sets are called "BackDoor admissible" and may include variables which are not common causes of X and Y, but merely proxies thereof.
Returning to the drug use example, since Z complies with the BackDoor requirement (i.e., it intercepts the one BackDoor path [math]\displaystyle{ X \leftarrow Z \rightarrow Y }[/math]), the BackDoor adjustment formula is valid:

[math]\displaystyle{ \begin{align}P(Y = \text{recovered}\mid \text{do}(x = \text{give drug})) = {} & P(Y = \text{recovered}\mid X = \text{give drug}, Z = \text{male}) P(Z = \text{male}) \\ & {} + P(Y = \text{recovered}\mid X = \text{give drug}, Z = \text{female}) P(Z = \text{female})\end{align} }[/math]
(
)
In this way the physician can predict the likely effect of administering the drug from observational studies in which the conditional probabilities appearing on the righthand side of the equation can be estimated by regression.
Contrary to common beliefs, adding covariates to the adjustment set Z can introduce bias.^{[7]} A typical counterexample occurs when Z is a common effect of X and Y,^{[8]} a case in which Z is not a confounder (i.e., the null set is Backdoor admissible) and adjusting for Z would create bias known as "collider bias" or "Berkson's paradox." Controls that are not good confounders are sometimes called bad controls.
In general, confounding can be controlled by adjustment if and only if there is a set of observed covariates that satisfies the BackDoor condition. Moreover, if Z is such a set, then the adjustment formula of Eq. (3) is valid.^{[5]}^{[6]} Pearl's docalculus provides all possible conditions under which [math]\displaystyle{ P(y \mid \text{do}(x)) }[/math] can be estimated, not necessarily by adjustment.^{[9]}
History
According to Morabia (2011),^{[10]} the word confounding derives from the Medieval Latin verb "confundere", which meant "mixing", and was probably chosen to represent the confusion (from Latin: con=with + fusus=mix or fuse together) between the cause one wishes to assess and other causes that may affect the outcome and thus confuse, or stand in the way of the desired assessment. Greenland, Robins and Pearl^{[11]} note an early use of the term "confounding" in causal inference by John Stuart Mill in 1843.
Fisher introduced the word "confounding" in his 1935 book "The Design of Experiments"^{[12]} to refer specifically to a consequence of blocking (i.e., partitioning) the set of treatment combinations in a factorial experiment, whereby certain interactions may be "confounded with blocks". This popularized the notion of confounding in statistics, although Fisher was concerned with the control of heterogeneity in experimental units, not with causal inference.
According to Vandenbroucke (2004)^{[13]} it was Kish^{[14]} who used the word "confounding" in the sense of "incomparability" of two or more groups (e.g., exposed and unexposed) in an observational study. Formal conditions defining what makes certain groups "comparable" and others "incomparable" were later developed in epidemiology by Greenland and Robins (1986)^{[15]} using the counterfactual language of Neyman (1935)^{[16]} and Rubin (1974).^{[17]} These were later supplemented by graphical criteria such as the BackDoor condition (Pearl 1993; Greenland, Robins and Pearl 1999).^{[11]}^{[5]}
Graphical criteria were shown to be formally equivalent to the counterfactual definition^{[18]} but more transparent to researchers relying on process models.
Types
In the case of risk assessments evaluating the magnitude and nature of risk to human health, it is important to control for confounding to isolate the effect of a particular hazard such as a food additive, pesticide, or new drug. For prospective studies, it is difficult to recruit and screen for volunteers with the same background (age, diet, education, geography, etc.), and in historical studies, there can be similar variability. Due to the inability to control for variability of volunteers and human studies, confounding is a particular challenge. For these reasons, experiments offer a way to avoid most forms of confounding.
In some disciplines, confounding is categorized into different types. In epidemiology, one type is "confounding by indication",^{[19]} which relates to confounding from observational studies. Because prognostic factors may influence treatment decisions (and bias estimates of treatment effects), controlling for known prognostic factors may reduce this problem, but it is always possible that a forgotten or unknown factor was not included or that factors interact complexly. Confounding by indication has been described as the most important limitation of observational studies. Randomized trials are not affected by confounding by indication due to random assignment.
Confounding variables may also be categorised according to their source. The choice of measurement instrument (operational confound), situational characteristics (procedural confound), or interindividual differences (person confound).
 An operational confounding can occur in both experimental and nonexperimental research designs. This type of confounding occurs when a measure designed to assess a particular construct inadvertently measures something else as well.^{[20]}
 A procedural confounding can occur in a laboratory experiment or a quasiexperiment. This type of confound occurs when the researcher mistakenly allows another variable to change along with the manipulated independent variable.^{[20]}
 A person confounding occurs when two or more groups of units are analyzed together (e.g., workers from different occupations), despite varying according to one or more other (observed or unobserved) characteristics (e.g., gender).^{[21]}
Examples
Say one is studying the relation between birth order (1st child, 2nd child, etc.) and the presence of Down Syndrome in the child. In this scenario, maternal age would be a confounding variable:
 Higher maternal age is directly associated with Down Syndrome in the child
 Higher maternal age is directly associated with Down Syndrome, regardless of birth order (a mother having her 1st vs 3rd child at age 50 confers the same risk)
 Maternal age is directly associated with birth order (the 2nd child, except in the case of twins, is born when the mother is older than she was for the birth of the 1st child)
 Maternal age is not a consequence of birth order (having a 2nd child does not change the mother's age)
In risk assessments, factors such as age, gender, and educational levels often affect health status and so should be controlled. Beyond these factors, researchers may not consider or have access to data on other causal factors. An example is on the study of smoking tobacco on human health. Smoking, drinking alcohol, and diet are lifestyle activities that are related. A risk assessment that looks at the effects of smoking but does not control for alcohol consumption or diet may overestimate the risk of smoking.^{[22]} Smoking and confounding are reviewed in occupational risk assessments such as the safety of coal mining.^{[23]} When there is not a large sample population of nonsmokers or nondrinkers in a particular occupation, the risk assessment may be biased towards finding a negative effect on health.
Decreasing the potential for confounding
A reduction in the potential for the occurrence and effect of confounding factors can be obtained by increasing the types and numbers of comparisons performed in an analysis. If measures or manipulations of core constructs are confounded (i.e. operational or procedural confounds exist), subgroup analysis may not reveal problems in the analysis. Additionally, increasing the number of comparisons can create other problems (see multiple comparisons).
Peer review is a process that can assist in reducing instances of confounding, either before study implementation or after analysis has occurred. Peer review relies on collective expertise within a discipline to identify potential weaknesses in study design and analysis, including ways in which results may depend on confounding. Similarly, replication can test for the robustness of findings from one study under alternative study conditions or alternative analyses (e.g., controlling for potential confounds not identified in the initial study).
Confounding effects may be less likely to occur and act similarly at multiple times and locations.^{[citation needed]} In selecting study sites, the environment can be characterized in detail at the study sites to ensure sites are ecologically similar and therefore less likely to have confounding variables. Lastly, the relationship between the environmental variables that possibly confound the analysis and the measured parameters can be studied. The information pertaining to environmental variables can then be used in sitespecific models to identify residual variance that may be due to real effects.^{[24]}
Depending on the type of study design in place, there are various ways to modify that design to actively exclude or control confounding variables:^{[25]}
 Casecontrol studies assign confounders to both groups, cases and controls, equally. For example, if somebody wanted to study the cause of myocardial infarct and thinks that the age is a probable confounding variable, each 67yearold infarct patient will be matched with a healthy 67yearold "control" person. In casecontrol studies, matched variables most often are the age and sex. Drawback: Casecontrol studies are feasible only when it is easy to find controls, i.e. persons whose status visàvis all known potential confounding factors is the same as that of the case's patient: Suppose a casecontrol study attempts to find the cause of a given disease in a person who is 1) 45 years old, 2) AfricanAmerican, 3) from Alaska, 4) an avid football player, 5) vegetarian, and 6) working in education. A theoretically perfect control would be a person who, in addition to not having the disease being investigated, matches all these characteristics and has no diseases that the patient does not also have—but finding such a control would be an enormous task.
 Cohort studies: A degree of matching is also possible and it is often done by only admitting certain age groups or a certain sex into the study population, creating a cohort of people who share similar characteristics and thus all cohorts are comparable in regard to the possible confounding variable. For example, if age and sex are thought to be confounders, only 40 to 50 years old males would be involved in a cohort study that would assess the myocardial infarct risk in cohorts that either are physically active or inactive. Drawback: In cohort studies, the overexclusion of input data may lead researchers to define too narrowly the set of similarly situated persons for whom they claim the study to be useful, such that other persons to whom the causal relationship does in fact apply may lose the opportunity to benefit from the study's recommendations. Similarly, "overstratification" of input data within a study may reduce the sample size in a given stratum to the point where generalizations drawn by observing the members of that stratum alone are not statistically significant.
 Double blinding: conceals from the trial population and the observers the experiment group membership of the participants. By preventing the participants from knowing if they are receiving treatment or not, the placebo effect should be the same for the control and treatment groups. By preventing the observers from knowing of their membership, there should be no bias from researchers treating the groups differently or from interpreting the outcomes differently.
 Randomized controlled trial: A method where the study population is divided randomly in order to mitigate the chances of selfselection by participants or bias by the study designers. Before the experiment begins, the testers will assign the members of the participant pool to their groups (control, intervention, parallel), using a randomization process such as the use of a random number generator. For example, in a study on the effects of exercise, the conclusions would be less valid if participants were given a choice if they wanted to belong to the control group which would not exercise or the intervention group which would be willing to take part in an exercise program. The study would then capture other variables besides exercise, such as preexperiment health levels and motivation to adopt healthy activities. From the observer's side, the experimenter may choose candidates who are more likely to show the results the study wants to see or may interpret subjective results (more energetic, positive attitude) in a way favorable to their desires.
 Stratification: As in the example above, physical activity is thought to be a behaviour that protects from myocardial infarct; and age is assumed to be a possible confounder. The data sampled is then stratified by age group – this means that the association between activity and infarct would be analyzed per each age group. If the different age groups (or age strata) yield much different risk ratios, age must be viewed as a confounding variable. There exist statistical tools, among them Mantel–Haenszel methods, that account for stratification of data sets.
 Controlling for confounding by measuring the known confounders and including them as covariates is multivariable analysis such as regression analysis. Multivariate analyses reveal much less information about the strength or polarity of the confounding variable than do stratification methods. For example, if multivariate analysis controls for antidepressant, and it does not stratify antidepressants for TCA and SSRI, then it will ignore that these two classes of antidepressant have opposite effects on myocardial infarction, and one is much stronger than the other.
All these methods have their drawbacks:
 The best available defense against the possibility of spurious results due to confounding is often to dispense with efforts at stratification and instead conduct a randomized study of a sufficiently large sample taken as a whole, such that all potential confounding variables (known and unknown) will be distributed by chance across all study groups and hence will be uncorrelated with the binary variable for inclusion/exclusion in any group.
 Ethical considerations: In doubleblind and randomized controlled trials, participants are not aware that they are recipients of sham treatments and may be denied effective treatments.^{[26]} There is a possibility that patients only agree to invasive surgery (which carry real medical risks) under the understanding that they are receiving treatment. Although this is an ethical concern, it is not a complete account of the situation. For surgeries that are currently being performed regularly, but for which there is no concrete evidence of a genuine effect, there may be ethical issues to continue such surgeries. In such circumstances, many of people are exposed to the real risks of surgery yet these treatments may possibly offer no discernible benefit. Shamsurgery control is a method that may allow medical science to determine whether a surgical procedure is efficacious or not. Given that there are known risks associated with medical operations, it is questionably ethical to allow unverified surgeries to be conducted ad infinitum into the future.
Artifacts
Artifacts are variables that should have been systematically varied, either within or across studies, but that were accidentally held constant. Artifacts are thus threats to external validity. Artifacts are factors that covary with the treatment and the outcome. Campbell and Stanley^{[27]} identify several artifacts. The major threats to internal validity are history, maturation, testing, instrumentation, statistical regression, selection, experimental mortality, and selectionhistory interactions.
One way to minimize the influence of artifacts is to use a pretestposttest control group design. Within this design, "groups of people who are initially equivalent (at the pretest phase) are randomly assigned to receive the experimental treatment or a control condition and then assessed again after this differential experience (posttest phase)".^{[28]} Thus, any effects of artifacts are (ideally) equally distributed in participants in both the treatment and control conditions.
See also
 Anecdotal evidence – Evidence relying on personal testimony
 Causal inference – Branch of statistics concerned with inferring causal relationships between variables
 Medicine:Epidemiological method – Scientific method in the specific field
 Simpson's paradox – Probability and statistics phenomenon
 Omittedvariable bias
References
 ↑ Pearl, J., (2009). Simpson's Paradox, Confounding, and Collapsibility In Causality: Models, Reasoning and Inference (2nd ed.). New York : Cambridge University Press.
 ↑ VanderWeele, T.J.; Shpitser, I. (2013). "On the definition of a confounder". Annals of Statistics 41 (1): 196–220. doi:10.1214/12aos1058. PMID 25544784.
 ↑ Greenland, S.; Robins, J. M.; Pearl, J. (1999). "Confounding and Collapsibility in Causal Inference". Statistical Science 14 (1): 29–46. doi:10.1214/ss/1009211805.
 ↑ Shadish, W. R.; Cook, T. D.; Campbell, D. T. (2002). Experimental and quasiexperimental designs for generalized causal inference. Boston, MA: HoughtonMifflin.
 ↑ ^{5.0} ^{5.1} ^{5.2} ^{5.3} Pearl, J., (1993). "Aspects of Graphical Models Connected With Causality," In Proceedings of the 49th Session of the International Statistical Science Institute, pp. 391–401.
 ↑ ^{6.0} ^{6.1} Pearl, J. (2009). Causal Diagrams and the Identification of Causal Effects In Causality: Models, Reasoning and Inference (2nd ed.). New York, NY, USA: Cambridge University Press.
 ↑ Cinelli, C.; Forney, A.; Pearl, J. (March 2022). "A Crash Course in Good and Bad Controls". http://ftp.cs.ucla.edu/pub/stat_ser/r493.pdf.
 ↑ Lee, P. H. (2014). "Should We Adjust for a Confounder if Empirical and Theoretical Criteria Yield Contradictory Results? A Simulation Study". Sci Rep 4: 6085. doi:10.1038/srep06085. PMID 25124526. Bibcode: 2014NatSR...4E6085L.
 ↑ Shpitser, I.; Pearl, J. (2008). "Complete identification methods for the causal hierarchy". The Journal of Machine Learning Research 9: 1941–1979.
 ↑ Morabia, A (2011). "History of the modern epidemiological concept of confounding". Journal of Epidemiology and Community Health 65 (4): 297–300. doi:10.1136/jech.2010.112565. PMID 20696848. http://jech.bmj.com/content/jech/65/4/297.full.pdf.
 ↑ ^{11.0} ^{11.1} Greenland, S.; Robins, J. M.; Pearl, J. (1999). "Confounding and Collapsibility in Causal Inference". Statistical Science 14 (1): 31. doi:10.1214/ss/1009211805.
 ↑ Fisher, R. A. (1935). The design of experiments (pp. 114–145).
 ↑ Vandenbroucke, J. P. (2004). "The history of confounding". Soz Praventivmed 47 (4): 216–224. doi:10.1007/BF01326402. PMID 12415925.
 ↑ Kish, L (1959). "Some statistical problems in research design". Am Sociol 26 (3): 328–338. doi:10.2307/2089381.
 ↑ Greenland, S.; Robins, J. M. (1986). "Identifiability, exchangeability, and epidemiological confounding". International Journal of Epidemiology 15 (3): 413–419. doi:10.1093/ije/15.3.413. PMID 3771081.
 ↑ Neyman, J., with cooperation of K. Iwaskiewics and St. Kolodziejczyk (1935). Statistical problems in agricultural experimentation (with discussion). Suppl J Roy Statist Soc Ser B 2 107180.
 ↑ Rubin, D. B. (1974). "Estimating causal effects of treatments in randomized and nonrandomized studies". Journal of Educational Psychology 66 (5): 688–701. doi:10.1037/h0037350.
 ↑ Pearl, J., (2009). Causality: Models, Reasoning and Inference (2nd ed.). New York, NY, USA: Cambridge University Press.
 ↑ Johnston, S. C. (2001). "Identifying Confounding by Indication through Blinded Prospective Review". American Journal of Epidemiology 154 (3): 276–284. doi:10.1093/aje/154.3.276. PMID 11479193.
 ↑ ^{20.0} ^{20.1} Pelham, Brett (2006). Conducting Research in Psychology. Belmont: Wadsworth. ISBN 9780534532949.
 ↑ Steg, L.; Buunk, A. P.; Rothengatter, T. (2008). "Chapter 4". Applied Social Psychology: Understanding and managing social problems. Cambridge, UK: Cambridge University Press.
 ↑ Tjønneland, Anne; Grønbæk, Morten; Stripp, Connie; Overvad, Kim (January 1999). "Wine intake and diet in a random sample of 48763 Danish men and women". The American Journal of Clinical Nutrition 69 (1): 49–54. doi:10.1093/ajcn/69.1.49. PMID 9925122.
 ↑ Axelson, O. (1989). "Confounding from smoking in occupational epidemiology". British Journal of Industrial Medicine 46 (8): 505–07. doi:10.1136/oem.46.8.505. PMID 2673334.
 ↑ Calow, Peter P. (2009) Handbook of Environmental Risk Assessment and Management, Wiley
 ↑ Mayrent, Sherry L (1987). Epidemiology in Medicine. Lippincott Williams & Wilkins. ISBN 9780316356367. https://archive.org/details/epidemiologyinme00henn.
 ↑ Emanuel, Ezekiel J; Miller, Franklin G (Sep 20, 2001). "The Ethics of PlaceboControlled Trials—A Middle Ground". New England Journal of Medicine 345 (12): 915–9. doi:10.1056/nejm200109203451211. PMID 11565527.
 ↑ Campbell, D. T.; Stanley, J. C. (1966). Experimental and quasiexperimental designs for research. Chicago: Rand McNally.
 ↑ Crano, W. D.; Brewer, M. B. (2002). Principles and methods of social research (2nd ed.). Mahwah, NJ: Lawrence Erlbaum Associates. p. 28.
Further reading
 Pearl, J. (January 1998). "Why there is no statistical test for confounding, why many think there is, and why they are almost right". UCLA Computer Science Department, Technical Report R256. http://ftp.cs.ucla.edu/pub/stat_ser/R256.pdf.
 Montgomery, D. C. (2001). "Blocking and Confounding in the [math]\displaystyle{ 2^{k} }[/math] Factorial Design". Design and Analysis of Experiments (5th ed.). Wiley. pp. 287–302. This textbook has an overview of confounding factors and how to account for them in design of experiments.
 Brewer, M. B. (2000). "Research design and issues of validity". in Reis, H. T.; Judd, C. M.. Handbook of Research. New York: Cambridge University Press. pp. 3–16. ISBN 9780521551281. https://archive.org/details/handbookofresear00reis.
 Smith, E. R. (2000). "Research design". in Reis, H. T.; Judd, C. M.. Handbook of research methods in social and personality psychology. New York: Cambridge University Press. pp. 17–39. ISBN 9780521551281. https://archive.org/details/handbookofresear00reis.
External links
 Tutorial: Confounding and Effect Measure Modification (Boston University School of Public Health)
 Linear Regression (Yale University)
 Tutorial by University of New England
Original source: https://en.wikipedia.org/wiki/Confounding.
Read more 