third variable problem

Third Variable Problem: Definition & Examples in Psychology

Updated October 2026 ยท reviewed for today
In short

The third variable problem arises when two things move together only because a hidden third factor, a confounder, drives both. Read the link as cause and effect and you get the wrong answer. Statisticians have warned about such spurious correlation since at least Karl Pearson’s 1897 paper on the subject.

Third Variable Problem: hand-drawn explainer by The Business Engineer
Drawing by The Business Engineer.

How it works

01
Two variables correlate
A dataset shows that A and B rise and fall together, and the story writes itself: A causes B.
02
A third factor sits behind both
An unmeasured variable C pushes on A and on B. Remove C and the link between A and B shrinks or vanishes.
03
The wrong lever gets pulled
Act on A to change B and nothing happens, because C was doing the work all along.
04
Experiments break the tie
Random assignment spreads hidden factors evenly across groups, so a difference that remains is evidence of cause.

Where you see it today

AI models that learn the hospital, not the disease

A deep learning model for pneumonia on chest X-rays performed worse at outside hospitals (Zech et al., 2018). Pneumonia was far more common at one training site, so the hospital itself became a third variable the model could exploit. Researchers call this shortcut learning (Geirhos et al., 2020).

Hormone therapy and the heart

Decades of observational data suggested hormone therapy protected women’s hearts. The Women’s Health Initiative randomised trial found the opposite for estrogen plus progestin: overall health risks exceeded benefits (Writing Group for the Women’s Health Initiative Investigators, 2002). Women who chose the therapy differed in other ways.

Chocolate and Nobel prizes

A short, widely cited paper found that countries eating more chocolate had more Nobel laureates per head (Messerli, 2012). National wealth is a likely third variable behind both.

A/B tests in product teams

Online companies run controlled experiments because user behaviour data is full of confounders, such as heavy users adopting every new feature first (Kohavi, Longbotham and Sommerfield, 2008). The same discipline now applies to measuring whether an AI feature changes outcomes.

Third variable problem and related ideas

Third variable (confounding)
What goes wrongA hidden factor drives both variables
ExampleSummer heat behind ice cream sales and drownings
Reverse causation
What goes wrongB causes A, not the other way round
ExampleSick people take more medicine, so medicine 'causes' illness
Simpson's paradox
What goes wrongA trend reverses when groups are combined
ExampleA treatment wins in every subgroup and loses overall
Survivorship bias
What goes wrongOnly the survivors are in the data
ExampleStudying only successful startups
Illusory correlation
What goes wrongA link is seen where none exists
ExampleRemembering the hits, forgetting the misses

How to spot and avoid it

  • For every correlation, ask: what else could raise both of these at once?
  • Draw the possible causes as a small diagram before you trust the chart.
  • Where you can, run a randomised test instead of reading observational data.
  • When an AI model scores well, test it on data from a different source to see whether it learned a shortcut.
  • Control for the obvious confounders (size, season, income, user activity) before presenting a result.
The Business Engineer lens

AI systems are correlation engines, so they inherit the third variable problem at scale and hide it inside a model. The Business Engineer treats every data-driven claim, human or machine, as a hypothesis until an experiment or an outside test supports it.

Read: The Paradox of Experimentation โ†’Explore the platform โ†’

Related: Confounding variable ยท Simpson's paradox ยท Survivorship bias ยท Illusory correlation ยท A/B testing

Frequently asked questions

What is the third variable problem?

It is when two variables appear linked only because a third, unmeasured variable affects both of them.

What is an example of the third variable problem?

Ice cream sales and drownings rise together because hot weather increases both, not because ice cream causes drowning.

How do you solve the third variable problem?

Randomised experiments are the strongest fix; otherwise measure likely confounders and control for them in the analysis.

Does the third variable problem affect AI?

Yes. Models can learn a confounder as a shortcut, as a pneumonia model did when it picked up which hospital an X-ray came from.

