Observing five records does not imply observing five different categories. Repeated categories consume records without increasing coverage. Even when every category is equally likely, collecting the final missing type can require much more waiting than collecting the first.

This article uses an invented stream with five labels, A through E. Each record independently draws one label, uniformly and with replacement. The model is about categorical coverage in a synthetic evaluation stream. It is not a claim that an actual robot dataset has balanced probabilities, independent records, or complete operating-condition coverage.

Track distinct types rather than total successes

Let T be the number of records required to see all five labels at least once. T includes the first record and every duplicate. Its minimum possible value is five, but it has no finite upper bound: a long run of repeated labels always retains positive probability.

After k distinct labels have been observed, exactly 5-k labels remain unseen. The next independent record is new with probability p_k = (5-k)/5. The chance of making progress therefore changes with the current coverage state.

Random Services' authored treatment develops this decomposition into geometric waiting stages. MIT's randomized-algorithms notes use the same conditional-stage idea and distinguish expected collection time from a high-probability budget. The five-label calculations and finite-state checks below are original rather than reused source examples.

Derive each stage's expected waiting

Let Z_k count additional records needed to advance from k distinct labels to k+1. It includes the successful new-label record. While that stage lasts, each new independent draw has the same progress probability p_k.

One first-step equation is E[Z_k] = 1 + (1-p_k)E[Z_k]. Every attempt consumes one record; a duplicate restarts the same waiting problem. Rearranging gives E[Z_k] = 1/p_k = 5/(5-k).

For k = 0, 1, 2, 3, and 4, the stage means are 1, 5/4, 5/3, 5/2, and 5 records. The first label arrives immediately. Once four labels are known, the next record finds the remaining one with probability only 1/5.

The total is T = Z_0 + Z_1 + Z_2 + Z_3 + Z_4. Linearity of expectation gives E[T] = 1 + 5/4 + 5/3 + 5/2 + 5 = 137/12, approximately 11.416667 records.

This is five times the fifth harmonic sum. It is not five identical waiting stages: their success probabilities differ. Replacing them all by a single average probability would change the stopping experiment.

Quantify the final stage's contribution

The last stage alone contributes five expected records, approximately 43.796 percent of the total mean. Obtaining the first four distinct labels requires an expected 77/12, approximately 6.416667 records. Completing the remaining fifth can therefore be a substantial part of the entire wait.

Suppose eight records have arrived and their observed set contains exactly A, B, and C. The remaining expected wait is 5/2 + 5 = 7.5 records, because two new types remain. The elapsed count eight does not subtract mechanically from 11.416667.

If those same eight records already contain four distinct types, the expected remaining wait is five. If all five appeared, it is zero. The relevant state is the set of observed labels, or simply its size under uniform sampling, rather than elapsed records alone.

Variation also concentrates near completion

For a positive-integer geometric waiting variable with progress probability p, variance is (1-p)/p squared. Successive stages here use independent blocks of the independent label stream. Their waiting variances add.

The five stage variances are 0, 5/16, 10/9, 15/4, and 20. Their sum is 3625/144, approximately 25.173611 squared records. The corresponding standard deviation is approximately 5.017331 records.

The last stage contributes 20 of that variance. A mean near eleven records consequently does not imply that nearly every run finishes near eleven. An expected count is neither a deadline nor a declared probability of completion.

Calculate a separate deadline probability

For an original finite budget of eight records, ask whether every label has appeared. Let M_i mean label i is missing. Each specified label is absent with probability (4/5) to the eighth power. Two specified labels are both absent with probability (3/5) to the eighth power, and analogous statements apply to larger missing subsets.

Inclusion-exclusion gives P(T <= 8) = 1 - 5(4/5)^8 + 10(3/5)^8 - 10(2/5)^8 + 5(1/5)^8. Its exact value is 1008/3125, or 0.32256. Only about 32.256 percent of these mathematical streams finish within eight records.

The alternating terms remove double counting among missing-label events. Treating five missing events as independent would be a different calculation: the same eight draws jointly determine them. A union bound can give a simpler inequality, but does not make those events independent.

Uniformity is a substantive assumption

If A has probability 0.6 while each other label has probability 0.1, knowing only that four labels have appeared no longer determines the next progress probability. It is 0.6 if A is the missing label and 0.1 if a particular other label is missing.

The uniform harmonic formula therefore cannot be transferred merely because there are still five named categories. The probability of the remaining set matters. Dependence across records likewise changes the waiting-stage argument.

For a robot-data report, preserve the label definition, replacement rule, sampling probabilities and stopping condition. Category coverage answers whether stipulated labels have appeared; it does not certify that their recorded examples represent all geometry, environments or failure modes. The model's value is the explicit separation of duplicate records, stage-dependent progress, expected waiting, and a finite-budget completion probability.

Sources checked October 24, 2026:

Random Services: The Coupon Collector Problem: https://www.randomservices.org/random/urn/Coupon.html

MIT 6.856J: Coupon Collecting, Stable Marriage, Markov Inequality: https://www.ocw.mit.edu/courses/6-856j-randomized-algorithms-fall-2002/2e00cd3ccdd9e9e9aa3f4b8305a6abef_n4.pdf

Concept illustration: A small robot and laptop provide context for categorical data analysis. The screen is not evidence of the invented label stream, a dataset coverage audit, executed probability software, or achieved operating coverage.