Inverse Coupon Collector’s Problem

This is motivated by a recent blog post by John D. Cook [2] discussing the problem of estimating the number s of words in an author’s vocabulary, given an observation of the number k of distinct words in the author’s work of length n words.

The blog post references a paper by Brainerd [1], suggesting that it gives an estimate of s as the root of the following equation:

\sum\limits_{j=0}^{k-1}\frac{s}{s-j}=n

However, although Brainerd discusses several different estimation methods, I was unable to find any mention of this particular one, either explicitly or in derivation.

At any rate, the motivation for this post is simply to note that this is essentially the “inverse” of the coupon collector’s problem, discussed several times here before, which is usually stated in terms of expectation: if each purchased box of cereal contains one of s types of coupon, what is the expected number n of boxes we must purchase to obtain all s types of coupon?

This expected value is the above sum evaluated at k=s. More generally, even when k<s, the above sum is the expected number of boxes we must purchase to first observe k distinct coupon types. This suggests a nicely intuitive, although not rigorous, argument for using the above equation to solve the “inverse” problem: if we have observed k distinct coupon types among n purchased coupons, then a reasonable estimate for the unknown s is that value for which our number of observations n is the expected number of coupons needed to first observe k distinct types.

It’s interesting that this actually works. Sort of, anyway. That is, Dawkins [3] solves this inverse problem by computing the maximum likelihood estimate for s, which turns out to be one of the integer values on either side of the (generally non-integral) root of the equation above.

References:

  1. Brainerd, B., On the Relation between Types and Tokens in Literary Text, Journal of Applied Probability, 9(3) September 1972, p. 507-518 [JSTOR]
  2. Cook, John D., Estimating an author’s vocabulary [HTML]
  3. Dawkins, B., Siobhan’s Problem: The Coupon Collector Revisited, The American Statistician, 45(1) February 1991, p. 76-82 [JSTOR]

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.