Exact Probability of Collision of Two Independent Random Walkers After N Steps Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)The random walk of two drunksModelling the meeting of two random walksCalculating probability of 2 people reaching togetherRandom Walk - If $m$ is odd, probability of no equalization in the last $m$ steps in path of length $2m$ is 1/2The random walk of two drunksProbability 2 Random Walkers Will Meet (1D)Random walk on a finite square grid: probability of given position after 15 or 3600 movesStability of a dimer on a square grid after $n$ random stepsMeeting probability of two bankers: uniform distribution puzzleProbability of two people passing through same point on random walk2 1D random walkers separated by a distance d will meet at or before time t.Probability that ants meet after $8$ stepsCalculating probability of 2 people reaching together

What do you call the main part of a joke?

What are the diatonic extended chords of C major?

Should I use a zero-interest credit card for a large one-time purchase?

Is a ledger board required if the side of my house is wood?

Generate an RGB colour grid

Take 2! Is this homebrew Lady of Pain warlock patron balanced?

Significance of Cersei's obsession with elephants?

Most bit efficient text communication method?

Crossing US/Canada Border for less than 24 hours

Performance gap between vector<bool> and array

Drawing without replacement: why is the order of draw irrelevant?

Converted a Scalar function to a TVF function for parallel execution-Still running in Serial mode

How to tell that you are a giant?

How come Sam didn't become Lord of Horn Hill?

Hangman Game with C++

Central Vacuuming: Is it worth it, and how does it compare to normal vacuuming?

Is it possible for SQL statements to execute concurrently within a single session in SQL Server?

What order were files/directories outputted in dir?

How do I use the new nonlinear finite element in Mathematica 12 for this equation?

What is "gratricide"?

Disembodied hand growing fangs

Is CEO the "profession" with the most psychopaths?

Update module to run alter command

Putting class ranking in CV, but against dept guidelines



Exact Probability of Collision of Two Independent Random Walkers After N Steps



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)The random walk of two drunksModelling the meeting of two random walksCalculating probability of 2 people reaching togetherRandom Walk - If $m$ is odd, probability of no equalization in the last $m$ steps in path of length $2m$ is 1/2The random walk of two drunksProbability 2 Random Walkers Will Meet (1D)Random walk on a finite square grid: probability of given position after 15 or 3600 movesStability of a dimer on a square grid after $n$ random stepsMeeting probability of two bankers: uniform distribution puzzleProbability of two people passing through same point on random walk2 1D random walkers separated by a distance d will meet at or before time t.Probability that ants meet after $8$ stepsCalculating probability of 2 people reaching together










2












$begingroup$


Two drunks start together at the origin at $t=0$ and every second they move with equal probability either to the right or to the left, each drunk independently from the other. What is the probability that after $N$ seconds they meet again?



I may be on something but I don't know how to write this sum in a close form:



beginequation
sum_n=0^[N/2]fracN!n!n!(N-2n)!frac12^N+2n
endequation



Any hints?










share|cite|improve this question











$endgroup$











  • $begingroup$
    This feels like it's equivalent to a random walk by one particle. If you write their positions as $x_t$ and $y_t$ and denote the distance between them by $d_t=x_t-y_t$ then $d_0=0$ and at each stage, $d_t+1$ is either $d_t$ (probability $1/2$), $d_t-2$ (probability $1/4$) or $d_t+2$ (probability $1/4$).
    $endgroup$
    – Chris Taylor
    Mar 8 '12 at 22:47










  • $begingroup$
    Yes, it is just what I thought and following that idea I found the summation above. Can you rewrite it in a nicer form?
    $endgroup$
    – quark1245
    Mar 8 '12 at 22:52










  • $begingroup$
    The no. of left movement should be same for both persons.Hence the probability is $1overN$, since N is no. of distinct left movements.
    $endgroup$
    – quartz
    Mar 8 '12 at 23:02















2












$begingroup$


Two drunks start together at the origin at $t=0$ and every second they move with equal probability either to the right or to the left, each drunk independently from the other. What is the probability that after $N$ seconds they meet again?



I may be on something but I don't know how to write this sum in a close form:



beginequation
sum_n=0^[N/2]fracN!n!n!(N-2n)!frac12^N+2n
endequation



Any hints?










share|cite|improve this question











$endgroup$











  • $begingroup$
    This feels like it's equivalent to a random walk by one particle. If you write their positions as $x_t$ and $y_t$ and denote the distance between them by $d_t=x_t-y_t$ then $d_0=0$ and at each stage, $d_t+1$ is either $d_t$ (probability $1/2$), $d_t-2$ (probability $1/4$) or $d_t+2$ (probability $1/4$).
    $endgroup$
    – Chris Taylor
    Mar 8 '12 at 22:47










  • $begingroup$
    Yes, it is just what I thought and following that idea I found the summation above. Can you rewrite it in a nicer form?
    $endgroup$
    – quark1245
    Mar 8 '12 at 22:52










  • $begingroup$
    The no. of left movement should be same for both persons.Hence the probability is $1overN$, since N is no. of distinct left movements.
    $endgroup$
    – quartz
    Mar 8 '12 at 23:02













