Question
A librarian has three display shelves containing 2, 3 and 5 different books. They are comparing two ways to pick one book for a featured display:
Shelf-first: choose one of the three shelves uniformly, then choose one of its books uniformly.
Catalogue-first: choose uniformly from a catalogue listing every one of the ten books exactly once.
Under each method, what is the chance of selecting any particular book from each shelf? Are both methods fair to every book? For an arbitrary number of nonempty shelves, give the precise condition under which the shelf-first method is uniform over all individual books.
Get hint
Hint 1
Multiply the probability of choosing a shelf by the probability of choosing a book conditional on that shelf.
Check your answer
Solution
With shelf-first sampling, the shelf probability is always \(\frac13\). A specific book on the two-book shelf is selected with probability \((\frac13)(\frac12)=\frac16\). The corresponding probabilities for a book on the three-book and five-book shelves are \(\frac19\) and \(\frac1{15}\). The whole catalogue contains \(2+3+5=10\) distinct books, so a catalogue-first draw selects each with probability \(\frac1{10}\). The two methods therefore differ: giving every shelf equal weight gives each book on a small shelf more weight.
For \(k\) nonempty shelves with positive sizes \(n_1,\ldots,n_k\) and total \(N=\sum_i n_i\), the shelf-first probability for a particular book on shelf \(i\) is \(\frac1{k n_i}\), while catalogue-first probability is \(\frac1N\). Equality for all books requires \(\frac1{k n_i}=\frac1N\) for every \(i\), equivalently \(n_i=\frac Nk\) for each shelf. Thus all shelves must have equal sizes; conversely, equal sizes make the two protocols identical on individual-book probabilities. The total probability of a shelf also differs: catalogue-first selects shelf \(i\) with probability \(\frac{n_i}{N}\), while shelf-first selects it with probability \(\frac1k\).
Assumptions
All displayed books are distinct, and every shelf is nonempty.
Shelf selection and within-shelf book selection are each uniform as stated.
The catalogue lists each book exactly once, without weighting.
Final Answer
Shelf-first: any book on shelves of size 2,3,5 has probability \(\frac16\), \(\frac19\), \(\frac1{15}\) respectively; catalogue-first: every book has probability \(\frac1{10}\). Shelf-first is uniform over all books iff every shelf has the same number of books.