Lawrence Agyepong
  • Shelf
  • Tools
  • About
  • Subscribe

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.

#inequality #python #excel #how-to
Read the tutorial .ipynb .xlsx
Lorenz curves for three toy economies
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. 18 Oct 2026 · tutorial · #inequality #python #excel #how-to 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. 8 Oct 2026 · link · TL Economic Intelligence · #trade #indexes link ↗ NB-004 Export concentration hits a record low, and one market carries the gains 2 Oct 2026 · link · TL Economic Intelligence · #trade #indexes 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. 23 Jul 2026 · link · LinkedIn · #household-finances #surveys link ↗ NB-002 Same shock, different pain Why one gasoline price shock pushed inflation up far more in some provinces than others. 14 Jul 2026 · link · Substack · #inflation #regional link ↗ NB-001 Tracking export diversification 27 May 2026 · link · TL Economic Intelligence · #trade #dashboards link ↗
No matching items

Things I’ve built

dashboard · with TL Economic Intelligence Export Concentration Intelligence Tool How concentrated a country's exports are, by market, product and province, with trade events marked on the history. open ↗
No matching items

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.

More about me, my papers and CV →

Get the next notebook by email

The finding, the chart, and the files to rebuild it. Free, on Substack.

© 2026 Lawrence Agyepong. Views are my own, not my employer’s.

 

RSS · Built with Quarto