PPolySim OS
For Educators · Lorenz & Gini

Lorenz & Gini for a bank run

Built for educators teaching it to a class. Drop a live demo into a lecture or assign it as a shareable link — no lab installs. Simulate a bank run live below — adjust the inputs and watch it respond, right in your browser.

Lorenz Curve & GiniLive

Controls

Presets

The Lorenz curve plots the cumulative share of income against the cumulative share of population, from poorest to richest. Perfect equality is the diagonal; the more the curve bows below it, the more unequal the distribution. The Gini coefficient is twice the area between them — 0 is total equality, 1 is one person owning everything.

▶ Run in Python

Data Inspector

Gini coefficient0.628
Inequalityhigh
Top 10% share37%

Governing equation

Reading this result: High inequality (Gini 0.628): the curve bows far under the diagonal and the richest 10% capture 37% of all income.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →

More with Lorenz & Gini

Frequently asked questions

Is this good for educators?
Yes — this version of "Lorenz & Gini for a bank run" is framed for educators teaching it to a class. Drop a live demo into a lecture or assign it as a shareable link — no lab installs.
Do I need to install anything?
No. It runs in any modern browser, free, with no account required.