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?
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.
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.
What is the probability that distinct buttons are pushed?
Suppose that r passengers get into a lift with n ≥ r possible destination floors. If N is the number of distinct floor buttons pressed, then P [ N = m ] = n r 1 ( m n ) m ! { m r } 1 ≤ m ≤ r where { m r } is a Stirling number of the second kind. This is because there are { m r } ways of sorting r passengers into m groups, and then ( m n ) m ! ways of determing which floor button is associated to each group, while there are a total of n r different combinations of floor choices that r passengers can make.
Using the standard combinatorial identity ( x d x d ) r f ( x ) = m = 1 ∑ r { m r } f ( m ) ( x ) x m for any r ≥ 1 and any function f , we deduce, applying this result to f ( x ) = ( 1 + x ) n , that k = 0 ∑ n ( k n ) k r x k = m = 1 ∑ r { m r } ( m n ) m ! ( 1 + x ) n − m x m and hence, after a change of variable, m = 1 ∑ r ( m n ) m ! { m r } t m = k = 0 ∑ n ( k n ) k r t k ( 1 − t ) n − k we see that the probability generating function of N is G N ( t ) = n r 1 m = 1 ∑ r ( m n ) m ! { m r } t m = n r 1 k = 0 ∑ n ( k n ) k r t k ( 1 − t ) n − k Thus G N ′ ( t ) = n r 1 k = 0 ∑ n ( k n ) k r { k t k − 1 ( 1 − t ) n − k − ( n − k ) t k ( 1 − t ) n − k − 1 } and nearly all terms in this expression contain a factor of 1 − t , so that E [ N ] = G N ′ ( 1 ) = n r 1 { n × ( n − 1 ) r × ( − 1 ) + 1 × n r × n } = n r − 1 n r − ( n − 1 ) r In the case that r = 7 and n = 1 0 we have E [ N ] = 1 0 6 1 0 7 − 9 7 = 1 0 6 5 2 1 7 0 3 1 = 5 . 2 1 7 0 3 1
Problem Loading...
Note Loading...
Set Loading...
For each 1 ≤ i ≤ 1 0 , let A i denote the event that button i is pressed, let A i ′ denote the complementary event that button i is not pressed, and let I A i = { 1 if button i is pressed 0 otherwise 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 − ( 1 0 9 ) 7 ≈ 0 . 5 2 1 7 .
The second feature is that N = number of distinct buttons pushed = i = 1 ∑ 1 0 I A i . and therefore we may compute the expected number of distinct buttons pushed by E [ N ] = E [ i = 1 ∑ 1 0 I A i ] = i = 1 ∑ 1 0 E [ I A i ] = i = 1 ∑ 1 0 ( 1 − ( 1 0 9 ) 7 ) = 1 0 ⋅ ( 1 − ( 1 0 9 ) 7 ) ≈ 5 . 2 1 7