Urns Remember Without Order
Here is a tiny machine that makes large disagreements look natural.
Put two red balls and two blue balls in an urn. Draw one ball. Put it back. Then add one more ball of the same color.
Draw red early, and future red becomes more likely. Draw blue early, and future blue becomes more likely. The process rewards its own accidents.
So it sounds like a process with memory.
It is, but not the memory you might expect. A Polya urn remembers the count of what happened. It does not remember the order.
That distinction is the whole trick.
The Rule
Let the urn start with (r) red mass and (b) blue mass. After each draw, add (c) units of mass to the color just drawn. If (R_t) red balls have been drawn in the first (t) draws, then
\[\Pr(X_{t+1}=\text{red}\mid X_1,\ldots,X_t) = \frac{r+cR_t}{r+b+ct}.\]The past matters. But it matters through one sufficient statistic: the number of red draws so far.
Blackwell and MacQueen describe the finite-color urn in exactly this way: start with initial color masses, draw from the urn, replace the drawn ball, and add another ball of the same color.1 They then extend the idea to a continuum of colors and show a deeper fact: the empirical measure converges to a random limiting distribution, and conditional on that random distribution, the future observations are independent.1
For two colors, the same story is small enough to hold in one line. Set
\[a=\frac{r}{c},\qquad d=\frac{b}{c}.\]For any length-(n) sequence with (k) red draws and (n-k) blue draws,
\[\Pr(X_1=x_1,\ldots,X_n=x_n) = \frac{a^{[k]}d^{[n-k]}}{(a+d)^{[n]}},\]where (u^{[m]}=u(u+1)\cdots(u+m-1)) is a rising factorial.
No order term appears.
RRRBBBB and RBRBRBB have the same probability if they contain the same
number of red and blue draws. The urn is reinforced, but exchangeable.
The Hidden Coin
Another way to run the same experiment is:
- draw a hidden probability (P\sim\mathrm{Beta}(a,d));
- given (P), draw all observations independently as (\mathrm{Bernoulli}(P)).
That two-stage story produces the same finite sequence probabilities as the urn. The reinforcement process is a way to sample from a mixture of iid worlds without explicitly drawing the hidden probability first.
This is a de Finetti-shaped idea. Infinite exchangeable Bernoulli sequences are mixtures of iid Bernoulli sequences; finite versions and approximations are more delicate, which is why Diaconis and Freedman’s finite exchangeability paper became a standard reference.2 Aldous’s Saint-Flour notes are the classic broad tour of exchangeability as a structure theorem rather than a mere symmetry word.3
The Polya urn is the classroom version where the mixing distribution is visible:
\[P \sim \mathrm{Beta}\!\left(\frac{r}{c},\frac{b}{c}\right).\]This is why the sample proportion does not settle deterministically at (r/(r+b)). It settles around a random limit. The process has a martingale center, not a fixed destination.
A Small Urn Lab
The lab below compares three views of the same question:
- one reinforced path;
- many reinforced paths;
- the endpoint distribution against an ordinary binomial with the same initial mean.
The default starts with two red and two blue balls, adds one copied ball after
each draw, and runs 80 draws across 1400 simulated paths. The ordinary binomial
variance would be 20.0. The Polya endpoint variance is about 332.5, close to
the beta-binomial value 336.0.
Same mean. Completely different spread.
Equivalent beta prior: Beta(2, 2). Same-count histories have equal Polya probability.
What the Lab Is Testing
The “order audit” panel compares two sequences with the same counts:
RRRRRRRBBBBBBB
RBRBRBRBRBRBRB
Under the Polya urn, the probability ratio is 1.000. Under a sticky Markov
process with a similar first-step bias, the clustered sequence is enormously
more likely than the alternating one.
That contrast is the point. Reinforcement is not the same as recency bias.
In a sticky process, the last observation has special status. In the Polya urn, the last observation is just one more ball in the total count. The process learns a composition, not a trend.
This is also why the endpoint distribution is beta-binomial:
\[\Pr(K=k) = \binom{n}{k} \frac{B(k+a,n-k+d)}{B(a,d)}.\]The binomial says every path is sampling from the same fixed probability. The beta-binomial says each path may be living in a different hidden world.
The variance inflation is:
\[\frac{\operatorname{Var}_{\text{beta-binomial}}(K)} {\operatorname{Var}_{\text{binomial}}(K)} = \frac{a+d+n}{a+d+1}.\]With (a=d=2) and (n=80), the multiplier is 16.8. That is why the
histogram looks too wide for ordinary sampling noise. It is not too wide. It is
answering a different model.
Where This Misleads People
Polya urns are often used as metaphors for contagion, rich-get-richer dynamics, and cumulative advantage. Pemantle’s survey places classical and generalized Polya urns inside a much larger family of reinforced processes, including reinforced random walks and applications in biology, economics, learning, and agent-based models.4
The metaphor is useful, but it can seduce you into saying too much.
A Polya urn does not say “the last thing caused the next thing.” It says “the past changed the composition of the future.” In the simplest urn, every permutation with the same counts is equally plausible. That is a strong symmetry assumption.
For products, markets, social feeds, and games, that symmetry is often false. Order may matter because of recency, network exposure, seasonality, inventory, fatigue, matchmaking, liquidity, or changing incentives. In those cases the urn is not a realistic simulator. It is a baseline that separates two ideas:
overdispersion from hidden heterogeneity
order-dependence from local temporal mechanics
Those are easy to confuse in dashboards. If one cohort ends at 80% red and another ends at 20% red, a binomial model calls one of them strange. A Polya urn may call both ordinary. If the sequence alternates or clusters in suspicious ways, the urn may be the wrong model even when the counts look right.
The Practical Lesson
The urn’s lesson is not “everything is path-dependent.” That is too vague to help.
The sharper lesson is:
reinforcement can create persistent disagreement without requiring order memory
Early draws change the future because they change the composition. But once you condition on the final count, the simple urn has forgotten the order completely.
That is why it is such a good little object. It keeps two intuitions apart that normally arrive fused together:
- a process can be non-iid without being temporally sticky;
- a sample proportion can be centered correctly and still have the wrong variance;
- a hidden random environment can look like self-reinforcing behavior from the outside.
When a metric keeps polarizing across users, models, strategies, or markets, I now ask two questions before I reach for a story:
Did the process remember the order?
Or did it only reveal a hidden composition?
The Polya urn is what happens when the second answer is enough.
-
David Blackwell and James B. MacQueen, “Ferguson Distributions Via Polya Urn Schemes”, The Annals of Statistics 1(2), 353-355, 1973. Project Euclid, PDF copy. ↩ ↩2
-
Persi Diaconis and David Freedman, “Finite Exchangeable Sequences”, The Annals of Probability 8(4), 745-764, 1980. Semantic Scholar record, DOI. ↩
-
David J. Aldous, “Exchangeability and Related Topics”, Ecole d’Ete de Probabilites de Saint-Flour XIII, 1983. PDF. ↩
-
Robin Pemantle, “A survey of random processes with reinforcement”, Probability Surveys 4, 1-79, 2007. Project Euclid, arXiv. ↩