◍ Hidden Spheres · exhibit nº 25

The Urn That Remembers

the rich get richer, who gets rich is luck, and the luck is spent early

An urn holds one gold ball and one blue. Draw a ball at random, look at it, and put it back together with a new ball of the same colour. Now draw again. Gold is a little likelier if gold came up before: the urn remembers. Keep going. Does the share of gold wander forever, or settle? And if it settles, where?

draw a ball, then another

For the curious kid.

Press Draw one a few times and watch the jar. Say gold comes up first: now there are two golds and one blue, so gold is likelier next time too. A lucky start snowballs. That is the "rich get richer" rule, and it runs everywhere: a song that gets played gets played more, a path through the grass that gets walked gets walked more.

Now press Draw a hundred, and again. Something odd happens: the share of gold stops wandering. It settles on a number, say 0.71, and stays there, forever. Press Finish this urn, then start a fresh one with the same two balls. It settles too, but on a different number. Maybe 0.23. Every urn makes up its mind, and every urn makes up a different mind.

So where do they end? Press A thousand urns and look at the top right chart. For a one-and-one start the answer is flat: ending at 10% gold is exactly as likely as ending at 90%, or 50%, or anything else. The urn remembers everything it has ever drawn, and because it remembers, the very first draws, when there were only a couple of balls to tip, decide most of the story. The chart at the bottom left shows it: slide the judge to 10 draws and each dot's early share already sits near its final share. Slide it to 1,000 and they are the same number.

Deeper.

This is Pólya's urn (Eggenberger and Pólya, 1923). Start with g gold and b blue, add one ball of the drawn colour each time, and the fraction of gold Xₙ converges almost surely to a random limit X whose distribution is exactly Beta(g, b): density proportional to x^(g−1)(1 − x)^(b−1). For g = b = 1 that is the uniform law, which is why the histogram comes out flat; for 2 and 1 it is a ramp, for 2 and 2 the parabola 6x(1 − x), for 5 and 5 a bell. The gold curves are drawn from that formula, never fitted to your urns. The count of golds drawn in the first n draws follows the beta-binomial law, which for a one-and-one urn gives every count from 0 to n the same probability, 1/(n + 1); the page checks this against simulation headlessly before it draws anything.

Two facts make the memory precise. First, Xₙ is a martingale: the expected final share, given everything the urn has done so far, is exactly the current share. The diagonal in the lower left chart is not a fit; it is that statement, and the remaining spread around it is Xₙ(1 − Xₙ)/(n + g + b + 1), which shrinks like 1/n. Second, the draws are exchangeable: the chance that the thousandth ball drawn is gold is exactly g/(g + b), the same as for the first. The urn remembers, but it does not favour; what it remembers is only which urn it has turned out to be. The lower right chart measures that rate at every checkpoint, and it is flat.

Urns like this are the simplest model of preferential attachment, the rule behind the long tails of city sizes, citation counts and links on the web. The lesson they teach is unwelcome and true: in a rich-get-richer world the eventual winner is decided by early noise, and no amount of later evidence can tell you that the winner was better. There is one more urn in this room, for those who look, that forgets instead.

Fortune is not blind. She simply made up her mind very early, and she keeps notes.