Unequal Shelves

← Back to BlackEdge Interview Questions

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.

Hint 1

Multiply the probability of choosing a shelf by the probability of choosing a book conditional on that shelf.

For \(k\) shelves of sizes \(n_1,\ldots,n_k\), compare \(\frac1{k n_i}\) with \(\frac1{n_1+\cdots+n_k}\) and determine when equality holds for every \(i\).

Check your answer

© 2026 EverythingQuant. All Rights Reserved.