2












2








2


3



$begingroup$


Two drunks start together at the origin at $t=0$ and every second they move with equal probability either to the right or to the left, each drunk independently from the other. What is the probability that after $N$ seconds they meet again?



I may be on something but I don't know how to write this sum in a close form:



beginequation
sum_n=0^[N/2]fracN!n!n!(N-2n)!frac12^N+2n
endequation



Any hints?










share|cite|improve this question











$endgroup$




Two drunks start together at the origin at $t=0$ and every second they move with equal probability either to the right or to the left, each drunk independently from the other. What is the probability that after $N$ seconds they meet again?



I may be on something but I don't know how to write this sum in a close form:



beginequation
sum_n=0^[N/2]fracN!n!n!(N-2n)!frac12^N+2n
endequation



Any hints?







probability random-walk






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Mar 27 at 17:03









Royi

3,67512454




3,67512454










asked Mar 8 '12 at 22:42









quark1245quark1245

5161818




5161818











  • $begingroup$
    This feels like it's equivalent to a random walk by one particle. If you write their positions as $x_t$ and $y_t$ and denote the distance between them by $d_t=x_t-y_t$ then $d_0=0$ and at each stage, $d_t+1$ is either $d_t$ (probability $1/2$), $d_t-2$ (probability $1/4$) or $d_t+2$ (probability $1/4$).
    $endgroup$
    – Chris Taylor
    Mar 8 '12 at 22:47










  • $begingroup$
    Yes, it is just what I thought and following that idea I found the summation above. Can you rewrite it in a nicer form?
    $endgroup$
    – quark1245
    Mar 8 '12 at 22:52










  • $begingroup$
    The no. of left movement should be same for both persons.Hence the probability is $1overN$, since N is no. of distinct left movements.
    $endgroup$
    – quartz
    Mar 8 '12 at 23:02
















  • $begingroup$
    This feels like it's equivalent to a random walk by one particle. If you write their positions as $x_t$ and $y_t$ and denote the distance between them by $d_t=x_t-y_t$ then $d_0=0$ and at each stage, $d_t+1$ is either $d_t$ (probability $1/2$), $d_t-2$ (probability $1/4$) or $d_t+2$ (probability $1/4$).
    $endgroup$
    – Chris Taylor
    Mar 8 '12 at 22:47










  • $begingroup$
    Yes, it is just what I thought and following that idea I found the summation above. Can you rewrite it in a nicer form?
    $endgroup$
    – quark1245
    Mar 8 '12 at 22:52










  • $begingroup$
    The no. of left movement should be same for both persons.Hence the probability is $1overN$, since N is no. of distinct left movements.
    $endgroup$
    – quartz
    Mar 8 '12 at 23:02















$begingroup$
This feels like it's equivalent to a random walk by one particle. If you write their positions as $x_t$ and $y_t$ and denote the distance between them by $d_t=x_t-y_t$ then $d_0=0$ and at each stage, $d_t+1$ is either $d_t$ (probability $1/2$), $d_t-2$ (probability $1/4$) or $d_t+2$ (probability $1/4$).
$endgroup$
– Chris Taylor
Mar 8 '12 at 22:47




$begingroup$
This feels like it's equivalent to a random walk by one particle. If you write their positions as $x_t$ and $y_t$ and denote the distance between them by $d_t=x_t-y_t$ then $d_0=0$ and at each stage, $d_t+1$ is either $d_t$ (probability $1/2$), $d_t-2$ (probability $1/4$) or $d_t+2$ (probability $1/4$).
$endgroup$
– Chris Taylor
Mar 8 '12 at 22:47












$begingroup$
Yes, it is just what I thought and following that idea I found the summation above. Can you rewrite it in a nicer form?
$endgroup$
– quark1245
Mar 8 '12 at 22:52




$begingroup$
Yes, it is just what I thought and following that idea I found the summation above. Can you rewrite it in a nicer form?
$endgroup$
– quark1245
Mar 8 '12 at 22:52












$begingroup$
The no. of left movement should be same for both persons.Hence the probability is $1overN$, since N is no. of distinct left movements.
$endgroup$
– quartz
Mar 8 '12 at 23:02




$begingroup$
The no. of left movement should be same for both persons.Hence the probability is $1overN$, since N is no. of distinct left movements.
$endgroup$
– quartz
Mar 8 '12 at 23:02










3 Answers
3






active

oldest

votes


















3












$begingroup$

Here are two hints:



First hint : We look at how the second drunk moves relatively to the first drunk. If $A_n$ and $B_n$ are the positions of respectively the first drunk and of the second drunk at time $n$, then you can prove that $(A_n - B_n)$ is a random walk, and you are now interested in its return time at $0$.



What is the transition process of this new random walk? Can you express it with a simpler random walk (hint : simple random walk)?



