1 of 20

Causal Inference in Observational Data �— A Synthetic Difference-in-Differences Approach

Dr Yin Wang 

Lecturer in Research Methods and AI Skills

National Centre for Research Methods (NCRM)

Department of Social Statistics and Demography 

University of Southampton 

email: yw14g25@soton.ac.uk 26/07/2026

2 of 20

Research Interests

  • Machine Learning (ML), Traditional Statistical Models, and AI-Supported Approaches

I am interested in comparing data-driven and theory-driven approaches and examines how key features of complex survey data—such as clustering, sampling weights, and plausible values—can be incorporated into ML and AI-based analyses. The aim is to advance ML methods from individual-level pattern discovery towards population-level inference and policy-relevant evidence.

  • Computational Modelling of Creativity

My research focuses on developing cognitive-computational models to explain and simulate creative processes. In particular, I use neuro-symbolic program synthesis approaches, such as DreamCoder, to investigate how cognitive mechanisms—including conceptual remapping, recursion, and overhypothesis formation—contribute to the generation and transformation of creative ideas.

  • Critical Thinking, Social Networks, and Dark Ideas

My research examines how critical thinking and social network structures influence people’s ability to recognise and respond to dark ideas, including misinformation and conspiracy theories, across different national and cultural contexts.

​

2

3 of 20

Aims:

To develop attendees’ understanding of:

  • Causal Inference methods in Social Science Research.
  • What is the Synthetic Difference-in-Differences (SDID) method?
  • Why is SDID a causal inference method?
  • How can SDID be used to evaluate intervention effectiveness using observational data?
  • How to carry out basic SDID models in the R software package?
  • Extensions of the SDID Analysis.

​

​

3

4 of 20

What is causality?

We are no strangers to causality. Causal questions are everywhere in our lives, and humans have long been fascinated by them—that is:

Causality refers to the idea that a change in one factor (the cause, X) produces a change in another (the effect, Y).

​

​

​

​

​

​

​

  • Because/Since it was raining, we cancelled the picnic.
  • It was late, so we took a taxi.
  • Prices rose sharply; as a result, demand fell.
  • If you heat ice, it melts.
  • I had a cup of coffee this morning, and that’s why I was super-efficient at studying.

​

​

​

​

​

​

​

​

4

5 of 20

How can we detect causal relationships?

To determine whether X causes Y, the most straightforward approach is to hold all other conditions constant and compare what happens to Y when X occurs with what happens when X does not occur.

​

Y(X=1) vs. Y(X=0)

​

5

6 of 20

The fundamental problem of causal inference:

  •  

6

7 of 20

Synthetic Difference-in-Difference:

Synthetic Difference-in-Differences (SDID) is a powerful quasi-experimental causal inference method that constructs a weighted synthetic control group to estimate the counterfactual outcome (Arkhangelsky et al., 2021).

Synthetic Difference-in-Differences = Difference-in-Differences + Synthetic Control

  • Synthetic Difference-in-Differences (SDID) combines the strengths of Difference-in-Differences (DID) and Synthetic Control (SC).
  • Traditional DID estimates treatment effects by comparing changes over time between treated and control groups. Its validity relies heavily on the assumption that the groups would have followed parallel trends in the absence of treatment.
  • Synthetic Control improves the comparability of the groups by assigning greater weight to untreated units that more closely reproduce the treated group’s pre-treatment outcome trajectory.

​

7

8 of 20

What is Difference-in-Difference?

 

 

8

9 of 20

Group

Before Intervention Implementation

After Intervention Implementation

Difference

Treatment Group

​

​

​

Control Group

​

​

​

Difference

​

​

​

 

 

 

 

 

 

 

 

 

1

2

3

4

5

 

9

10 of 20

Why is it a causal tool?

  • DID assumes that, in the absence of the treatment, both groups would have followed parallel trends. By comparing the difference in outcomes between the groups before and after the intervention, we can isolate the causal effect of the treatment.

10

11 of 20

Synthetic Control to Enhance the Parallel Trends Assumption

  •  

11

12 of 20

Before SC

After SC

The “Smoking in California” case uses Synthetic Control to estimate the effect of a 1989 anti-smoking law by comparing post-policy cigarette sales in California to a weighted combination of other U.S. states that did not implement similar policies.

  • Treatment Group: California; Control Group: Rest of U.S.; Intervention Year: 1989
  • Y-axis: Cigarette sales per capita; X-axis: Time

