A store sells n flavors of chips. When you place an order the store sends you 1 bag of chips, chosen uniformly at random from the n different flavors, independently of previous orders. Tiffany would like to try all flavors of chips so she repeatedly places orders from the store (one bag per order) until she has received at least one bag of each flavor. Define the random variable to be the total number of orders that Tiffany places. Determine the expected value .
- Use Linearity of Expectation. If Tiffany has received exactly i different flavors of chips, how many orders does she expect to place until she receives a new brand?)
Could someone walk me through the logic in approaching this problem, not even sure where to start. This is for a math course. Thanks in advance.
Let the random variable $X_i$ be defined as the number of orders Tiffany has to place, when having seen exactly $i$ distinct brands so far, to get a bag from a new brand; and let $$ X \stackrel{\rm def}{=} X_0+\dots+X_{n-1}. $$ The problem asks to compute $\mathbb{E}X$; by linearity of expectation, this is equal to $\sum_{i=0}^{n-1}\mathbb{E}X_i$.
Now. each $X_i$ follows a geometric distribution with parameter $p_i$, where $p_i=1-\frac{i}{n}$. Indeed, having seen $i$ brands so far, there are exactly $n-i$ unseen ones, and thus a probability $\frac{n-i}{n}$ that an order will hit one of those (as the choice is made uniformly at random, independently from the previous orders). Therefore, $$ \mathbb{E}X_i = \frac{1}{p_i} = \frac{n}{n-i} = \frac{1}{1-\frac{i}{n}} $$ and $$ \mathbb{E}X = \sum_{i=0}^{n-1} \frac{1}{p_i} = \sum_{i=0}^{n-1} \frac{1}{1-\frac{i}{n}}. $$