Second hint : This second hint is independent from the first. Now, let us try to find a combinatorial answer. Fiw the time $n$. Let us denote by $L_1$ the left move of the first drunk until time $n$, by $R_1$ its right moves, by $L_2$ the left moves of the second drunk, and by $R_2$ the right moves of the later. The sequence of moves untile time $n$ can be describe by two sequences, say:



$$L_1 L_1 R_1 L_1 R_1 R_1 R_1 cdots L_1$$
$$L_2 R_2 R_2 L_2 L_2 L_2 R_2 cdots L_2$$



Say what it means for the two drunks to be at the same place at time $n$. In particlar, what condition on (number of $L_1$ + number of $R_2$) is equivalent to this event?






share|cite|improve this answer









$endgroup$












  • $begingroup$
    About your second hint: the condition we need is that the number of left moves is equal for the two drunks, or that the number of left moves of the first + the number of right moves of the second is equal to N. The number of all possible walks is $4^N$. Call $n$ the number of left moves of the first drunk. We can choose these $n$ moves in $(N,,,, n)$ ways. The number of left moves of the second drunk must be $n$ too and so the probability is $sum_n=0^N=(N ,,,, n)^2/4^N$, that is $4^-N(2N,,,, N)$. Is this right? Thanks
    $endgroup$
    – quark1245
    Mar 8 '12 at 23:30











  • $begingroup$
    This is right, but there is a slightly shorter reasoning. Both path are entirely determined by the data of the $N$ left moves of the firsts + right moves of the second, so there is $(2N N)$ good paths, among the $4^N$ possible paths.
    $endgroup$
    – D. Thomine
    Mar 8 '12 at 23:38


















2












$begingroup$

As @Chris Taylor mentioned, it is equivalent of having one walker with the following PDF for the each step:



