Skip to main content

Difference-in-differences approach

The difference-in-differences approach is a causal inference method that compares how an outcome changes over time in a treated group versus a control group. In Intro to Epidemiology, it is used to estimate the effect of a policy or intervention when random assignment is not possible.

Last updated July 2026

What is the difference-in-differences approach?

The difference-in-differences approach is a way to estimate a causal effect in Intro to Epidemiology by comparing change over time in two groups: one exposed to an intervention and one not exposed. Instead of asking only whether the treatment group got better or worse, you ask whether its change was different from the control group’s change.

That “difference of differences” is the core idea. You first measure the outcome before the intervention, then measure it again after the intervention. If both groups move in the same direction because of a broader trend, that shared movement gets subtracted out. What remains is the extra change linked to the intervention, assuming the groups would have followed similar paths without it.

This method shows up when random assignment is not realistic, which is common in public health. You cannot randomly assign people to smoke bans, insurance expansions, clinic openings, or school health policies just to see what happens. Difference-in-differences gives you a structured way to study those real-world changes using observational data.

The big assumption is the parallel trends idea. That means that before the intervention, the treated and control groups should be moving in similar ways, or at least close enough that you can reasonably compare their future trends. If the treated group was already improving faster than the control group, the method can mistake that preexisting difference for an intervention effect.

A simple example is comparing rates of an illness in two similar cities when one city starts a new vaccination campaign and the other does not. If both cities were already trending downward before the campaign, and only the intervention city drops more after the campaign begins, the extra drop is the estimated treatment effect. In epidemiology, that kind of comparison is often more useful than a raw before-and-after snapshot because it helps separate the intervention from outside time trends, seasonality, or other changes happening at the same time.

Why the difference-in-differences approach matters in Intro to Epidemiology

Difference-in-differences matters in epidemiology because a lot of the questions you care about are about real-world exposure changes, not lab-style experiments. Public health policies, screening programs, environmental regulations, and clinic interventions often roll out at different times across places, so you need a method that can handle messy observational data.

It gives you a stronger causal argument than a simple pre/post comparison. If flu cases drop after a new school policy, that drop might be due to the policy, but it could also be due to a mild season, a new vaccine, or changes in testing. Comparing the treated group to a control group over the same time period helps isolate the effect you actually want to study.

This method also connects directly to causal inference and Hill’s criteria because it pushes you to ask, “Could something else explain the pattern?” When you can show that the treated group changed more than a similar control group, your claim about causality gets more believable. That is a big deal in public health writing, article critique, and class discussions about evidence quality.

It also helps you read research results more carefully. A paper may report an effect from a policy change, but if the comparison groups were not similar before the change, the result may not be trustworthy. Knowing the logic behind difference-in-differences helps you spot when a study is making a careful causal claim and when it is only showing correlation over time.

Keep studying Intro to Epidemiology Unit 5

How the difference-in-differences approach connects across the course

Causal Inference

Difference-in-differences is one tool inside causal inference. It is used when you want to move beyond simple association and estimate whether an intervention likely caused a change in health outcomes. In epidemiology, that usually means asking whether a policy, exposure, or program produced more change than you would expect from time trends alone.

Control Group

The control group is what makes this method work. You are not just tracking the treated group before and after, you are comparing it with a group that did not receive the intervention. That comparison helps account for outside forces like seasonality, population-wide changes, or shifts in healthcare access.

Regression Discontinuity Design

Regression discontinuity design is another quasi-experimental method for causal inference, but it uses a cutoff or threshold instead of changes over time. Difference-in-differences compares trends across groups, while regression discontinuity focuses on people just above and below an assignment cutoff. Both are used when random assignment is not available.

Potential outcomes framework

The potential outcomes framework is the logic behind asking what would have happened to the treated group if it had not received the intervention. Difference-in-differences tries to approximate that missing counterfactual by using the control group’s trend. That is why the parallel trends assumption matters so much.

Is the difference-in-differences approach on the Intro to Epidemiology exam?

A quiz or short-answer question might give you pre- and post-intervention data for two groups and ask whether the policy likely caused the change. Your job is to compare the before-to-after change in the treated group with the before-to-after change in the control group, then explain the difference in plain language. If the treated group improved more, that supports a causal interpretation, but only if the groups had similar trends before the intervention.

In a case study or article critique, you may need to identify the method from the study design and check the parallel trends assumption. You may also be asked to explain why a raw before-and-after comparison is weaker than difference-in-differences. The key move is to show how the control group helps remove background time trends that could otherwise distort the result.

Key things to remember about the difference-in-differences approach

  • Difference-in-differences estimates a causal effect by comparing how two groups change over time, not just whether one group improved.

  • The method is especially useful in epidemiology when random assignment is not possible, like with policy changes or public health interventions.

  • Its biggest assumption is parallel trends, meaning the treated and control groups would have followed similar paths without the intervention.

  • A simple before-and-after change can be misleading, but comparing that change to a control group helps separate the intervention from outside trends.

  • This approach shows up in causal inference questions, study design critique, and public health policy evaluation.

Frequently asked questions about the difference-in-differences approach

What is difference-in-differences approach in Intro to Epidemiology?

It is a method for estimating a causal effect by comparing outcome changes over time in a treated group and a control group. Instead of looking only at whether one group changed, you subtract out the change happening in the control group too. That makes it useful for policy and intervention studies.

How is difference-in-differences different from a before-and-after study?

A before-and-after study only checks whether one group changed after an intervention. Difference-in-differences adds a comparison group, so you can see whether the change was bigger than the background trend. That extra comparison makes the causal claim stronger.

Why does the parallel trends assumption matter?

The method assumes the treated and control groups would have moved in similar ways if the intervention had never happened. If they were already on different trajectories, the estimated effect can be biased. In epidemiology, you often check pre-intervention data to see whether the groups look similar before the policy starts.

What kind of epidemiology example uses difference-in-differences?

A common example is studying a new smoke-free law in one city and comparing changes in respiratory illness rates with a similar city that did not pass the law. You would look at both cities before and after the policy. The difference in their changes is the estimated effect.