Sources

The full guide

The complete explainer, cleaned up and reformatted for mobile.

The third variable problem, also known as confounding or the third variable bias, occurs when a researcher observes a statistical relationship between two variables but fails to account for the influence of a third variable that affects both of the observed variables. In essence, the third variable problem arises when an uncontrolled or unmeasured factor creates a false impression of causality between two correlated variables.

Key Characteristics of the Third Variable Problem

  1. Confounding Variable: The unmeasured third variable is referred to as a confounding variable. It confounds the relationship between the two variables of interest.
  2. Misleading Associations: The presence of a confounding variable can lead to misleading or erroneous associations between the observed variables, making it appear as though one causes the other.
  3. Causality vs. Correlation: The third variable problem highlights the importance of distinguishing between causality and correlation. Just because two variables are correlated does not mean one causes the other.

Real-Life Examples of the Third Variable Problem

To illustrate the concept of the third variable problem, let’s explore some real-life examples:

Example 1: Ice Cream Sales and Drowning Incidents

  • A study finds a strong positive correlation between ice cream sales and the number of drowning incidents at a beach. Researchers might mistakenly conclude that eating ice cream increases the risk of drowning. However, the third variable in this case is the hot weather. Hot weather leads to increased ice cream sales and more people going to the beach, which, in turn, raises the risk of drowning. The relationship between ice cream sales and drowning incidents is spurious, and hot weather is the true confounding variable.

Example 2: Academic Performance and Study Time

  • A study reveals a negative correlation between the number of hours students spend watching television and their academic performance. Researchers might mistakenly conclude that watching more television leads to worse academic performance. However, the third variable here is the students’ motivation or study habits. Students who are more motivated tend to study more and perform better academically, while those who are less motivated may spend more time watching TV and perform worse. Motivation is the true confounding variable affecting both study time and academic performance.

Implications of the Third Variable Problem

The third variable problem has significant implications for research and data analysis:

1. Misleading Conclusions

  • Without accounting for confounding variables, researchers may draw incorrect conclusions about the relationships between variables. This can lead to erroneous beliefs and ineffective interventions.

2. Validity of Research

  • The presence of confounding variables can undermine the internal validity of research, making it difficult to establish causality.

3. Policy and Decision-Making

  • Misinterpreted research findings can influence policies and decision-making processes, potentially leading to ineffective or misguided actions.

4. Replication and Generalization

  • When confounding variables are not considered, attempts to replicate research findings or generalize them to other contexts may yield inconsistent or misleading results.

Strategies for Identifying and Addressing Confounding Variables

Researchers employ various strategies to identify and address confounding variables in research:

1. Random Assignment

  • In experimental studies, random assignment of participants to groups can help distribute potential confounding variables evenly among groups, reducing their impact on the outcome.

2. Matched Groups

  • Researchers can create matched groups by pairing participants with similar characteristics or potential confounding variables. This ensures that each group is equally affected by the confounding variable.

3. Statistical Control

  • Statistical techniques such as analysis of covariance (ANCOVA) and multiple regression can be used to control for the influence of confounding variables statistically.

4. Measuring and Including Confounders

  • Researchers can measure and include potential confounding variables as covariates in their analyses. This allows for the examination of the relationship between the primary variables while accounting for the confounding factors.

5. Longitudinal Studies

  • Longitudinal research designs, which involve collecting data from the same participants over time, can help researchers identify and account for changes in confounding variables.

6. Replication

  • Replicating research findings in different settings or with different samples can help assess the robustness of results and identify potential confounders.

7. Use of Control Groups

  • Control groups, which do not receive the experimental treatment, can help researchers assess the impact of confounding variables by comparing them to the treatment group.

Practical Examples of Addressing the Third Variable Problem