$$ pleft ( x right ) = left{beginmatrix
-1 & frac14 \
0 & frac12 \
1 & frac14
endmatrixright. $$



Now we have to calculate the probability of him to get back to the origin.
The trick is understand that given he did $ k $ steps to the right he must do $ k $ steps to the left the rest of the steps are standing still.

Moreover, $ k $ is limited up to half of the steps, $ N $, namely, $ k leq left lfloor fracN2 right rfloor $.



Defining $ S_N = x_1 + x_2 + cdots + x_N $ and calculating $ pleft ( S_N = 0 right ) $ which is the probability of being at the origin at the $ N $ step yields:



$$ pleft ( S_N = 0 right ) = sum_k = 0^left lfloor fracN2 right rfloor left (frac14 right )^k left (frac14 right )^k left ( frac12 right )^N - 2k binomNkbinomN - kk $$



The logic is, we sum all over the possibilities of routes of the length $ N $ with the same number of right and left turns (Hence choosing $ k $ steps of $ N $ steps and then $ k $ of $ N - k $ left steps).



Another point of view is looking at the route of the 2 walkers as a binary chain.

Each of them creates a chain of length $ N $.



We want the two chains to have the same number of $ 1 $ in them.

If walker A made a chain with length $ N $ which includes $ k $ times $ 1 $ walker B must have a chain of length $ N $ with exactly $ k $ times $ 1 $ which there are $ binomNk $ options.

Walker A also has the number of options to have a chain with $ k $ times $ 1 $.



The total number of chains is $ 2^N $.

Which yields:



$$ pleft ( S_N = 0 right ) = 2^-2N sum_k = 0^N binomNk^2 = fracbinom2NN2^2N $$



Which give us a nice identity.






share|cite|improve this answer











$endgroup$




















    1












    $begingroup$


    Disclaimer: This is, so far, one of my most downvoted answers on the site. Needless to say, it is perfectly correct, and it answers the question. The downvotes might be due to some extra-mathematical reasons. Happy reading!




    Hint: characteristic functions.



    The relative movement $X$ in one step has characteristic function $varphi$ where $varphi(t)=mathrm E(mathrm e^mathrm itX)=frac12+frac14mathrm e^mathrm it+frac14mathrm e^-mathrm it$ hence $varphi(t)=frac12(1+cos t)=cos^2left(fract2right)$. The relative position $S_N$ after $N$ steps has characteristic function $varphi(t)^N=cos^2Nleft(fract2right)$.



    The probability that the two walkers meet at time $N$ is $p_N=mathrm P(S_N=0)=intlimits_0^2pimathrm E(mathrm e^mathrm itS_N)fracmathrm dt2pi$ hence $p_N=intlimits_0^2picos^2Nleft(fract2right)fracmathrm dt2pi=frac2piintlimits_0^pi/2cos^2N(t)mathrm dt$.



    Finally, $p_N=frac2pi W_N$, where $W_N$ is a Wallis integral, whose value is well known.






    share|cite|improve this answer











    $endgroup$













      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "69"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      noCode: true, onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f118046%2fexact-probability-of-collision-of-two-independent-random-walkers-after-n-steps%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      3












      $begingroup$

      Here are two hints:



      First hint : We look at how the second drunk moves relatively to the first drunk. If $A_n$ and $B_n$ are the positions of respectively the first drunk and of the second drunk at time $n$, then you can prove that $(A_n - B_n)$ is a random walk, and you are now interested in its return time at $0$.



      What is the transition process of this new random walk? Can you express it with a simpler random walk (hint : simple random walk)?



      Second hint : This second hint is independent from the first. Now, let us try to find a combinatorial answer. Fiw the time $n$. Let us denote by $L_1$ the left move of the first drunk until time $n$, by $R_1$ its right moves, by $L_2$ the left moves of the second drunk, and by $R_2$ the right moves of the later. The sequence of moves untile time $n$ can be describe by two sequences, say:



      $$L_1 L_1 R_1 L_1 R_1 R_1 R_1 cdots L_1$$
      $$L_2 R_2 R_2 L_2 L_2 L_2 R_2 cdots L_2$$



      Say what it means for the two drunks to be at the same place at time $n$. In particlar, what condition on (number of $L_1$ + number of $R_2$) is equivalent to this event?






      share|cite|improve this answer









      $endgroup$












      • $begingroup$
        About your second hint: the condition we need is that the number of left moves is equal for the two drunks, or that the number of left moves of the first + the number of right moves of the second is equal to N. The number of all possible walks is $4^N$. Call $n$ the number of left moves of the first drunk. We can choose these $n$ moves in $(N,,,, n)$ ways. The number of left moves of the second drunk must be $n$ too and so the probability is $sum_n=0^N=(N ,,,, n)^2/4^N$, that is $4^-N(2N,,,, N)$. Is this right? Thanks
        $endgroup$
        – quark1245
        Mar 8 '12 at 23:30











      • $begingroup$
        This is right, but there is a slightly shorter reasoning. Both path are entirely determined by the data of the $N$ left moves of the firsts + right moves of the second, so there is $(2N N)$ good paths, among the $4^N$ possible paths.
        $endgroup$
        – D. Thomine
        Mar 8 '12 at 23:38















      3












      $begingroup$

      Here are two hints:



      First hint : We look at how the second drunk moves relatively to the first drunk. If $A_n$ and $B_n$ are the positions of respectively the first drunk and of the second drunk at time $n$, then you can prove that $(A_n - B_n)$ is a random walk, and you are now interested in its return time at $0$.



      What is the transition process of this new random walk? Can you express it with a simpler random walk (hint : simple random walk)?



      Second hint : This second hint is independent from the first. Now, let us try to find a combinatorial answer. Fiw the time $n$. Let us denote by $L_1$ the left move of the first drunk until time $n$, by $R_1$ its right moves, by $L_2$ the left moves of the second drunk, and by $R_2$ the right moves of the later. The sequence of moves untile time $n$ can be describe by two sequences, say:



      $$L_1 L_1 R_1 L_1 R_1 R_1 R_1 cdots L_1$$
      $$L_2 R_2 R_2 L_2 L_2 L_2 R_2 cdots L_2$$



      Say what it means for the two drunks to be at the same place at time $n$. In particlar, what condition on (number of $L_1$ + number of $R_2$) is equivalent to this event?






      share|cite|improve this answer









      $endgroup$












      • $begingroup$
        About your second hint: the condition we need is that the number of left moves is equal for the two drunks, or that the number of left moves of the first + the number of right moves of the second is equal to N. The number of all possible walks is $4^N$. Call $n$ the number of left moves of the first drunk. We can choose these $n$ moves in $(N,,,, n)$ ways. The number of left moves of the second drunk must be $n$ too and so the probability is $sum_n=0^N=(N ,,,, n)^2/4^N$, that is $4^-N(2N,,,, N)$. Is this right? Thanks
        $endgroup$
        – quark1245
        Mar 8 '12 at 23:30











      • $begingroup$
        This is right, but there is a slightly shorter reasoning. Both path are entirely determined by the data of the $N$ left moves of the firsts + right moves of the second, so there is $(2N N)$ good paths, among the $4^N$ possible paths.
        $endgroup$
        – D. Thomine
        Mar 8 '12 at 23:38













      3












      3








      3





      $begingroup$

      Here are two hints:



      First hint : We look at how the second drunk moves relatively to the first drunk. If $A_n$ and $B_n$ are the positions of respectively the first drunk and of the second drunk at time $n$, then you can prove that $(A_n - B_n)$ is a random walk, and you are now interested in its return time at $0$.



      What is the transition process of this new random walk? Can you express it with a simpler random walk (hint : simple random walk)?



      Second hint : This second hint is independent from the first. Now, let us try to find a combinatorial answer. Fiw the time $n$. Let us denote by $L_1$ the left move of the first drunk until time $n$, by $R_1$ its right moves, by $L_2$ the left moves of the second drunk, and by $R_2$ the right moves of the later. The sequence of moves untile time $n$ can be describe by two sequences, say:



      $$L_1 L_1 R_1 L_1 R_1 R_1 R_1 cdots L_1$$
      $$L_2 R_2 R_2 L_2 L_2 L_2 R_2 cdots L_2$$



      Say what it means for the two drunks to be at the same place at time $n$. In particlar, what condition on (number of $L_1$ + number of $R_2$) is equivalent to this event?






      share|cite|improve this answer









      $endgroup$



      Here are two hints:



      First hint : We look at how the second drunk moves relatively to the first drunk. If $A_n$ and $B_n$ are the positions of respectively the first drunk and of the second drunk at time $n$, then you can prove that $(A_n - B_n)$ is a random walk, and you are now interested in its return time at $0$.



      What is the transition process of this new random walk? Can you express it with a simpler random walk (hint : simple random walk)?



      Second hint : This second hint is independent from the first. Now, let us try to find a combinatorial answer. Fiw the time $n$. Let us denote by $L_1$ the left move of the first drunk until time $n$, by $R_1$ its right moves, by $L_2$ the left moves of the second drunk, and by $R_2$ the right moves of the later. The sequence of moves untile time $n$ can be describe by two sequences, say:



      $$L_1 L_1 R_1 L_1 R_1 R_1 R_1 cdots L_1$$
      $$L_2 R_2 R_2 L_2 L_2 L_2 R_2 cdots L_2$$



      Say what it means for the two drunks to be at the same place at time $n$. In particlar, what condition on (number of $L_1$ + number of $R_2$) is equivalent to this event?







      share|cite|improve this answer












      share|cite|improve this answer



      share|cite|improve this answer










      answered Mar 8 '12 at 22:59









      D. ThomineD. Thomine

      7,7241539




      7,7241539











      • $begingroup$
        About your second hint: the condition we need is that the number of left moves is equal for the two drunks, or that the number of left moves of the first + the number of right moves of the second is equal to N. The number of all possible walks is $4^N$. Call $n$ the number of left moves of the first drunk. We can choose these $n$ moves in $(N,,,, n)$ ways. The number of left moves of the second drunk must be $n$ too and so the probability is $sum_n=0^N=(N ,,,, n)^2/4^N$, that is $4^-N(2N,,,, N)$. Is this right? Thanks
        $endgroup$
        – quark1245
        Mar 8 '12 at 23:30











      • $begingroup$
        This is right, but there is a slightly shorter reasoning. Both path are entirely determined by the data of the $N$ left moves of the firsts + right moves of the second, so there is $(2N N)$ good paths, among the $4^N$ possible paths.
        $endgroup$
        – D. Thomine
        Mar 8 '12 at 23:38
















      • $begingroup$
        About your second hint: the condition we need is that the number of left moves is equal for the two drunks, or that the number of left moves of the first + the number of right moves of the second is equal to N. The number of all possible walks is $4^N$. Call $n$ the number of left moves of the first drunk. We can choose these $n$ moves in $(N,,,, n)$ ways. The number of left moves of the second drunk must be $n$ too and so the probability is $sum_n=0^N=(N ,,,, n)^2/4^N$, that is $4^-N(2N,,,, N)$. Is this right? Thanks
        $endgroup$
        – quark1245
        Mar 8 '12 at 23:30











      • $begingroup$
        This is right, but there is a slightly shorter reasoning. Both path are entirely determined by the data of the $N$ left moves of the firsts + right moves of the second, so there is $(2N N)$ good paths, among the $4^N$ possible paths.
        $endgroup$
        – D. Thomine
        Mar 8 '12 at 23:38















      $begingroup$
      About your second hint: the condition we need is that the number of left moves is equal for the two drunks, or that the number of left moves of the first + the number of right moves of the second is equal to N. The number of all possible walks is $4^N$. Call $n$ the number of left moves of the first drunk. We can choose these $n$ moves in $(N,,,, n)$ ways. The number of left moves of the second drunk must be $n$ too and so the probability is $sum_n=0^N=(N ,,,, n)^2/4^N$, that is $4^-N(2N,,,, N)$. Is this right? Thanks
      $endgroup$
      – quark1245
      Mar 8 '12 at 23:30





      $begingroup$
      About your second hint: the condition we need is that the number of left moves is equal for the two drunks, or that the number of left moves of the first + the number of right moves of the second is equal to N. The number of all possible walks is $4^N$. Call $n$ the number of left moves of the first drunk. We can choose these $n$ moves in $(N,,,, n)$ ways. The number of left moves of the second drunk must be $n$ too and so the probability is $sum_n=0^N=(N ,,,, n)^2/4^N$, that is $4^-N(2N,,,, N)$. Is this right? Thanks
      $endgroup$
      – quark1245
      Mar 8 '12 at 23:30













      $begingroup$
      This is right, but there is a slightly shorter reasoning. Both path are entirely determined by the data of the $N$ left moves of the firsts + right moves of the second, so there is $(2N N)$ good paths, among the $4^N$ possible paths.
      $endgroup$
      – D. Thomine
      Mar 8 '12 at 23:38




      $begingroup$
      This is right, but there is a slightly shorter reasoning. Both path are entirely determined by the data of the $N$ left moves of the firsts + right moves of the second, so there is $(2N N)$ good paths, among the $4^N$ possible paths.
      $endgroup$
      – D. Thomine
      Mar 8 '12 at 23:38











      2












      $begingroup$

      As @Chris Taylor mentioned, it is equivalent of having one walker with the following PDF for the each step:



      $$ pleft ( x right ) = left{beginmatrix
      -1 & frac14 \
      0 & frac12 \
      1 & frac14
      endmatrixright. $$



      Now we have to calculate the probability of him to get back to the origin.
      The trick is understand that given he did $ k $ steps to the right he must do $ k $ steps to the left the rest of the steps are standing still.

      Moreover, $ k $ is limited up to half of the steps, $ N $, namely, $ k leq left lfloor fracN2 right rfloor $.



      Defining $ S_N = x_1 + x_2 + cdots + x_N $ and calculating $ pleft ( S_N = 0 right ) $ which is the probability of being at the origin at the $ N $ step yields:



      $$ pleft ( S_N = 0 right ) = sum_k = 0^left lfloor fracN2 right rfloor left (frac14 right )^k left (frac14 right )^k left ( frac12 right )^N - 2k binomNkbinomN - kk $$



      The logic is, we sum all over the possibilities of routes of the length $ N $ with the same number of right and left turns (Hence choosing $ k $ steps of $ N $ steps and then $ k $ of $ N - k $ left steps).



      Another point of view is looking at the route of the 2 walkers as a binary chain.

      Each of them creates a chain of length $ N $.



      We want the two chains to have the same number of $ 1 $ in them.

      If walker A made a chain with length $ N $ which includes $ k $ times $ 1 $ walker B must have a chain of length $ N $ with exactly $ k $ times $ 1 $ which there are $ binomNk $ options.

      Walker A also has the number of options to have a chain with $ k $ times $ 1 $.



      The total number of chains is $ 2^N $.

      Which yields:



      $$ pleft ( S_N = 0 right ) = 2^-2N sum_k = 0^N binomNk^2 = fracbinom2NN2^2N $$



      Which give us a nice identity.






      share|cite|improve this answer











      $endgroup$

















        2












        $begingroup$

        As @Chris Taylor mentioned, it is equivalent of having one walker with the following PDF for the each step:



        $$ pleft ( x right ) = left{beginmatrix
        -1 & frac14 \
        0 & frac12 \
        1 & frac14
        endmatrixright. $$



        Now we have to calculate the probability of him to get back to the origin.
        The trick is understand that given he did $ k $ steps to the right he must do $ k $ steps to the left the rest of the steps are standing still.

        Moreover, $ k $ is limited up to half of the steps, $ N $, namely, $ k leq left lfloor fracN2 right rfloor $.



        Defining $ S_N = x_1 + x_2 + cdots + x_N $ and calculating $ pleft ( S_N = 0 right ) $ which is the probability of being at the origin at the $ N $ step yields:



        $$ pleft ( S_N = 0 right ) = sum_k = 0^left lfloor fracN2 right rfloor left (frac14 right )^k left (frac14 right )^k left ( frac12 right )^N - 2k binomNkbinomN - kk $$



        The logic is, we sum all over the possibilities of routes of the length $ N $ with the same number of right and left turns (Hence choosing $ k $ steps of $ N $ steps and then $ k $ of $ N - k $ left steps).



        Another point of view is looking at the route of the 2 walkers as a binary chain.

        Each of them creates a chain of length $ N $.



        We want the two chains to have the same number of $ 1 $ in them.

        If walker A made a chain with length $ N $ which includes $ k $ times $ 1 $ walker B must have a chain of length $ N $ with exactly $ k $ times $ 1 $ which there are $ binomNk $ options.

        Walker A also has the number of options to have a chain with $ k $ times $ 1 $.



        The total number of chains is $ 2^N $.

        Which yields:



        $$ pleft ( S_N = 0 right ) = 2^-2N sum_k = 0^N binomNk^2 = fracbinom2NN2^2N $$



        Which give us a nice identity.






        share|cite|improve this answer











        $endgroup$















          2












          2








          2





          $begingroup$

          As @Chris Taylor mentioned, it is equivalent of having one walker with the following PDF for the each step:



          $$ pleft ( x right ) = left{beginmatrix
          -1 & frac14 \
          0 & frac12 \
          1 & frac14
          endmatrixright. $$



          Now we have to calculate the probability of him to get back to the origin.
          The trick is understand that given he did $ k $ steps to the right he must do $ k $ steps to the left the rest of the steps are standing still.

          Moreover, $ k $ is limited up to half of the steps, $ N $, namely, $ k leq left lfloor fracN2 right rfloor $.



          Defining $ S_N = x_1 + x_2 + cdots + x_N $ and calculating $ pleft ( S_N = 0 right ) $ which is the probability of being at the origin at the $ N $ step yields:



          $$ pleft ( S_N = 0 right ) = sum_k = 0^left lfloor fracN2 right rfloor left (frac14 right )^k left (frac14 right )^k left ( frac12 right )^N - 2k binomNkbinomN - kk $$



          The logic is, we sum all over the possibilities of routes of the length $ N $ with the same number of right and left turns (Hence choosing $ k $ steps of $ N $ steps and then $ k $ of $ N - k $ left steps).



          Another point of view is looking at the route of the 2 walkers as a binary chain.

          Each of them creates a chain of length $ N $.



          We want the two chains to have the same number of $ 1 $ in them.

          If walker A made a chain with length $ N $ which includes $ k $ times $ 1 $ walker B must have a chain of length $ N $ with exactly $ k $ times $ 1 $ which there are $ binomNk $ options.

          Walker A also has the number of options to have a chain with $ k $ times $ 1 $.



          The total number of chains is $ 2^N $.

          Which yields:



          $$ pleft ( S_N = 0 right ) = 2^-2N sum_k = 0^N binomNk^2 = fracbinom2NN2^2N $$



          Which give us a nice identity.






          share|cite|improve this answer











          $endgroup$



          As @Chris Taylor mentioned, it is equivalent of having one walker with the following PDF for the each step:



          $$ pleft ( x right ) = left{beginmatrix
          -1 & frac14 \
          0 & frac12 \
          1 & frac14
          endmatrixright. $$



          Now we have to calculate the probability of him to get back to the origin.
          The trick is understand that given he did $ k $ steps to the right he must do $ k $ steps to the left the rest of the steps are standing still.

          Moreover, $ k $ is limited up to half of the steps, $ N $, namely, $ k leq left lfloor fracN2 right rfloor $.



          Defining $ S_N = x_1 + x_2 + cdots + x_N $ and calculating $ pleft ( S_N = 0 right ) $ which is the probability of being at the origin at the $ N $ step yields:



          $$ pleft ( S_N = 0 right ) = sum_k = 0^left lfloor fracN2 right rfloor left (frac14 right )^k left (frac14 right )^k left ( frac12 right )^N - 2k binomNkbinomN - kk $$



          The logic is, we sum all over the possibilities of routes of the length $ N $ with the same number of right and left turns (Hence choosing $ k $ steps of $ N $ steps and then $ k $ of $ N - k $ left steps).



          Another point of view is looking at the route of the 2 walkers as a binary chain.

          Each of them creates a chain of length $ N $.



          We want the two chains to have the same number of $ 1 $ in them.

          If walker A made a chain with length $ N $ which includes $ k $ times $ 1 $ walker B must have a chain of length $ N $ with exactly $ k $ times $ 1 $ which there are $ binomNk $ options.

          Walker A also has the number of options to have a chain with $ k $ times $ 1 $.



          The total number of chains is $ 2^N $.

          Which yields:



          $$ pleft ( S_N = 0 right ) = 2^-2N sum_k = 0^N binomNk^2 = fracbinom2NN2^2N $$



          Which give us a nice identity.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Nov 2 '12 at 7:39

























          answered Oct 30 '12 at 19:45









          RoyiRoyi

          3,67512454




          3,67512454





















              1












              $begingroup$


              Disclaimer: This is, so far, one of my most downvoted answers on the site. Needless to say, it is perfectly correct, and it answers the question. The downvotes might be due to some extra-mathematical reasons. Happy reading!




              Hint: characteristic functions.



              The relative movement $X$ in one step has characteristic function $varphi$ where $varphi(t)=mathrm E(mathrm e^mathrm itX)=frac12+frac14mathrm e^mathrm it+frac14mathrm e^-mathrm it$ hence $varphi(t)=frac12(1+cos t)=cos^2left(fract2right)$. The relative position $S_N$ after $N$ steps has characteristic function $varphi(t)^N=cos^2Nleft(fract2right)$.



              The probability that the two walkers meet at time $N$ is $p_N=mathrm P(S_N=0)=intlimits_0^2pimathrm E(mathrm e^mathrm itS_N)fracmathrm dt2pi$ hence $p_N=intlimits_0^2picos^2Nleft(fract2right)fracmathrm dt2pi=frac2piintlimits_0^pi/2cos^2N(t)mathrm dt$.



              Finally, $p_N=frac2pi W_N$, where $W_N$ is a Wallis integral, whose value is well known.






              share|cite|improve this answer











              $endgroup$

















                1












                $begingroup$


                Disclaimer: This is, so far, one of my most downvoted answers on the site. Needless to say, it is perfectly correct, and it answers the question. The downvotes might be due to some extra-mathematical reasons. Happy reading!




                Hint: characteristic functions.



                The relative movement $X$ in one step has characteristic function $varphi$ where $varphi(t)=mathrm E(mathrm e^mathrm itX)=frac12+frac14mathrm e^mathrm it+frac14mathrm e^-mathrm it$ hence $varphi(t)=frac12(1+cos t)=cos^2left(fract2right)$. The relative position $S_N$ after $N$ steps has characteristic function $varphi(t)^N=cos^2Nleft(fract2right)$.



                The probability that the two walkers meet at time $N$ is $p_N=mathrm P(S_N=0)=intlimits_0^2pimathrm E(mathrm e^mathrm itS_N)fracmathrm dt2pi$ hence $p_N=intlimits_0^2picos^2Nleft(fract2right)fracmathrm dt2pi=frac2piintlimits_0^pi/2cos^2N(t)mathrm dt$.



                Finally, $p_N=frac2pi W_N$, where $W_N$ is a Wallis integral, whose value is well known.






                share|cite|improve this answer











                $endgroup$















                  1












                  1








                  1





                  $begingroup$


                  Disclaimer: This is, so far, one of my most downvoted answers on the site. Needless to say, it is perfectly correct, and it answers the question. The downvotes might be due to some extra-mathematical reasons. Happy reading!




                  Hint: characteristic functions.



                  The relative movement $X$ in one step has characteristic function $varphi$ where $varphi(t)=mathrm E(mathrm e^mathrm itX)=frac12+frac14mathrm e^mathrm it+frac14mathrm e^-mathrm it$ hence $varphi(t)=frac12(1+cos t)=cos^2left(fract2right)$. The relative position $S_N$ after $N$ steps has characteristic function $varphi(t)^N=cos^2Nleft(fract2right)$.



                  The probability that the two walkers meet at time $N$ is $p_N=mathrm P(S_N=0)=intlimits_0^2pimathrm E(mathrm e^mathrm itS_N)fracmathrm dt2pi$ hence $p_N=intlimits_0^2picos^2Nleft(fract2right)fracmathrm dt2pi=frac2piintlimits_0^pi/2cos^2N(t)mathrm dt$.



                  Finally, $p_N=frac2pi W_N$, where $W_N$ is a Wallis integral, whose value is well known.






                  share|cite|improve this answer











                  $endgroup$




                  Disclaimer: This is, so far, one of my most downvoted answers on the site. Needless to say, it is perfectly correct, and it answers the question. The downvotes might be due to some extra-mathematical reasons. Happy reading!




                  Hint: characteristic functions.



                  The relative movement $X$ in one step has characteristic function $varphi$ where $varphi(t)=mathrm E(mathrm e^mathrm itX)=frac12+frac14mathrm e^mathrm it+frac14mathrm e^-mathrm it$ hence $varphi(t)=frac12(1+cos t)=cos^2left(fract2right)$. The relative position $S_N$ after $N$ steps has characteristic function $varphi(t)^N=cos^2Nleft(fract2right)$.



                  The probability that the two walkers meet at time $N$ is $p_N=mathrm P(S_N=0)=intlimits_0^2pimathrm E(mathrm e^mathrm itS_N)fracmathrm dt2pi$ hence $p_N=intlimits_0^2picos^2Nleft(fract2right)fracmathrm dt2pi=frac2piintlimits_0^pi/2cos^2N(t)mathrm dt$.



                  Finally, $p_N=frac2pi W_N$, where $W_N$ is a Wallis integral, whose value is well known.







                  share|cite|improve this answer














                  share|cite|improve this answer



                  share|cite|improve this answer








                  edited Oct 31 '16 at 13:18

























                  answered Mar 8 '12 at 23:52









                  DidDid

                  249k23228467




                  249k23228467



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Mathematics Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      Use MathJax to format equations. MathJax reference.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f118046%2fexact-probability-of-collision-of-two-independent-random-walkers-after-n-steps%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      How should I support this large drywall patch? Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How do I cover large gaps in drywall?How do I keep drywall around a patch from crumbling?Can I glue a second layer of drywall?How to patch long strip on drywall?Large drywall patch: how to avoid bulging seams?Drywall Mesh Patch vs. Bulge? To remove or not to remove?How to fix this drywall job?Prep drywall before backsplashWhat's the best way to fix this horrible drywall patch job?Drywall patching using 3M Patch Plus Primer

                      random experiment with two different functions on unit interval Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)Random variable and probability space notionsRandom Walk with EdgesFinding functions where the increase over a random interval is Poisson distributedNumber of days until dayCan an observed event in fact be of zero probability?Unit random processmodels of coins and uniform distributionHow to get the number of successes given $n$ trials , probability $P$ and a random variable $X$Absorbing Markov chain in a computer. Is “almost every” turned into always convergence in computer executions?Stopped random walk is not uniformly integrable

                      Lowndes Grove History Architecture References Navigation menu32°48′6″N 79°57′58″W / 32.80167°N 79.96611°W / 32.80167; -79.9661132°48′6″N 79°57′58″W / 32.80167°N 79.96611°W / 32.80167; -79.9661178002500"National Register Information System"Historic houses of South Carolina"Lowndes Grove""+32° 48' 6.00", −79° 57' 58.00""Lowndes Grove, Charleston County (260 St. Margaret St., Charleston)""Lowndes Grove"The Charleston ExpositionIt Happened in South Carolina"Lowndes Grove (House), Saint Margaret Street & Sixth Avenue, Charleston, Charleston County, SC(Photographs)"Plantations of the Carolina Low Countrye