Repeated observations can have the same individual success probability while remaining dependent. A model that treats their count as binomial then misses how outcomes cluster. Pólya's urn gives a finite calculation of this effect: each selected color is returned with an additional ball of that same color, so observing a color raises its probability on the next draw.
This is an abstract model of reinforcement. It is not evidence that any robot's errors, task choices, or inspection labels obey an urn process. The mathematical distinction is useful when comparing a fixed independent trial probability with a history-dependent sampling rule. All examples below are invented, and no random-number generator, fitted dataset, or simulation was executed.
Define the replacement rule precisely
Start with two red balls and three blue balls. On each draw, select uniformly from the current urn, record the color, replace the selected ball, and add one new ball of the same color. Thus the urn grows by exactly one ball after every draw. Let X_i be one for red and zero for blue, and let K_n be the number of red outcomes among the first n draws.
Initially the red probability is 2/5. If the first draw is red, the next red probability is 3/6 = 1/2. If the first draw is blue, it is 2/6 = 1/3. After n draws containing k reds, the urn contains 2 + k red balls among 5 + n total balls, giving conditional next-red probability (2 + k)/(5 + n).
The original Random Services treatment develops this reinforced process and its connection to beta-binomial counts. SciPy's official betabinom reference defines that count distribution using a beta-function ratio. The particular urn, sequence calculations, and four-draw table here are original choices.
Equal marginals do not imply independence
Compute the second-draw red probability by conditioning on the first color. It is (2/5)(3/6) + (3/5)(2/6) = 2/5. The unconditional red probability has not changed, despite the different conditional probabilities after red and blue.
The probability of two reds is (2/5)(3/6) = 1/5. Independent trials with red probability 2/5 would instead give 4/25. The difference is 1/25 = 0.04. Since each indicator has variance (2/5)(3/5) = 0.24, the pair's correlation is 0.04/0.24 = 1/6. Reinforcement creates positive dependence without changing the individual marginal probability.
For comparison, replacing the drawn ball without adding anything would keep every conditional probability at 2/5 and make these draws independent. The reinforced model has an additional update rule; it cannot be identified from the initial color fraction alone.
Sequence order and sequence probability
Consider the three sequences RRB, RBR, and BRR. Their probabilities are respectively (2/5)(3/6)(3/7), (2/5)(3/6)(3/7), and (3/5)(2/6)(3/7). Each equals 3/35. The changing conditional probabilities differ by history, but their products agree for sequences with the same number of reds.
More generally, for n draws and k reds, the numerator includes the red factors 2, 3, through 2 + k - 1, and the blue factors 3, 4, through 3 + n - k - 1. The denominator includes 5, 6, through 5 + n - 1. Their product does not depend on how the red and blue factors were interleaved.
This is exchangeability: permuting the positions of a fixed color sequence preserves its joint probability. It is weaker than independence. The unequal conditional probabilities and the two-red calculation already show that independence fails.
Build the complete four-draw distribution
For four draws, the common denominator is 5 times 6 times 7 times 8 = 1680. A particular sequence with k reds receives its appropriate red and blue rising-factor products. Multiplying by the number of such sequences, the binomial coefficient choosing k positions from four, gives the probability for K_4 = k.
For k = 0, 1, 2, 3, and 4, these probabilities are respectively 3/14, 2/7, 9/35, 6/35, and 1/14. In decimals they are approximately 0.214286, 0.285714, 0.257143, 0.171429, and 0.071429. They sum to one.
Independent binomial trials with the same marginal red probability 0.4 would give 0.1296, 0.3456, 0.3456, 0.1536, and 0.0256. Reinforcement raises both extreme-count probabilities in this example. Matching a marginal probability does not match the distribution of the accumulated count.
Both models have mean 4 times 0.4 = 1.6. Their variances differ. Summing four indicator variances gives 4 times 0.24 = 0.96. Reinforcement adds twice the six distinct pair covariances, or 12 times 0.04 = 0.48, giving total variance 1.44. The independent model has no covariance contribution and retains variance 0.96.
Understand the beta-mixture interpretation
For positive reinforcement of one ball, this urn's count has beta-binomial parameters n = 4, a = 2, and b = 3. One equivalent construction draws a single latent probability P from Beta(2,3), then makes the four draws conditionally independent Bernoulli trials using that same P. Averaging over the shared P produces dependence between the unconditional outcomes.
Drawing a fresh independent P before every trial would be a different construction. It would not preserve the shared latent uncertainty that creates the clustering here. The urn interpretation instead updates visible color counts, and gives the same finite joint probabilities through a history-based mechanism.
These mathematical equivalences do not establish why a real record clusters. Reinforcement, shared environmental conditions, changing populations, and recording structure require different evidence. The narrow result is that identical per-draw averages leave room for different conditional behavior and count variance. A sampling model must specify how observations relate across trials, not only the chance assigned to one isolated draw.
Sources checked October 24, 2026:
Random Services: Pólya’s Urn Process: https://www.randomservices.org/random/urn/Polya.html
SciPy: scipy.stats.betabinom: https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.betabinom.html
Concept illustration: Generic robot workstation imagery provides robotics context. It does not depict these invented inputs, an executed algorithm, or a measured system result.