Sampling with replacement when values repeat

December 1, 2026

Draw two labels from a population containing A, A, and B. If you draw with replacement, the probability of picking the same index twice is 1/3. Yet the total variation distance between the two distributions on observed labels is only 2/9. You can see A twice even when the two indices are different.

The usual collision bound compares the laws by first checking whether any index repeats. Forgetting the indices can make the laws closer. I worked out the exact distance when a single pair of equal values is the population’s only repetition. Identifying any such pair gives a bound that extends to populations with more repetitions. The archive includes a Lean proof that the bound is strictly smaller than the collision probability for a finite population with a repeated value when the number of draws lies between two and the population size. The bound compares ordered samples from the same population.

Read the theorem and run the Lean checks in the versioned archive. OpenAI Codex provided substantial assistance with the formalization and verification.