Weighting the control states does not necessarily produce a perfect pre-intervention match. SC also weights the pre-intervention time periods. Periods that provide more useful information about the post-intervention period receive greater weight and play a larger role in estimating the treatment effect.

13 of 20

Advantages of SDID for Intervention Evaluation �Using Observational Data

  • Policy-Relevant Estimation:

Because SDID constructs a counterfactual based on the characteristics and pre-treatment trends of the treatment group itself, the synthetic control is not a real historical group, but a hypothetical scenario derived from the treatment unit's own past and comparable units.

This means the estimated effect answers the question: What would have happened in this country (or region) had the policy not been implemented?

As a result, SDID estimates the impact within the same unit, without requiring direct cross-country or cross-region comparisons, making the findings highly relevant and credible for domestic policy debates.

​

13

14 of 20

  • Average Treatment Effect on the Treated (ATT):

Unlike methods such as instrumental variables (IV), regression discontinuity designs (RDD), and propensity score matching (PSM), which often estimate local treatment effects by excluding units that don’t satisfy strict assumptions for counterfactual construction, SDID delivers a population-level average effect for the treated group over time.

This makes SDID particularly valuable for understanding broad, policy-relevant impacts rather than narrow local effects.

​

  • Handles Repeated Cross-Sections & Heterogeneity Analysis

SDID is not limited to traditional panel data. It can also be applied to repeated cross-sectional datasets, such as PISA, PIRLS, or TIMSS. By combining synthetic control weights at the country or system level with student-level sampling weights, SDID enables causal inference even without individual-level tracking, as long as multiple pre-/post-time points exist at the aggregate level.

When using individual-level data, SDID can be extended to estimate heterogeneous treatment effects, allowing researchers to explore how the policy effect varies across subpopulations (e.g., low vs. high SES students, boys vs. girls) or across system-level features (e.g., countries with stronger governance or more equitable school systems).�This makes SDID especially valuable for nuanced policy insights beyond simple average effects.

​

​

14

15 of 20

Robust Check of SDID

 

 

15

16 of 20

Part 2: SDID in the R Software �Package

16

17 of 20

Source/Editor pane (top-left) – Where you write and edit R scripts. It supports one-click execution of selected lines.

​

​

Console pane (bottom-left) – The live R interpreter. It shows immediate output from commands, error messages.

Environment/History pane (top-right) – Displays all active objects in memory, their types, and sizes, plus a searchable command history.

Files/Plots/Packages/Help/Viewer pane (bottom-right) – A multipurpose area: browse project files, view generated plots, manage installed packages, read built-in documentation, and preview web content without leaving RStudio.

17

18 of 20

Extensions of the SDID Analysis

  • Two-Way Fixed Effects (TWFE)
  • Time-invariant unit-level unobserved heterogeneity

A country’s long-standing educational culture

A student's innate motivation or cognitive style

Regional infrastructure quality that hasn't changed over the study period

  • Time shocks common to all units

A change in international testing standards (e.g., PISA scoring framework update)

A worldwide economic crisis

Sudden curriculum reform applied nationwide

  • Triple Difference Estimator (DDD)

Further isolates causal effects by introducing a third dimension. Helps test heterogeneous treatment effects across subgroups.

18

19 of 20

Thank you for your attention!

Please contact me at yw14g25@soton.ac.uk !

19

20 of 20

  • Arkhangelsky, D., Athey, S., Hirshberg, D. A., Imbens, G. W., & Wager, S. (2019). Synthetic difference in differences (No. w25532). National Bureau of Economic Research.
  • Abadie, A., A. Diamond, and J. Hainmueller (2010). Synthetic Control Methods for Comparative Case Studies: Estimating the Effect of California’s Tobacco Control Program. Journal of the American Statistical Association 105 (490), 493–505.
  • De Chaisemartin, C., & d’Haultfoeuille, X. (2020). Two-way fixed effects estimators with heterogeneous treatment effects. American economic review, 110(9), 2964-2996.
  • Olden, A., & Møen, J. (2022). The triple difference estimator. The Econometrics Journal, 25(3), 531-553.

​

20