Kinetic Resource Exchange: Random Pair Trades and the Gamma Distribution (2D)
The same random pair-exchange model in 2D: a grid of agents sized by holdings, the live histogram against the closed-form gamma curve and the running Gini index.
Hundreds of agents trade a conserved resource in random pairs, like molecules colliding, and an unequal distribution emerges from perfectly fair trades. Change the saving propensity, the number of agents and the starting condition and watch the exponential Boltzmann-Gibbs shape turn into a gamma distribution while the Gini index falls from one half. Blender-built coin stacks, with numerical checks of conservation, variance and the closed-form Gini.
The same random pair-exchange model in 2D: a grid of agents sized by holdings, the live histogram against the closed-form gamma curve and the running Gini index.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install