Example 1: Evaluating a New Medication

  • In a clinical trial evaluating the effectiveness of a new medication, researchers take into account patients’ age, gender, and overall health as potential confounding variables. By including these factors as covariates in the analysis, they can assess the true impact of the medication on health outcomes while controlling for potential confounding.

Example 2: Online Shopping Behavior

  • In a study examining online shopping behavior, researchers collect data on factors such as income, internet access, and shopping habits. By using statistical control techniques, they can isolate the effect of a specific online shopping intervention while accounting for confounding variables like income and prior shopping behavior.

Ethical Considerations in Addressing Confounding Variables

Researchers must also consider ethical implications when addressing confounding variables:

1. Informed Consent

  • Participants should be fully informed about the study, including the potential presence of confounding variables, to make informed decisions about their participation.

2. Privacy and Data Protection

  • Researchers must handle participants’ personal information with care, ensuring that privacy is maintained when collecting and storing data related to potential confounding variables.

3. Beneficence and Non-Maleficence

  • Researchers should aim to minimize potential harm to participants and maximize the benefits of the study, even when addressing confounding variables.

4. Transparency and Reporting

  • Researchers should transparently report their methods for addressing confounding variables in research publications, promoting trust and accountability in the scientific community.

Conclusion: Untangling the Complex Web of Variables

The third variable problem serves as a reminder of the complexities inherent in research and data analysis. Researchers must be vigilant in identifying and addressing potential confounding variables to draw accurate conclusions about the relationships between variables. By employing rigorous methods and ethical considerations, researchers can navigate the intricate web of variables and contribute to the advancement of knowledge across various fields of study.

Key Highlights of the Third Variable Problem

  • Definition: The Third Variable Problem refers to a situation in research where a third variable, not accounted for in the study, influences both the independent and dependent variables, leading to a spurious correlation between them.
  • Conceptual Understanding: Researchers may mistakenly attribute a causal relationship between the independent and dependent variables when, in reality, the third variable is responsible for the observed correlation.
  • Example: For instance, consider a study that finds a positive correlation between ice cream sales and drowning deaths. Without considering a third variable like temperature, which influences both ice cream sales and swimming activities (leading to drowning deaths), one might erroneously conclude that ice cream consumption causes drownings.
  • Identification: Detecting the Third Variable Problem requires careful examination of potential confounding variables that could explain the observed correlation between the independent and dependent variables.
  • Addressing: Researchers can address the Third Variable Problem through experimental design techniques like random assignment or statistical methods like regression analysis, controlling for potential confounding variables.
  • Caution in Interpretation: It’s crucial for researchers to exercise caution when interpreting correlations and to consider the possibility of third variables influencing the observed relationships.
  • Real-Life Implications: Failure to account for third variables can lead to incorrect conclusions and misguided interventions, highlighting the importance of robust research design and analysis techniques.
