You have n coins with you numbered 1 to n . But, they are biased. coin in the set has a probability of of showing and of showing . Example - Coin numbered has probability of showing and probability of showing .
You perform they following tiring process with them, starting from coin numbered 1
Step-1: You flip the coin you have and note its outcome. Let it be where is the number of the coin you flipped.
Step-2: You put away your coin and pick coin numbered where is your current coin number. If , you jump to Step-4 . Else, you go to Step-1 again with current coin.
Step-3: If , you pick coin after process of coin is over. Else, you pick coin after process of coin is over. If index of coin picked , you terminate the process. If coin picked , you repeat Step-3 with that coin. Else, you go to Step - 1 with the current coin(coin ).
Step-4: For coin numbered , you flip it till you encounter a . Once you encounter it, you go to Step-3 with coin .
Find the expected value of the number of times you'll flip the .
All of my problems are original
Try easier version Unexpected Probability problem!!
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.
Let E r / p i c k e d be the expected value of number of times coin r is flipped once it is picked.
E r / p i c k e d = ∑ (number of times coin is flipped) × (probability that it is flipped that number of times)
E r / p i c k e d = 1 × r + 1 1 + 2 × ( r + 1 r ) 1 × r + 1 1 + 3 × ( r + 1 r ) 2 × r + 1 1 … ∞
E r / p i c k e d = r + 1
Let E r be the expected value of number of times a coin is flipped in total
Now, logically E 1 = E 1 / p i c k e d = 2
Also, we get a reccurence relationship
E r = E r / p i c k e d × E r − 1
E r = ( r + 1 ) × E r − 1 = ( r + 1 ) × r × E r − 2 = ( r + 1 ) × r × ( r − 1 ) × E r − 3 = … = ( r + 1 ) × r × ( r − 1 ) × … × 3 × 2
E r = ( r + 1 ) ! where ! denotes factorial symbol.
E 6 = 7 ! = 5 0 4 0