An ant starts a random walk on the real number line at 0 . At each step, the ant moves by + 1 or − 1 with equal probability. After 6 moves, the probability that the ant is on a positive number can be expressed as b a , where a and b are positive coprime integers. What is the value of a + b ?
This problem is posed by Michael T.
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.
The ant can choose to either move in the positive or the negative direction. It has 2 options, and it needs to make this choice six times, so there are 2 6 = 6 4 possible paths it could take.
Let us find the probability that the ant will end up on 0 , a neither positive nor negative number. The ant must take 3 steps in each direction to arrive at 0 after 6 steps. Another way to think about this is that the ant has 3 moves in the positive direction and 3 moves in the negative direction. We calculate the number of distinct ways you can order the moves.
3 ! 3 ! 6 ! = 2 0
There are 2 0 possible ways for the ant to land on 0 after 6 moves.So the probability that the ant will end up on 0 is 6 4 2 0 .
The probability that the ant will be on a positive number is the same as the probability that the ant will be on a negative number, so we can arrive at our answer if we halve the probability that the ant will not be on 0.
6 4 6 4 − 6 4 2 0 = 6 4 4 4
6 4 4 4 / 2 = 6 4 2 2 = 3 2 1 1
1 1 + 3 2 = 4 3
As we start at 0 and have the same probability of going left of right, the probability of ending on a positive number is the same as the probability of ending on a negative number, so we are done if we calculate the probability of ending on 0, subtract it from 1 and divide by two. The probability of ending on 0 is the probability of taking the same number of +1 and -1, i.e., 3 times each one. So it is ( 3 6 ) × 2 1 ) 6 = 1 6 5 . Then the probability of ending on a positive number is 2 1 − 1 6 5 = 3 2 1 1 , so a + b = 4 3 .
Veja que para cada movimento há 2 possibilidades,assim no total existem 64 possíveis movimentos .Vejamos que pela simetria do passo existem o mesmo número de caminhos terminando em um um número positivo e um negativo.Se o caminho termina em zero significa que houve três movimentos +1 e três -1 ,e existem C(6,3)=20 ordenações desses movimentos.Assim devem haver 22 movimentos terminando no lado positivo e 22 no lado negativo ,assim a/b=22/64=11=32 ,a+b=11+32=43
We can devide the possible final number k that the ant land after 6 moves into 3 types: k > 0 , k = 0 , k < 0 . So: P ( k > 0 ) + P ( k = 0 ) + P ( k < 0 ) = 1 .
There are 2 6 ways of 6–step walk. If k = 0 then there are 3 steps move by “+1” and 3 steps move by “–1”, which comprises C ( 6 , 3 ) = 2 0 ways. Therefore, P ( k = 0 ) = 2 6 2 0 = 1 6 5 .
By symmetry, we can see that P ( k > 0 ) = P ( k < 0 ) . So: P ( k > 0 ) = 2 1 − P ( k = 0 ) = 2 1 − 1 6 5 = 3 2 1 1 = b a .
Hence, a = 1 1 , b = 3 2 , we’ve got a + b = 4 3 .
We realize that we want more + moves than - moves. We have three cases:
Case 1 : We can have 4 +s and 2 -s. In this case, we use binomial probability to count the cases ++++--, +++--+, etc. This is: ( 4 6 ) ⋅ ( 2 1 ) 6 . This is because we have a 2 1 probability of each move, so we raise it to the 6 th power. But also, there are ( 4 6 ) to arrange the +s and -s. Thus, the above probability.
Case 2 : We can have 5 +s and 1 -. In a similar manner, we have ( 5 6 ) ⋅ ( 2 1 ) 6 .
Case 3 : We can have 6 +s and 0-s. In a similar manner, we have ( 6 6 ) ⋅ ( 2 1 ) 6 .
Our total probability is 2 6 ( 4 6 ) + ( 5 6 ) + ( 6 6 ) = 6 4 1 5 + 6 + 1 = 3 2 1 1 , so our answer is 1 1 + 3 2 = 4 3 .
In order to have a positive number after 6 moves, ant must walk a number of move -1 and +1 which satisfies 3 cases below:
Case 1 : 6 moves +1 => 1 method
Case 2 : 5 moves +1 and 1 move -1 => 6 methods
Case 3 : 4 moves +1 and 2 moves -1 => the number of methods is C(6,4)=C(6,2)=15 methods
we have 1+6+15 = 22 methods
and the total possible number of methods that the ant can walk ( both negative and positive) is 2^6 = 64
the possibility that the ant is on a positive number is a/b = 22/64 =11/32
a+b=11+32=43
To be in a positive number, the number of positive move ( +1) which I call P, must be bigger than the number of negative move (-1), which I call N. There are many possibilities : (a) PPPPPP : 1 way (b) PPPPPN : 6 ways (6!/5!) (c) PPPPNN : 15 ways (6!/(4!)(2!)) Total possibilities are 22. The sample space is 2^6 = 64 So the possibility to be in a positive number after 6 moves = 22/64 = 11/32 = a/b. And a+b = 43
Pascal's triangle in disguise.
The 7th row is 1, 6, 15, 20, 15, 6, 1 whose sum is 64, and 2 6 4 1 is the probability of following any one of the 64 paths. There are 20 ways of reaching zero, and 1+6+15 ways of reaching a positive value. Hence the probability required is 6 4 1 + 6 + 1 5 .
Since I try to avoid trusting my reasoning ability this far I also wrote the following Monte Carlo code to verify the probability.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
It printed 34431 100000.
Problem Loading...
Note Loading...
Set Loading...
First note that given the conditions the only possible totals are even, and they are − 6 , − 4 , − 2 , 0 , 2 , 4 , and 6
In order to get to any of these totals, the ant must generate a string of length 6 of 1 ′ s and − 1 ′ s . For example, − 1 , − 1 , 1 , 1 , − 1 , 1 would give a total of 0 .
Since there are two states and the string has a length of six, there are 2 6 = 6 4 ordered strings that could be generated.
Now we note that whatever strings can generate a number, say 2 could be used to generate a − 2 by inverting the 1 ′ s and − 1 ′ s . That is to say there are an equal number of ways to make positive integers as there are ways to make negative integers.
In order to generate the zero, we need three 1 ′ s and three − 1 ′ s . There are 3 ! ∗ 3 ! 6 ! = 2 0 ordered strings that will generate a zero. 6 4 − 2 0 = 4 4 So there are 4 4 strings that will generate the positive and negative integers.
Since there are an equal number of strings for both positive and negative integers, there must therefore be 4 4 / 2 = 2 2 strings that generate positive numbers.
2 2 / 6 4 = 1 1 / 3 2 so a + b = 1 1 + 3 2 = 4 3