This project replicates and extends Peter Turchin's cliodynamics research, applying mathematical models to understand the dynamics of historical societies. We use Structural-Demographic Theory to analyze patterns of societal stability and instability, implementing the mathematical models in Python and testing them against data from the Seshat Global History Databank.
Each essay documents our progress, explaining both our findings and the process by which we are building this project using Claude Code and modern software engineering practices.
Interactive Explorer
Cliodynamics Explorer
An interactive simulation sandbox where you can:
- Adjust model parameters in real-time and watch civilizations evolve
- Explore preset scenarios: American Crisis, Roman Collapse, Stable Society
- Visualize trajectories in 2D and 3D phase space
- Track the Political Stress Index as it accumulates toward crisis
Built with TypeScript and React for fast, responsive simulations.
Launch ExplorerEssays
-
The Science of History: An Introduction to Our Cliodynamics Replication Project
An introduction to cliodynamics and our project to replicate Peter Turchin's research. Covers Structural-Demographic Theory from first principles, explains the mathematical framework of secular cycles, discusses Turchin's predictions for America, and documents how we are building this project using Claude Code.
-
The Seshat Databank: Mining 10,000 Years of History
A deep dive into the Seshat Global History Databank, exploring its 168 variables covering 373 polities across 10,000 years. Covers how we downloaded and parsed the Equinox-2020 data, the challenges of data quality and missing values, our query interface design, and what the data reveals about patterns in social complexity.
-
The Mathematics of Societal Collapse: Implementing Structural-Demographic Theory
A deep technical exploration of the mathematics underlying Structural-Demographic Theory. Explains differential equations from first principles, documents our Python implementation of the five SDT equations (population, elites, wages, state health, and political stress), covers numerical integration methods, phase space analysis, sensitivity analysis, and the role of initial conditions in determining societal trajectories.
-
America in the Balance: Applying Ages of Discord to U.S. History 1780-2025
A comprehensive application of Structural-Demographic Theory to American history from 1780 to 2025. Replicates Turchin's Ages of Discord analysis, computes the Well-Being Index, Elite Overproduction Index, and Political Stress Index from historical data, evaluates his 2010 prediction of instability peaking around 2020, and projects future scenarios for American political stress.
-
Rome: From Republic to Ruin - A Structural-Demographic Analysis
Applying Structural-Demographic Theory to the Roman Empire, the canonical test case for cliodynamics. Analyzes nearly a millennium of Roman history through the SDT framework, identifying two secular cycles corresponding to the late Republican crisis and the Crisis of the Third Century. Includes data reconstruction, model calibration, simulation results, and comparison with Turchin and Nefedov's published analysis.
-
Finding the Right Numbers: Parameter Calibration in Cliodynamics
An exploration of how we find the right parameter values for Structural-Demographic Theory models. Covers loss functions, optimization algorithms like differential evolution and basin hopping, handling sparse and noisy historical data, bootstrap uncertainty quantification, cross-validation strategies for temporal data, and the challenge of parameter identifiability.
-
Embracing Uncertainty: Monte Carlo Methods for Honest Forecasting
An introduction to Monte Carlo methods for probabilistic forecasting in cliodynamics. Explains why uncertainty quantification matters, demonstrates how Monte Carlo simulation generates probability distributions instead of point predictions, covers Sobol sensitivity analysis to identify which parameters matter most, and applies these methods to forecast U.S. political stress through 2050 with explicit confidence intervals.
-
What Comes Next: Instability Forecasting in Cliodynamics
An exploration of probabilistic forecasting for societal instability. Documents our forecasting pipeline implementation, including ensemble methods for uncertainty quantification, scenario analysis comparing baseline, reform, and crisis futures, backtesting against historical outcomes, and forecasts for America through 2050. Addresses the fundamental question: can we predict the future of societies?
-
The Claude Code Experiment: Building Cliodynamics with AI Pair Programming
A comprehensive, realistic, factual account of building this cliodynamics project with Claude Code over 32 hours. Documents the manager-worker architecture for AI session orchestration, analyzes real metrics from session logs, explores what worked and what failed, and examines the future of human-AI collaboration in software development.
-
Steering the Ship: Policy Lessons from Cliodynamics
An optimistic exploration of what cliodynamics tells us about policy interventions. Examines historical examples of successful and failed reforms, runs counterfactual simulations to understand what might have been, and develops specific policy recommendations for contemporary America. Shows that societies can steer their trajectories through well-designed interventions addressing elite dynamics, worker welfare, and institutional reform.
-
Exploring the Future: A Guide to the Interactive Cliodynamics Explorer
A comprehensive guide to using the Cliodynamics Explorer, our interactive simulation sandbox. Covers navigating the interface, understanding the five state variables, adjusting parameters to explore different scenarios, reading time series and phase space visualizations, using historical presets, conducting your own experiments, and interpreting results. Includes detailed walkthroughs, the mathematical foundations, and philosophical reflections on modeling.
Contact
Brian Edwards
Email: brian.mabry.edwards@gmail.com
Phone: 512-584-6841
Location: Waco, Texas, USA
Built with Claude Code 2.1.15 (Opus 4.5) | January 2026