Third Variable Problem
DescriptionThe Third Variable Problem refers to the situation in which a correlation between two variables may be misleadingly attributed to a third variable that affects both of the original variables. It highlights the importance of considering additional factors when interpreting correlations.
PurposeTo caution against assuming causality between two variables solely based on their correlation, as there may be confounding factors influencing both variables.
Key Components/Steps1. Identify correlation: Observe a correlation between two variables. 2. Consider third variables: Explore potential third variables that may influence both correlated variables. 3. Control or account for third variables: Use statistical techniques or experimental designs to control for or account for the influence of third variables.
Confounding Variables
DescriptionConfounding variables are extraneous factors that are not the focus of the study but can affect the results by influencing both the independent and dependent variables. They can lead to erroneous conclusions if not properly controlled for.
PurposeTo identify and control for factors that could distort the relationship between the independent and dependent variables, ensuring more accurate interpretations of study results.
Key Components/Steps1. Identify potential confounding variables: Consider factors other than the independent variable that could influence the dependent variable. 2. Control for confounding variables: Use statistical techniques (e.g., multivariate analysis, matching) or experimental design (e.g., randomized controlled trials, stratification) to account for the effects of confounding variables.
Mediation Analysis
DescriptionMediation analysis examines the process or mechanism through which an independent variable influences a dependent variable by considering the role of one or more intermediary variables (mediators). It helps in understanding the underlying causal pathways between variables.
PurposeTo explore and understand the mechanisms underlying the relationship between an independent and dependent variable, particularly when there is a significant correlation between them.
Key Components/Steps1. Identify the independent, dependent, and potential mediator variables. 2. Assess the direct and indirect effects: Determine the direct effect of the independent variable on the dependent variable and the indirect effect mediated through the mediator variable(s). 3. Analyze mediation: Use statistical techniques such as regression analysis or structural equation modeling to assess the strength and significance of the indirect effects.
Simpson’s Paradox
DescriptionSimpson’s Paradox is a phenomenon in which a trend or association observed within subgroups of data is reversed or disappears when the data is combined. It highlights the importance of considering the effects of lurking variables or confounding factors.
PurposeTo illustrate how aggregated data can lead to misleading conclusions by masking or reversing trends observed at the subgroup level.
Key Components/Steps1. Identify subgroups: Divide the data into meaningful subgroups based on relevant characteristics. 2. Analyze trends within subgroups: Examine the relationship between variables within each subgroup. 3. Assess overall trend: Combine the data from all subgroups and compare the overall trend with the trends observed within subgroups.
Multicollinearity
DescriptionMulticollinearity occurs when independent variables in a regression model are highly correlated with each other, leading to unstable parameter estimates and difficulties in interpreting the contributions of individual variables.
PurposeTo identify and address issues arising from high intercorrelations between independent variables in regression analysis, ensuring more reliable estimates of their effects on the dependent variable.
Key Components/Steps1. Examine correlations: Calculate correlations between independent variables. 2. Assess variance inflation factors (VIF): Calculate VIF for each independent variable to quantify the extent of multicollinearity. 3. Address multicollinearity: Take steps to mitigate multicollinearity, such as removing redundant variables, combining correlated variables, or using regularization techniques.
Spurious Correlation
DescriptionSpurious correlation refers to a statistically significant relationship between two variables that is purely coincidental or arises due to the influence of a third variable. It highlights the importance of careful interpretation of statistical results and consideration of potential confounding factors.
PurposeTo caution against drawing causal conclusions based solely on statistically significant correlations, as the observed relationship may be due to chance or the influence of unmeasured variables.
Key Components/Steps1. Identify significant correlation: Observe a statistically significant correlation between variables. 2. Consider alternative explanations: Explore potential third variables or lurking variables that could explain the observed correlation. 3. Verify causality: Use additional research methods (e.g., experimental studies, longitudinal analysis) to establish causality and rule out spurious correlations.

Connected ยท Third Variable Problem

Where to go next from Third Variable Problem

Picked for this page by topic. Every link checked live.

The Paradox of ExperimentationThe Business Engineer readThe Paradox of ExperimentationRead on businessengineer.ai โ†’
Confounding variableRelated conceptConfounding variableConfounding variables, also known as confounders or third variables, are extraneous factors that can interfere with the interpretation of researchโ€ฆSimpson's paradoxRelated conceptSimpson's paradoxSimpson's paradox occurs when an association between two variables appears, disappears or reverses once data are split into subgroups, usuallyโ€ฆSurvivorship biasRelated conceptSurvivorship biasSurvivorship bias is a pervasive fallacy that exists in business, where people focus on the few survived players, in any given market, withoutโ€ฆIllusory correlationRelated conceptIllusory correlationIllusory Correlation is a cognitive bias leading to perceiving false connections between unrelated events or traits.Root Cause AnalysisRelated conceptRoot Cause AnalysisNote that the root cause is an underlying factor that sets the problem in motion or causes a particular situation such as non-conformance.

More on Third Variable Problem: A/B Testing

Scroll to Top
FourWeekMBA