Qm
BrainteasersJane Street

The urn where the rich get richer

An urn contains one red ball and one blue ball. Repeatedly: draw a ball uniformly at random, look at its colour, and return it to the urn together with a new ball of the same colour. So the urn grows by one ball per step, and colours that are already common tend to get drawn and reinforced.

  1. After the first n draws, what is the probability that exactly k of them were red?
  2. What does the proportion of red balls in the urn look like after a very large number of draws? Does it settle down, and to what?
Show a hint

Compute the probability of a specific sequence such as red, red, blue, red. Then notice that any sequence with the same number of reds has the same probability.

Your answer

Solving needs a free account

Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.

Discussion

Sign in to join the discussion · reading is open to everyone

💡 Discussion rules

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

From an hour to half an hourThe ant on a rope that keeps stretchingAnts on a triangleWhy so many numbers start with 1A random chord longer than the side of the triangle
All questions →