← Latest papers
📊 statistics

Scalable and Versatile Identification for Hierarchical Structural Causal Models: A New Look at Project STAR

This paper introduces a scalable, open-source pipeline for Hierarchical Structural Causal Models that integrates symbolic identification via pyAgrum with a novel AST-based decomposition for parallel numerical estimation, demonstrating through the Project STAR dataset that ignoring hierarchical structures leads to flawed causal inference and that robust practical implementation requires both symbolic and numerical rigor.

Original authors: Janis Aiad, Aghiles Drali, Aymen El Ouadrhiri, Anass Ettahiri, Yasser Oufqir, Simon Patry, David Cortes, Marianne Clausel, Emilie Devijver

Published 2026-08-26
📖 6 min read🧠 Deep dive

Original authors: Janis Aiad, Aghiles Drali, Aymen El Ouadrhiri, Anass Ettahiri, Yasser Oufqir, Simon Patry, David Cortes, Marianne Clausel, Emilie Devijver

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the world of data science, researchers often try to understand cause and effect by looking at how one thing changes another. Imagine a doctor trying to figure out if a new medicine works. They might compare patients who took the pill with those who did not. But real life is rarely that simple. People live in groups, and those groups have their own rules, environments, and hidden influences. A student's performance in a classroom is not just about their own effort; it is also shaped by the teacher, the other students, and the specific mix of people in that room. When data is organized in these nested layers—like students inside classes, or classes inside schools—standard ways of analyzing numbers often miss the bigger picture. They might find a connection, but they fail to understand how an intervention at the group level actually ripples down to the individual. This is the challenge of hierarchical data: how do we measure the effect of changing a whole group when our measurements are taken from the individuals inside it?

A team of researchers has built a new tool to solve this specific problem. They created a complete, automated system that can take complex, layered data and figure out the true cause-and-effect relationships within it. Their work centers on a famous experiment from the 1980s called Project STAR, which took place in Tennessee. In that study, thousands of kindergarten students were randomly assigned to different types of classrooms: small classes, regular-sized classes, or regular classes with an extra teacher's aide. The goal was to see if smaller class sizes helped students learn better. For decades, scientists have analyzed this data, but they usually treated every student as an independent data point, ignoring the fact that students in the same class share the same environment. The new system developed by this team changes that approach. Instead of looking at students one by one, it treats the entire class as a single unit of analysis, recognizing that the "treatment"—the class size—is a feature of the group, not just the individual.

The researchers developed a pipeline that acts like a translator between two different ways of thinking about data. First, they use a method to map out the relationships between variables, creating a visual diagram of how factors like class size, student gender, and ethnicity might influence test scores. Then, they apply a set of logical rules to this diagram to determine exactly what can be learned from the data. This step is crucial because it tells them which mathematical formulas are needed to calculate the answer. The innovation lies in how they handle these formulas. Instead of trying to solve one massive, complicated equation all at once, their system breaks the problem down into many small, manageable pieces. It calculates the probability of different outcomes for each class separately, using the specific details of that classroom, and then combines these small results to get a final answer. This approach allows the system to handle huge amounts of data efficiently and ensures that the unique characteristics of each group are preserved rather than washed out by an average.

When the team applied this new method to the Project STAR data, they found something surprising. Traditional statistical methods, which ignore the group structure, suggested that moving a student to a small class would boost their math score by about nine points. However, the new hierarchical method, which respects the class-level nature of the intervention, estimated a much larger effect: a boost of nearly thirty-seven points. This difference is not a mistake; it reveals a fundamental truth about how the data works. The standard methods were measuring the association between a student and a small class, but they were missing the deeper mechanism of how the entire class composition changes the learning environment. The new system showed that the effect of class size is not just a simple number added to a student's score; it is a complex interaction involving the mix of students, the teacher, and the specific dynamics of that room.

The study also highlighted the importance of checking the stability of these calculations. Because the system relies on estimating probabilities for many different factors within each class, some of these estimates can be shaky, especially when there are not many students in a class to learn from. The researchers built a safety check into their system that identifies these unstable parts and adjusts them so they do not distort the final result. This step ensures that the large difference they found is not just a fluke of the math but a robust finding. They tested their system on fake data where they knew the answer beforehand, and it worked perfectly, proving that the tool can accurately recover the truth when the structure is complex.

The findings from this work suggest that we have been underestimating the power of group-level interventions in education and other fields. By treating a classroom as a single, interconnected unit rather than a collection of isolated individuals, we can see a clearer picture of how changes at the top affect the bottom. The researchers did not claim that their method is perfect or that it solves every problem in data science. They noted that their current tool works best with two levels of hierarchy, like students and classes, and that real-world education systems often have a third level, such as schools, which adds another layer of complexity. They also pointed out that the accuracy of their results depends heavily on having good data for every factor they measure. If a key piece of information is missing or hard to estimate, the final answer might need to be treated with caution.

Ultimately, this paper offers a new way of looking at the world through data. It moves beyond the simple question of "does this work?" to ask "how does this work within a group?" By building a bridge between abstract logical rules and practical, scalable computer code, the team has provided a way to analyze nested data that is both rigorous and flexible. Their work on the Project STAR data serves as a powerful example, showing that when we account for the structure of our data, the answers we get can be dramatically different—and often much more meaningful—than the ones we get from traditional methods. The code they wrote is now available for others to use, allowing scientists to apply this same careful, layered thinking to their own questions about how groups and individuals influence one another.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →