A flea is currently on number 11 of a number line (with length 20) marked 0, 1, 2, ..., 19, 20. Every second the flea jumps randomly towards either of the two extremes, 0 and 20, making a movement of 1 at a time.
What is the expected number of seconds until the flea ends on either one of the two extremes?
Bonus
: What is the probability that the flea ends first on 0 (which is a distance of 11 away from its starting position)?
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.
Thanks. I've updated the answer to 600.
The correct formula is T i = i ( 4 0 − i ) .
First, the equation T 1 = 2 1 T 2 + 2 3 should be T 1 = 2 1 T 2 + 1 .
From the formulas T 1 = 2 1 T 2 + 1 and T 2 = T 1 + 3 7 , T 1 = 3 9 and T 2 = 7 6 . Then T i = 2 ( 2 0 − i ) + 1 + T i − 1 = [ 2 ( 2 0 − i ) + 1 ] + [ 2 ( 2 1 − i ) + 1 ] + T i − 2 = [ 2 ( 2 0 − i ) + 1 ] + [ 2 ( 2 1 − i ) + 1 ] + [ 2 ( 2 2 − i ) + 1 ] + T i − 3 = ⋯ = [ 2 ( 2 0 − i ) + 1 ] + [ 2 ( 2 1 − i ) + 1 ] + [ 2 ( 2 2 − i ) + 1 ] + ⋯ + ( 2 ⋅ 1 7 + 1 ) + T 2 = 2 [ ( 2 0 − i ) + ( 2 1 − i ) + ⋯ + 1 7 ] + ( 4 − i ) + ( i − 2 ) + 7 6 = 2 ⋅ 2 ( 2 0 − i ) + 1 7 ⋅ ( i − 2 ) + ( i − 2 ) + 7 6 = 4 0 i − i 2 .
What does the expected no of seconds exactly mean? I mean it is equally possible never to reach extremes if the fly keeps jumping back and forth or to reach it in 9 seconds if it keeps moving in one direction only if moving in both directions are equally probable.
Problem Loading...
Note Loading...
Set Loading...
I've previously numbered all the points of the segment according to their position. So A is an extreme, point 1 is right than A and so on until point 2 0 which is the rightmost point as the above picture shows.
Let T i , with i ∈ 1 , 2 , . . . , 2 0 , be the expected value of the number of seconds which the flea takes in order to end on point A starting on point i . Now, let's analyze a particular T i , for instance T 8 . If the flea is at point 8 , then it can end on point 7 or point 9 with equal probability, so: T 8 = 2 1 ( T 7 + 1 ) + 2 1 ( T 9 + 1 ) where + 1 is given by the jump, which, from hypothesis, takes 1 second. Repeating the same argument for all the point we get the system of equation: ⎩ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎧ T 1 = 2 1 ( 1 ) + 2 1 ( T 2 + 1 ) . . . T i = 2 1 ( T i − 1 + 1 ) + 2 1 ( T i + 1 + 1 ) . . . T 2 0 = T 1 9 + 1 Substituing the last equation into the previous equations: → ⎩ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎧ T 1 = 2 1 ( T 2 ) + 2 3 T 2 = T 1 + 3 7 . . . T i = T i − 1 + 2 ( 2 0 − i ) + 1 . . . T 1 9 = T 1 8 + 3 T 2 0 = T 1 9 + 1
Hence, T 9 = 2 8 0 and T 1 1 = 3 2 0 . The answer is 6 0 0 (i made a calculus mistake so the answer is wrong: someone can check this new answer?)