Abstract
In the Fall quarter of 2024, a multidisciplinary team from Stanford University—comprising faculty from Computer Science, Economics, and the Graduate School of Business—taught an undergraduate course titled “Causality, Decision Making, and Data Science.” The course was primarily intended for freshmen and sophomores and was cross-listed across the Economics Department, the Data Science Major, the Computer Science Department, and the Graduate School of Business. By utilizing a case-based approach with minimal statistical requirements, the course successfully introduced students to the rigorous world of causal inference. This paper shares the pedagogical lessons learned and provides access to the open-source materials developed for the curriculum.
The Challenge of Teaching Causality
While causal inference is a cornerstone of modern data science and policy evaluation, it is traditionally reserved for graduate-level study or siloed within specific departments. Undergraduates frequently learn how to calculate correlations and regression coefficients without ever grappling with the fundamental question: Does X actually cause Y?
The instructors sought to break these silos by moving beyond the simple "correlation is not causation" mantra. The goal was to equip students with a foundational toolkit for rigorous decision-making early in their academic careers, emphasizing that data-driven insights require more than just predictive modeling.
Curriculum Design: A Case-First Approach
The course departed from traditional theory-heavy instruction by adopting a modular, case-based curriculum. Instead of starting with mathematical theorems, each unit began with a substantive policy or research question. Statistical methods were then introduced as the necessary tools to solve those specific problems.
Modular Structure
- Foundations & Randomization: Following a statistics refresher on resampling and bootstrapping, the course covered randomized experiments using cases like the GAIN labor market programs and West Point classroom technology studies.
- Regression & Income: Students investigated Universal Basic Income and the Permanent Income Hypothesis using data from lottery winners to study the effects of unearned income on labor supply.
- Natural Experiments: This module introduced Instrumental Variables (IV) and Regression Discontinuity Designs (RDD), focusing on the classic "returns to education" problem and the Vietnam Draft Lottery.
- Panel Data & Policy Evaluation: The final module explored Difference-in-Differences and Synthetic Control methods, evaluating the economic impact of Brexit and California’s Proposition 99 tobacco control data.
Pedagogical Innovations
The course's success relied on several unique structural choices designed to foster an active learning environment:
- Interdisciplinary Co-teaching: An economist and a computer scientist attended every session, providing different disciplinary perspectives on the same data—such as the tension between structural parameters and algorithmic robustness.
- Active Learning Environment: To encourage discussion, the instructors enforced a "no-laptop" policy and used assigned seating to mix students from different majors (Economics, CS, Data Science, and Business).
- Empirical Messiness: Students were encouraged to work with raw, "messy" data. Those who chose empirical final projects reported a deeper appreciation for the challenges of research compared to those who focused on theory.
Key Insights and Results
The pilot demonstrated that early-career undergraduates are capable of handling complex causal concepts when they are grounded in narrative. A central "aha moment" for many students was the realization that causal inference is inherently difficult, often resulting in "shades of gray" rather than black-and-white answers.
Student evaluations were exceptionally high, significantly exceeding the school average. Students particularly praised the direct link between technical methods and real-world impact. To support the broader academic community, the authors have open-sourced the entire curriculum, including slides, datasets, and Python-based problem sets.
Future Directions
While successful, the course revealed a natural tension between students' varying technical backgrounds. Future iterations may include "tiered" assignments to provide more mathematical rigor for Economics students and more computational depth for CS majors. Planned expansions include modules on Multi-Armed Bandits, Directed Acyclic Graphs (DAGs), and Sensitivity Analysis to further round out the undergraduate causal toolkit.
Summary updated