PolicyEngine tutorials
Hands-on sessions for analysing tax and benefit policy reforms — household by household, or across the whole population. Everything runs in your browser.
Analysing tax-benefit reform impacts with PolicyEngine
Session flow
Live US and UK examples, in the order we'll run them — every link works on your own laptop, so follow along or explore ahead:
CliffWatch
Benefit cliffs and marginal tax rates across all 50 US states — every line is the full tax-benefit system.
Scope of the models
Free, open-source tax-benefit microsimulation — full federal + state coverage in the US, full coverage in the UK, and growing country models.
UK Autumn Budget 2025
A real fiscal event: what it does to a single household and to the whole population — budget, distribution, poverty.
OBBBA explorer
The biggest US tax law in a decade, encoded within days — explore its impact on 40,000 real survey households.
How the data works
Populace: multi-source fusion, distributional imputation, and calibration to 30,000+ administrative targets.
Web app + Colab
Build your own reform in the browser — including elasticity-based labour-supply responses — then drive the same engine from Python.
UK chat assistant (demo)
Ask a UK policy question in plain language — answers computed by the PolicyEngine engine, not a language model guessing.
How the data works
Population results run on Populace, PolicyEngine's open US microdata. It isn't a single survey — it's assembled from primary sources and calibrated to administrative totals, which is what lets a national reform estimate match official aggregates while staying reweightable to any region.
Primary data, combined
Household surveys (CPS, ACS), tax records (IRS), and wealth data (SCF) — each contributing the variables it measures best.
Fused, not averaged
Variables no single survey observes together are joined with zero-inflated quantile regression forests — sampling the full conditional distribution, so spread and the mass at zero survive.
30,000+ targets at once
Gradient-descent reweighting fits tens of thousands of administrative totals simultaneously, with L0 regularisation for a sparse, parsimonious set of households — inspect every target fit in the live dashboard.
Reweighted, not rebuilt
The same engine reweights the ~340M-person national file to states and congressional districts — one dataset, filtered, not separate per-area files.
What you need to participate
A browser
Confirm you can reach policyengine.org and app.policyengine.org. The household calculator, reforms, and population analysis all run there — no account, no install.
A Google account
To follow the Python notebook in Google Colab — runs in your browser, nothing installed. Before the session: open it, File → Save a copy in Drive, then run the Setup cell (installs in ~2–3 min).
Python ≥ 3.10
Prefer your own machine? pip install policyengine installs the US and UK models.
The AI assistant
The Claude Code plugin is shown live — nothing to install to follow it. To try it yourself you'll need Claude Code and an Anthropic account.
Questions about this tutorial or the setup? Email max@policyengine.org.