Part VI: Discovery in Scientific Domains
Chapter 52: Discovery AI for Social and Economic Systems

Discovery AI for Social and Economic Systems

"I tried to model the economy as a system of equations. Then I added people. The equations were never the same again."

An Agent-Based Model That Discovered Irrationality

Overview

Social and economic systems present a unique challenge for discovery AI. Unlike molecules that obey fixed laws of physics or cells that follow conserved biochemical pathways, human systems are reflexive: the agents in the system observe, react to, and actively work to subvert any regularities you discover. A trading strategy stops working the moment it becomes widely known. A public health intervention changes behavior simply by being announced. A social network reshapes itself in response to the metrics used to measure it.

This reflexivity makes social and economic discovery harder, but it also makes it more consequential. Correctly estimating the causal effect of a job training program saves billions in misallocated public funds. Identifying network structures that accelerate misinformation diffusion enables targeted interventions. Simulating the downstream consequences of a minimum wage increase before implementation prevents unintended harm. The stakes are high precisely because the systems are complex.

This chapter builds four capabilities. First, we model social and economic networks to discover market structures, influence pathways, and diffusion dynamics using NetworkX and spatial analysis with PySAL. Second, we apply causal inference to observational social data, confronting the specific challenges (SUTVA violations, network interference, temporal confounding) that make social science harder than the idealized settings of Chapter 31. Third, we construct agent-based policy simulations with Mesa that let us test counterfactual scenarios: what happens if we change this regulation, this incentive, this information structure? Fourth, we assemble a complete policy impact analyzer that combines heterogeneous treatment effect estimation, exposure mapping for network interference, and agent-based simulation into a single Discovery Workbench pipeline.

The ideas connect directly to the causal inference foundations of Chapter 31, the simulation paradigms of Chapter 43, and the knowledge graph methods of Chapter 38. They look forward to the autonomous discovery systems of Chapter 53, where agents must reason about interventions in complex systems, and to the responsible AI considerations of Chapter 57, where the ethical constraints on social system experimentation receive full treatment.

Prerequisites

Readers should be comfortable with Chapter 31: Causal Discovery and Causal Inference for structural causal models, treatment effects, and the DoWhy/EconML workflow. Familiarity with Chapter 43: Scientific Simulation helps with the agent-based modeling sections. Chapter 3: Knowledge Representation provides the graph foundations that underpin network analysis. Basic Python fluency with pandas, NumPy, and scikit-learn is assumed. Appendix A covers the linear algebra and probability background.

Learning Outcomes

Sections

52.1 Network Analysis and Market Discovery

Modeling social and economic networks with NetworkX. Centrality measures for identifying key market actors. Community detection for market segmentation. Influence diffusion models (Independent Cascade, Linear Threshold) for understanding information and adoption spread. Spatial economic analysis with PySAL.

52.2 Causal Inference in Social Data

The special challenges of causal inference in social systems: SUTVA violations, network interference, temporal confounding, and reflexivity. Difference-in-differences, synthetic control, and regression discontinuity designs. Exposure mapping for network interference. Sensitivity analysis for social data.

52.3 Policy Simulation

Agent-based economic models with Mesa: heterogeneous agents, adaptive behavior, market mechanisms. Counterfactual policy analysis through simulation. Calibration to empirical data. Validation against natural experiments. Ethical constraints on social system experimentation.

52.4 Building a Policy Impact Analyzer

Recipe: a complete policy impact analyzer combining heterogeneous treatment effect estimation (EconML causal forest), exposure mapping for network interference, and agent-based counterfactual simulation (Mesa). Integration with the Discovery Workbench for end-to-end policy evaluation.

What's Next

With the domain-specific applications of Part VI complete, from biology and medicine through social and economic systems, we have seen how discovery AI adapts its methods to the constraints of each scientific field. Chapter 53: AI Scientists opens Part VII by asking a provocative question: can we build AI systems that perform the entire discovery cycle autonomously? The causal reasoning, simulation, and network analysis skills from this chapter become essential components of those autonomous agents, which must reason about interventions, model complex systems, and evaluate their own hypotheses without human guidance.

Bibliography

Foundational Works

Schelling, T. C. (1971). Dynamic models of segregation. Journal of Mathematical Sociology, 1(2), 143-186.

The seminal agent-based model showing how mild individual preferences generate extreme macro-level segregation. A foundational example for all social simulation work.

Angrist, J. D. & Imbens, G. W. (1994). Identification and estimation of local average treatment effects. Econometrica, 62(2), 467-475.

Introduced the LATE framework for instrumental variable estimation, providing the formal basis for causal inference with imperfect compliance.

Abadie, A. & Gardeazabal, J. (2003). The economic costs of conflict: A case study of the Basque Country. American Economic Review, 93(1), 113-132.

Introduced the synthetic control method, constructing a weighted combination of untreated units to serve as counterfactual for a treated unit. Foundational for policy evaluation.

Network Science and Diffusion

Barabasi, A.-L. (2005). The origin of bursts and heavy tails in human dynamics. Nature, 435, 207-211.

Demonstrated that human communication follows bursty, heavy-tailed dynamics rather than Poisson processes, reshaping models of information diffusion.

Kempe, D., Kleinberg, J., & Tardos, E. (2003). Maximizing the spread of influence through a social network. Proceedings of KDD, 137-146.

Formalized influence maximization as an optimization problem, proving submodularity of influence spread under the Independent Cascade and Linear Threshold models.

Causal Inference in Social Systems

Hudgens, M. G. & Halloran, M. E. (2008). Toward causal inference with interference. Journal of the American Statistical Association, 103(482), 832-842.

Formalized causal inference under interference (SUTVA violation), introducing partial interference assumptions and defining direct and indirect treatment effects.

Athey, S. & Imbens, G. W. (2006). Identification and inference in nonlinear difference-in-differences models. Econometrica, 74(2), 431-497.

Extended difference-in-differences to nonlinear settings, establishing the conditions under which parallel trends assumptions identify causal effects.

Athey, S., Tibshirani, J., & Wager, S. (2019). Generalized random forests. Annals of Statistics, 47(2), 1148-1178.

Introduced generalized random forests (including causal forests) for heterogeneous treatment effect estimation with valid inference.

Tools and Libraries

Hagberg, A. A., Schult, D. A., & Swart, P. J. (2008). Exploring network structure, dynamics, and function using NetworkX. Proceedings of SciPy.

The standard Python library for network analysis, providing graph construction, centrality algorithms, community detection, and visualization.

Kazil, J., Masad, D., & Crooks, A. (2020). Utilizing Python for agent-based modeling: The Mesa framework. JASSS, 23(2).

Mesa provides a modular, extensible framework for agent-based modeling in Python, with built-in scheduling, spatial grids, and data collection.

Rey, S. J. & Anselin, L. (2007). PySAL: A Python library of spatial analytical methods. Review of Regional Studies, 37(1), 5-27.

PySAL provides spatial analysis tools including spatial weights, spatial autocorrelation, and spatial regression for economic geography and regional science.

Sharma, A. & Kiciman, E. (2020). DoWhy: An end-to-end library for causal inference. arXiv:2011.04216.

Microsoft's causal inference library providing the four-step workflow (model, identify, estimate, refute) used in Section 52.2 and the capstone pipeline.

Battocchi, K., et al. (2019). EconML: A Python package for ML-based heterogeneous treatment effects estimation.

Microsoft Research library for heterogeneous treatment effect estimation with causal forests, DML, and meta-learners, central to the policy impact analyzer.