Fraud Blocker
Skip to content
Home » Understanding cause and effect

Understanding cause and effect

    The book of why - Cause and effect

    One of the most important concepts to master in your research is causality. Many research questions ultimately boil down to causal puzzles:

    • Does this drug work?
    • Does that policy lead to unintended consequences?
    • Does exposure to air pollution impact cognitive development?

    Understanding causation is the key to designing accurate studies, drawing robust conclusions and making credible recommendations.

    It’s not enough to simply observe that two things happen together.

    You need to understand why.

    This article explains how to design experiments that reveal true cause-and-effect relationships, drawing inspiration from Judea Pearl’s insightful book, “The Book of Why: The New Science of Cause and Effect.”

    Correlations, causality and confounders

    For years, scientists warned about the health risks of drinking coffee. Early studies linked coffee drinking to heart disease and other health problems. However, as the scientific methods improved, researchers discovered something unexpected about these findings.

    The findings revolve around three key scientific concepts. The first is correlations, which happens when two things occur together. For example, people who eat more ice cream also tend to get more sunburns. The second concept, causality, indicates that one thing directly causes another, such as sunny weather leading to increased ice cream consumption. The third concept, confounders, involves hidden factors that can trick us into seeing false connections. In this case, it’s not the ice cream (correlation), but the sunny weather (confounder), that causes sunburns.

    In the case of coffee, scientists noticed something odd in their data. Coffee drinkers seemed to have more health problems. To understand why, they examined people’s daily habits more closely and identified the confounding factor.

    Smoking.

    People who smoked tended to drink more coffee, and smoking caused heart disease. Coffee wasn’t harming anyone. Instead, its reputation suffered because of the higher prevalence of smokers among coffee drinkers.

    This demonstrates how understanding statistical concepts like correlation, causation, and confounding factors is essential in scientific research. The coffee-health relationship is a classic example of how overlooking confounding factors can trick us into seeing false connections. It reminds us to carefully examine the complex relationships between all factors before drawing definitive conclusions about causality.

    Understanding causality

    At its core, scientific inquiry seeks to understand what happens around us and why it happens. Causal reasoning goes beyond spotting correlations to uncover the true pathways through which one thing (a cause) triggers another (an effect). Techniques such as creating cause-effect diagrams and employing counterfactuals enable us to understand how things connect and influence each other.

    Counterfactuals

    Counterfactuals in research experiments refer to hypothetical scenarios exploring “what would have happened if” (an experimental condition had been different).

    Imagine you’re studying whether a new teaching method improves student test scores. The counterfactual would be those same students’ scores if they hadn’t received the new teaching method. Of course, it’s impossible to observe both scenarios with the same students at the same time. This is known as the “fundamental problem of causal inference.”

    To address this, researchers use various methods to approximate counterfactuals:

    • Control groups: Creating matched groups that are as similar as possible except for the treatment.
    • Natural experiments: Taking advantage of situations where similar groups naturally received different treatments.
    • Before-and-after comparisons: Looking at the same group before and after an intervention.
    • Statistical methods: Using techniques like regression discontinuity or instrumental variables.

    If studying the impact of a job training program, we can’t observe both what happens when someone takes the program AND what would have happened if they hadn’t. Instead, we might compare participants to a similar group who didn’t participate, using careful matching to create a credible counterfactual.

    Good counterfactuals help us isolate the true effect of our intervention by showing what would have occurred without it. This helps distinguish correlation from causation.

    Causal diagrams

    Cause and effect diagram
    The 3 basic patterns of causal relations among any three observed variables.

    Causal diagrams offer researchers a structured approach to map and understand complex relationships across their studies. These visual frameworks can work as a foundation for planning and executing experimental research by connecting outcomes and influencing factors in a clear, organized system.

    During planning, researchers map control variables and spot potential confounding factors. The diagrams show which variables to measure in the design phase and how different factors connect. For analysis, these diagrams help researchers trace results back to their sources and spot gaps for future studies. The diagrams also excel at documenting research decisions by showing theoretical frameworks and experimental controls in an accessible format that research teams can share and understand.

    Why causal reasoning matters

    Causal reasoning is critical for scientific thinkers for several key reasons:

    • Prediction: Understanding cause-effect relationships enables us to predict what will occur under certain conditions or interventions. For instance, understanding that smoking causes lung cancer allows physicians to estimate a patient’s risk of developing cancer depending on their smoking habits.
    • Explanation: Causal knowledge explains why events occur in specific ways. Rather than just noting that ice cream sales and drowning rates rise in summer, causal reasoning reveals the shared factor – hot weather – driving both.
    • Intervention: Most significantly, understanding causality allows us to intervene in systems to reach desired outcomes. If poor sleep reduces cognitive performance, we can create strategies to improve sleep and enhance brain function.

    Judea Pearl argues in “The Book of Why” that causal reasoning is central to creating intelligent systems that reason about the world like humans do. Many modern AI approaches heavily rely on pattern recognition and statistical learning from data without understanding the causal “why” behind patterns.

    A brief history of causal thinking

    The drive to understand causality has deep historical roots. Key milestones include:

    • Ancient Greeks, like Aristotle, used logic to reason about causality, classifying four types of causes (material, formal, efficient, final).
    • In the 1700s, controlled experiments enabled researchers like James Lind to prove causal links such as citrus fruits preventing scurvy.
    • 1800s and 1900s statistical methods, developed by Pierre-Simon Laplace, Ronald Fisher and others, provided quantitative tools to test causal hypotheses.
    • In recent decades, Donald Rubin, Judea Pearl, and others have led a “causal revolution”, creating formal mathematical tools (do-calculus) and visual models (causal diagrams) to analyze and reason about causal effects.

    Types of causal relationships

    Not all causes are equal. Key distinctions include:

    • Necessary vs sufficient causes: A necessary cause must be present for an effect to happen (like oxygen for fire), while a sufficient cause always produces the effect (like decapitation causing death). Many causes are neither necessary nor sufficient.
    • Proximal vs distal causes: A proximal cause directly produces an effect, while a distal cause acts indirectly through intermediate causes. Smoking proximally causes lung inflammation, and inflammation proximally causes lung cancer, so smoking distally causes lung cancer.
    • Contributing vs countervailing causes: Contributing causes drive an effect the same way, while countervailing causes oppose each other. Smoking and asbestos both contribute to lung cancer, while smoking and exercise have opposite effects on heart disease risk.

    Establishing Causality: Pearl’s Ladder of Causation

    Pearl’s “The Book of Why” proposes three levels for establishing causal relationships:

    • Association: Observing regularities or correlations between variables, suggesting possible causal links but not proving them. Like noticing smokers have higher lung cancer rates.
    • Intervention: Actively changing a variable to see its effects, holding other variables constant. Randomized controlled experiments are the gold standard here, like assigning people to smoking and non-smoking groups and comparing cancer rates.
    • Counterfactuals: Reasoning about what would have happened in an alternate reality where certain variables changed. Counterfactuals can’t be directly tested but can be modelled with tools like structural equation models. Like estimating how many lung cancer deaths would have been prevented if a patient never smoked.

    Example: Berkeley admissions

    Berkeley admissions data initially showed a correlation between gender and acceptance rates, with men more likely to get in (level 1). However, analyzing admissions within each department, this correlation vanished. The bias appeared because women applied to more competitive departments (level 2). To ask the counterfactual, “What would the admissions outcome have been for a female applicant had she been male?” researchers would model the causal effect of gender on acceptance rates per department (level 3).

    SigmaPlot graph od the Berkeley Admission case

    Graph created with SigmaPlot 16 of Berkeley admissions data (Bubble and Scatter plot with symbols).

    From a causal perspective, this example of Simpson’s paradox reveals that naive statistical associations can be misleading about true causal relationships. This is why causal inference frameworks (like Pearl’s do-calculus or potential outcomes) emphasize the importance of proper conditioning on variables and understanding the causal structure underlying the data.

    Simpson's paradox reverse combined curve

    Simpson’s paradox occurs when a trend appears in several groups of data but disappears or reverses when these groups are combined. This phenomenon highlights how confounding variables can drastically alter our interpretation of data.

    Designing effective causal experiments

    Researchers can design robust causal experiments with a few key principles:

    1. Ask clear causal questions regarding interventions or counterfactuals, not just associations. Ask, “If we change X, will Y change as a result?” not just “Are X and Y correlated?”
    2. Use causal diagrams to map variables and relationships, including potential confounders (common causes of X and Y creating false correlations). This visualizes assumptions and informs study design.
    3. When feasible, randomly assign treatments to balance confounders across groups. If randomization is impossible, use stratification or matching to make groups as alike as possible.
    4. Pick control groups and interventions carefully. Controls should represent what would have happened to the treatment group without the treatment. Standardize and specify interventions to fit the research question.
    5. Collect quality data and analyze it with rigorous statistical methods. Watch for measurement errors, missing data, and assumption violations that can weaken causal inferences.

    To cement these abstract ideas, consider a few concrete examples:

    • Smoking and lung cancer: This classic case illustrates the challenges in proving causality amid confounding variables and competing interests. Early studies found strong correlations between smoking and cancer (rung 1 of Pearl’s ladder). But cigarette companies argued this didn’t prove smoking caused cancer – an unknown factor could cause both. Controlled animal experiments and human studies that accounted for confounders like age and occupation provided more substantial evidence for smoking’s causal role (rung 2).
    • The Monty Hall problem: In this famous probability puzzle, you pick one of three doors, behind one of which is a prize car. The host then opens one of the other doors, always revealing a goat, and asks if you want to switch your pick to the remaining unopened door. Most people’s gut instinct is that switching doesn’t matter since two unknown doors remain, and the prize is equally likely behind each. But causal reasoning reveals switching doubles your chances of winning to 2/3! The key is the host’s action isn’t random. People often get confused because they ignore the causal relationship between the host’s actions and the prize location. They wrongly treat the host’s door choice as random when it’s actually dependent on both your initial choice and where the prize is.
    • John Snow and Cholera: In 1854 London, Dr. John Snow helped originate modern epidemiology during a cholera outbreak. While prevailing theory blamed “bad air”, Snow noted cases clustered around a particular water pump. Comparing fatality rates between districts and turning off the pump (an intervention) supported his novel hypothesis that cholera spread through contaminated water.

    Controlled experiments are like adjusting individual ingredients in a recipe and observing the result, while causal inference tries to unveil the underlying composition from observed flavours. Causal diagrams map these influences, showing how each ingredient affects the final taste. They tell us which variables directly change others, which ones work together, and which ones we need to control to understand specific relationships.

    Bottom line

    Understanding how the world works requires causal reasoning. Pearl and others leading the “causal revolution” gave us tools to uncover causal relationships behind correlations. By carefully considering the underlying mechanisms and confounding factors, we can move beyond mere associations to identify the true drivers of observed phenomena. They guide us in setting up experiments that expose true causes and effects. Causal inference is powerful and you too can use it. Seeing two things together doesn’t mean one caused the other. With the right approaches, you can find the hidden causal structures and understand how things work.

    Resources