Rethinking Software Empirical Studies with Structural Causal Models

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Rodriguez-Cardenas, Daniel, Garryyeva, Aya, Palacio, David Nader, Mastropaolo, Antonio, Poshyvanyk, Denys
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866913168227303424
author Rodriguez-Cardenas, Daniel
Garryyeva, Aya
Palacio, David Nader
Mastropaolo, Antonio
Poshyvanyk, Denys
author_facet Rodriguez-Cardenas, Daniel
Garryyeva, Aya
Palacio, David Nader
Mastropaolo, Antonio
Poshyvanyk, Denys
contents Causal Inference offers a fundamental approach for advancing empirical software engineering (ESE) beyond traditional statistical association, enabling researchers to rigorously identify and quantify causal relationships in software experiments. This paper introduces CausalSE, a framework that operationalizes Judea Pearl's causal inference paradigm in ESE context. The paper focuses on Structural Causal Models (SCMs) to address the limitations of classical statistical methods in mitigating confounding bias. Through a case study using the Galeras dataset and propensity score matching, we demonstrate how CausalSE disentangles the effect of prompt engineering strategies on code generation outcomes in a popular LLM (i.e., GPT-3). The results reveal that while associational analyses can suggest improvements in certain interventions (e.g., more complex prompts), causal analysis often does not find a significant treatment effect, highlighting the risk of false positives when confounding is not addressed. By providing a tutorial-based methodology and a real-world case study, this work equips software researchers with practical tools to design, analyze, and interpret software experiments with methodological rigor, ultimately enabling more informed and actionable conclusions in both research and practice.
format Preprint
id arxiv_https___arxiv_org_abs_2605_28482
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Rethinking Software Empirical Studies with Structural Causal Models
Rodriguez-Cardenas, Daniel
Garryyeva, Aya
Palacio, David Nader
Mastropaolo, Antonio
Poshyvanyk, Denys
Software Engineering
G.3; D.2.4
Causal Inference offers a fundamental approach for advancing empirical software engineering (ESE) beyond traditional statistical association, enabling researchers to rigorously identify and quantify causal relationships in software experiments. This paper introduces CausalSE, a framework that operationalizes Judea Pearl's causal inference paradigm in ESE context. The paper focuses on Structural Causal Models (SCMs) to address the limitations of classical statistical methods in mitigating confounding bias. Through a case study using the Galeras dataset and propensity score matching, we demonstrate how CausalSE disentangles the effect of prompt engineering strategies on code generation outcomes in a popular LLM (i.e., GPT-3). The results reveal that while associational analyses can suggest improvements in certain interventions (e.g., more complex prompts), causal analysis often does not find a significant treatment effect, highlighting the risk of false positives when confounding is not addressed. By providing a tutorial-based methodology and a real-world case study, this work equips software researchers with practical tools to design, analyze, and interpret software experiments with methodological rigor, ultimately enabling more informed and actionable conclusions in both research and practice.
title Rethinking Software Empirical Studies with Structural Causal Models
topic Software Engineering
G.3; D.2.4
url https://arxiv.org/abs/2605.28482