Expected Value of Elevator Buttons

A building has a lobby and 10 other floors. 7 people get into the elevator on the lobby, and are uniformly and independently likely to go to any of the 10 floors. They each push the button corresponding to their floor.

To 3 decimal places, what is the expected value of the number of distinct buttons that are pushed?


The answer is 5.217.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Brian Moehring
Feb 11, 2017

For each 1 i 10 1\leq i\leq 10 , let A i A_i denote the event that button i i is pressed, let A i A'_i denote the complementary event that button i i is not pressed, and let I A i = { 1 if button i is pressed 0 otherwise \mathbb{I}_{A_i} = \begin{cases}1 \text{ if button i is pressed} \\ 0 \text{ otherwise}\end{cases} The first feature of these random variables (called "indicator random variables") that we are interested in right now is E [ I A i ] = P ( A i ) = 1 P ( A i ) = 1 ( 9 10 ) 7 0.5217. \mathbb{E}\left[\mathbb{I}_{A_i}\right] = \mathbb{P}\left(A_i\right) = 1 - \mathbb{P}\left(A'_i\right) = 1 - \left(\frac{9}{10}\right)^7 \approx 0.5217.

The second feature is that N = number of distinct buttons pushed = i = 1 10 I A i . N = \text{number of distinct buttons pushed} = \sum_{i=1}^{10} \mathbb{I}_{A_i}. and therefore we may compute the expected number of distinct buttons pushed by E [ N ] = E [ i = 1 10 I A i ] = i = 1 10 E [ I A i ] = i = 1 10 ( 1 ( 9 10 ) 7 ) = 10 ( 1 ( 9 10 ) 7 ) 5.217 \mathbb{E}\left[N\right] = \mathbb{E}\left[\sum_{i=1}^{10} \mathbb{I}_{A_i}\right] = \sum_{i=1}^{10}\mathbb{E}\left[\mathbb{I}_{A_i}\right] = \sum_{i=1}^{10} \left(1 - \left(\frac{9}{10}\right)^7\right) = 10\cdot\left(1 - \left(\frac{9}{10}\right)^7\right) \approx \boxed{5.217}

Moderator note:

For such problems, finding the right Indicator Variable is often the key to simplifying the calculations that need to be done. This allows us to get the expression into a form that can be manipulated easily (in this case, by the linearity of expectation).

Glad that I read up on the linearity of expectation before doing the problem. This problem seems trivial! To be honest the indicator random variables seem like a unnecessary bit of confusion, but I probably just haven't gotten into the more complex stuff yet.

Alex Li - 4 years, 2 months ago

What is the probability that distinct buttons are pushed?

A Former Brilliant Member - 3 years, 6 months ago
Mark Hennings
Feb 8, 2017

Suppose that r r passengers get into a lift with n r n \ge r possible destination floors. If N N is the number of distinct floor buttons pressed, then P [ N = m ] = 1 n r ( n m ) m ! { r m } 1 m r \mathbb{P}[N=m] \; = \; \frac{1}{n^r} \binom{n}{m} m! \left\{ {r \atop m} \right\} \hspace{2cm} 1 \le m \le r where { r m } \left\{ {r \atop m} \right\} is a Stirling number of the second kind. This is because there are { r m } \left\{ {r \atop m} \right\} ways of sorting r r passengers into m m groups, and then ( n m ) m ! \binom{n}{m} m! ways of determing which floor button is associated to each group, while there are a total of n r n^r different combinations of floor choices that r r passengers can make.

Using the standard combinatorial identity ( x d d x ) r f ( x ) = m = 1 r { r m } f ( m ) ( x ) x m \left(x\frac{d}{dx}\right)^r f(x) \; = \; \sum_{m=1}^r \left\{ {r \atop m}\right\} f^{(m)}(x) x^m for any r 1 r \ge 1 and any function f f , we deduce, applying this result to f ( x ) = ( 1 + x ) n f(x) = (1 + x)^n , that k = 0 n ( n k ) k r x k = m = 1 r { r m } ( n m ) m ! ( 1 + x ) n m x m \sum_{k=0}^n \binom{n}{k}k^r x^k \; = \; \sum_{m=1}^r \left\{ {r \atop m} \right\} \binom{n}{m} m! (1+x)^{n-m}x^m and hence, after a change of variable, m = 1 r ( n m ) m ! { r m } t m = k = 0 n ( n k ) k r t k ( 1 t ) n k \sum_{m=1}^r \binom{n}{m} m! \left\{{r \atop m}\right\} t^m \; = \; \sum_{k=0}^n \binom{n}{k} k^r t^k(1-t)^{n-k} we see that the probability generating function of N N is G N ( t ) = 1 n r m = 1 r ( n m ) m ! { r m } t m = 1 n r k = 0 n ( n k ) k r t k ( 1 t ) n k G_N(t) \; = \; \frac{1}{n^r} \sum_{m=1}^r \binom{n}{m} m! \left\{{r \atop m}\right\} t^m \; = \; \frac{1}{n^r}\sum_{k=0}^n \binom{n}{k} k^r t^k(1-t)^{n-k} Thus G N ( t ) = 1 n r k = 0 n ( n k ) k r { k t k 1 ( 1 t ) n k ( n k ) t k ( 1 t ) n k 1 } G_N'(t) \; = \; \frac{1}{n^r} \sum_{k=0}^n \binom{n}{k} k^r \left\{ kt^{k-1}(1-t)^{n-k} - (n-k)t^k(1-t)^{n-k-1}\right\} and nearly all terms in this expression contain a factor of 1 t 1-t , so that E [ N ] = G N ( 1 ) = 1 n r { n × ( n 1 ) r × ( 1 ) + 1 × n r × n } = n r ( n 1 ) r n r 1 \mathbb{E}[N] \; = \; G_N'(1) \; = \; \frac{1}{n^r}\left\{ n \times (n-1)^r \times (-1) + 1 \times n^r \times n\right\} \; = \; \frac{n^r - (n-1)^r}{n^{r-1}} In the case that r = 7 r=7 and n = 10 n=10 we have E [ N ] = 1 0 7 9 7 1 0 6 = 5217031 1 0 6 = 5.217031 \mathbb{E}[N] \; = \; \frac{10^7 - 9^7}{10^6} \; = \; \frac{5217031}{10^6} \; =\; \boxed{5.217031}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...