Interactive notebooks from an economist who likes to show the working.
NB-006 · latest
18 Oct 2026·tutorial
What the Gini coefficient measures: a playground
Build a toy economy, draw its Lorenz curve, and drag a slider to watch inequality change. Simulated incomes, real method.
Simulated incomes. The more a curve sags, the more unequal the economy.
No matching items
The shelf
Notebooks, notes, tutorials and links. Click a tag to filter.
NB-006
What the Gini coefficient measures: a playground
Build a toy economy, draw its Lorenz curve, and drag a slider to watch inequality change. Simulated incomes, real method.
interactive
NB-005
Remove UK-bound metals and the record low in export concentration disappears
A stress test of our own headline: one trade flow carries most of the growth in non-US exports.
link ↗
NB-004
Export concentration hits a record low, and one market carries the gains
link ↗
NB-003
The most optimistic households are also the most financially strained
Newcomers expect to miss debt payments at ten times the rate of everyone else, and still expect things to improve.
link ↗
NB-002
Same shock, different pain
Why one gasoline price shock pushed inflation up far more in some provinces than others.
link ↗
NB-001
Tracking export diversification
link ↗
No matching items
Things I’ve built
Hi, I’m Lawrence
I’m an economist. By day I build economic models and monitoring tools; the rest of the time I play with data here. Every chart comes with the Python and an Excel version, so you can check my work or reuse the method.
Get the next notebook by email
The finding, the chart, and the files to rebuild it. Free, on Substack.