Random walk. Finding probabilities












0












$begingroup$


Suppose that $x_1, x_2,...$ are independent copies of random variable $xi$ having distribution $P(x=1)=P(x=-1)=frac{1}{2}.$ Let $S_0=0$, $S_k=x_1+x_2+...+x_k$, $k geq1,$ and $a,b$ be non negative integer numbers such that $a-b>1$. Find probabilities $$P(S_2=2, S_{a+b}=a-b), text{ } P(S_2=-2, S_{a+b}=a-b).$$



I know that $P(S_2=2)=P(x_1=1, x_2=1)=frac{1}{2}*frac{1}{2}$ and $P(S_2=-2)=P(x_1=-1, x_2=-1)=frac{1}{2}*frac{1}{2}.$ But what about integers $a$ and $b$. What should I do with them?










share|cite|improve this question









$endgroup$

















    0












    $begingroup$


    Suppose that $x_1, x_2,...$ are independent copies of random variable $xi$ having distribution $P(x=1)=P(x=-1)=frac{1}{2}.$ Let $S_0=0$, $S_k=x_1+x_2+...+x_k$, $k geq1,$ and $a,b$ be non negative integer numbers such that $a-b>1$. Find probabilities $$P(S_2=2, S_{a+b}=a-b), text{ } P(S_2=-2, S_{a+b}=a-b).$$



    I know that $P(S_2=2)=P(x_1=1, x_2=1)=frac{1}{2}*frac{1}{2}$ and $P(S_2=-2)=P(x_1=-1, x_2=-1)=frac{1}{2}*frac{1}{2}.$ But what about integers $a$ and $b$. What should I do with them?










    share|cite|improve this question









    $endgroup$















      0












      0








      0





      $begingroup$


      Suppose that $x_1, x_2,...$ are independent copies of random variable $xi$ having distribution $P(x=1)=P(x=-1)=frac{1}{2}.$ Let $S_0=0$, $S_k=x_1+x_2+...+x_k$, $k geq1,$ and $a,b$ be non negative integer numbers such that $a-b>1$. Find probabilities $$P(S_2=2, S_{a+b}=a-b), text{ } P(S_2=-2, S_{a+b}=a-b).$$



      I know that $P(S_2=2)=P(x_1=1, x_2=1)=frac{1}{2}*frac{1}{2}$ and $P(S_2=-2)=P(x_1=-1, x_2=-1)=frac{1}{2}*frac{1}{2}.$ But what about integers $a$ and $b$. What should I do with them?










      share|cite|improve this question









      $endgroup$




      Suppose that $x_1, x_2,...$ are independent copies of random variable $xi$ having distribution $P(x=1)=P(x=-1)=frac{1}{2}.$ Let $S_0=0$, $S_k=x_1+x_2+...+x_k$, $k geq1,$ and $a,b$ be non negative integer numbers such that $a-b>1$. Find probabilities $$P(S_2=2, S_{a+b}=a-b), text{ } P(S_2=-2, S_{a+b}=a-b).$$



      I know that $P(S_2=2)=P(x_1=1, x_2=1)=frac{1}{2}*frac{1}{2}$ and $P(S_2=-2)=P(x_1=-1, x_2=-1)=frac{1}{2}*frac{1}{2}.$ But what about integers $a$ and $b$. What should I do with them?







      probability probability-theory probability-distributions random-variables random-walk






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Jan 9 at 10:11









      AtstovasAtstovas

      1089




      1089






















          1 Answer
          1






          active

          oldest

          votes


















          0












          $begingroup$

          You can start with: $$P(S_2=2,S_{a+b}=a-b)=P(S=2)P(S_{a+b}=a-bmid S_2=2)=frac14P(S_{a+b-2}=a-b-2)$$



          Now the question rises: how many ways are there from $0$ to $a-b-2$ taking $a+b-2$ steps?



          If there are $r$ steps to right and $l$ to left then we have the equalities:




          • $r+l=a+b-2$

          • $r-l=a-b-2$


          leading to $r=a-2$ and $l=b$ and showing that there are $binom{a+b-2}{b}$ routes.



          I leave the rest to you.





          Edit:



          If e.g. $a=3$ and $b=2$ then:



          $begin{aligned}Pleft(S_{a+b}=a-bmid S_{2}=2right) & =Pleft(S_{5}=1mid S_{2}=2right)\
          & =Pleft(x_{1}+x_{2}+x_{3}+x_{4}+x_{5}=1mid x_{1}+x_{2}=2right)\
          & =Pleft(2+x_{3}+x_{4}+x_{5}=1mid x_{1}+x_{2}=2right)\
          & =Pleft(x_{3}+x_{4}+x_{5}=-1mid x_{1}+x_{2}=2right)\
          & =Pleft(x_{3}+x_{4}+x_{5}=-1right)\
          & =Pleft(x_{1}+x_{2}+x_{3}=-1right)\
          & =Pleft(S_{3}=-1right)\
          & =Pleft(S_{a+b-2}=a-b-2right)
          end{aligned}
          $



          The $5$-th equality rests on independence.



          The $6$-th equality on the fact that $x_1+x_2+x_3$ and $x_3+x_4+x_5$ have the same distribution.






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            Can you explain me this $P(S_{a+b}=a-b|S_2=2)=P(S_{a+b-2}=a-b-2)$?
            $endgroup$
            – Atstovas
            Jan 10 at 7:52












          • $begingroup$
            I have edit an example ($a=3$ and $b=2$) to make things more clear.
            $endgroup$
            – drhab
            Jan 10 at 9:17










          • $begingroup$
            Now I see! and I have another question. From where I should now that there are $binom{a+b-2}{b}$ routes?
            $endgroup$
            – Atstovas
            Jan 10 at 9:26












          • $begingroup$
            Calculating $P(S_{a+b-2}=a-b-2)$ we must consider the question how many routes exist from $0$ to $a-b-2$ when $a+b-2$ steps are taken. In my answer I showed that there must be $b$ steps to the left. So we must select exactly $b$ of the $a+b-2$ steps to be the steps to the left. There are $binom{a+b-2}{b}$ such selections.
            $endgroup$
            – drhab
            Jan 10 at 9:36













          Your Answer





          StackExchange.ifUsing("editor", function () {
          return StackExchange.using("mathjaxEditing", function () {
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          });
          });
          }, "mathjax-editing");

          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%2f3067282%2frandom-walk-finding-probabilities%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0












          $begingroup$

          You can start with: $$P(S_2=2,S_{a+b}=a-b)=P(S=2)P(S_{a+b}=a-bmid S_2=2)=frac14P(S_{a+b-2}=a-b-2)$$



          Now the question rises: how many ways are there from $0$ to $a-b-2$ taking $a+b-2$ steps?



          If there are $r$ steps to right and $l$ to left then we have the equalities:




          • $r+l=a+b-2$

          • $r-l=a-b-2$


          leading to $r=a-2$ and $l=b$ and showing that there are $binom{a+b-2}{b}$ routes.



          I leave the rest to you.





          Edit:



          If e.g. $a=3$ and $b=2$ then:



          $begin{aligned}Pleft(S_{a+b}=a-bmid S_{2}=2right) & =Pleft(S_{5}=1mid S_{2}=2right)\
          & =Pleft(x_{1}+x_{2}+x_{3}+x_{4}+x_{5}=1mid x_{1}+x_{2}=2right)\
          & =Pleft(2+x_{3}+x_{4}+x_{5}=1mid x_{1}+x_{2}=2right)\
          & =Pleft(x_{3}+x_{4}+x_{5}=-1mid x_{1}+x_{2}=2right)\
          & =Pleft(x_{3}+x_{4}+x_{5}=-1right)\
          & =Pleft(x_{1}+x_{2}+x_{3}=-1right)\
          & =Pleft(S_{3}=-1right)\
          & =Pleft(S_{a+b-2}=a-b-2right)
          end{aligned}
          $



          The $5$-th equality rests on independence.



          The $6$-th equality on the fact that $x_1+x_2+x_3$ and $x_3+x_4+x_5$ have the same distribution.






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            Can you explain me this $P(S_{a+b}=a-b|S_2=2)=P(S_{a+b-2}=a-b-2)$?
            $endgroup$
            – Atstovas
            Jan 10 at 7:52












          • $begingroup$
            I have edit an example ($a=3$ and $b=2$) to make things more clear.
            $endgroup$
            – drhab
            Jan 10 at 9:17










          • $begingroup$
            Now I see! and I have another question. From where I should now that there are $binom{a+b-2}{b}$ routes?
            $endgroup$
            – Atstovas
            Jan 10 at 9:26












          • $begingroup$
            Calculating $P(S_{a+b-2}=a-b-2)$ we must consider the question how many routes exist from $0$ to $a-b-2$ when $a+b-2$ steps are taken. In my answer I showed that there must be $b$ steps to the left. So we must select exactly $b$ of the $a+b-2$ steps to be the steps to the left. There are $binom{a+b-2}{b}$ such selections.
            $endgroup$
            – drhab
            Jan 10 at 9:36


















          0












          $begingroup$

          You can start with: $$P(S_2=2,S_{a+b}=a-b)=P(S=2)P(S_{a+b}=a-bmid S_2=2)=frac14P(S_{a+b-2}=a-b-2)$$



          Now the question rises: how many ways are there from $0$ to $a-b-2$ taking $a+b-2$ steps?



          If there are $r$ steps to right and $l$ to left then we have the equalities:




          • $r+l=a+b-2$

          • $r-l=a-b-2$


          leading to $r=a-2$ and $l=b$ and showing that there are $binom{a+b-2}{b}$ routes.



          I leave the rest to you.





          Edit:



          If e.g. $a=3$ and $b=2$ then:



          $begin{aligned}Pleft(S_{a+b}=a-bmid S_{2}=2right) & =Pleft(S_{5}=1mid S_{2}=2right)\
          & =Pleft(x_{1}+x_{2}+x_{3}+x_{4}+x_{5}=1mid x_{1}+x_{2}=2right)\
          & =Pleft(2+x_{3}+x_{4}+x_{5}=1mid x_{1}+x_{2}=2right)\
          & =Pleft(x_{3}+x_{4}+x_{5}=-1mid x_{1}+x_{2}=2right)\
          & =Pleft(x_{3}+x_{4}+x_{5}=-1right)\
          & =Pleft(x_{1}+x_{2}+x_{3}=-1right)\
          & =Pleft(S_{3}=-1right)\
          & =Pleft(S_{a+b-2}=a-b-2right)
          end{aligned}
          $



          The $5$-th equality rests on independence.



          The $6$-th equality on the fact that $x_1+x_2+x_3$ and $x_3+x_4+x_5$ have the same distribution.






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            Can you explain me this $P(S_{a+b}=a-b|S_2=2)=P(S_{a+b-2}=a-b-2)$?
            $endgroup$
            – Atstovas
            Jan 10 at 7:52












          • $begingroup$
            I have edit an example ($a=3$ and $b=2$) to make things more clear.
            $endgroup$
            – drhab
            Jan 10 at 9:17










          • $begingroup$
            Now I see! and I have another question. From where I should now that there are $binom{a+b-2}{b}$ routes?
            $endgroup$
            – Atstovas
            Jan 10 at 9:26












          • $begingroup$
            Calculating $P(S_{a+b-2}=a-b-2)$ we must consider the question how many routes exist from $0$ to $a-b-2$ when $a+b-2$ steps are taken. In my answer I showed that there must be $b$ steps to the left. So we must select exactly $b$ of the $a+b-2$ steps to be the steps to the left. There are $binom{a+b-2}{b}$ such selections.
            $endgroup$
            – drhab
            Jan 10 at 9:36
















          0












          0








          0





          $begingroup$

          You can start with: $$P(S_2=2,S_{a+b}=a-b)=P(S=2)P(S_{a+b}=a-bmid S_2=2)=frac14P(S_{a+b-2}=a-b-2)$$



          Now the question rises: how many ways are there from $0$ to $a-b-2$ taking $a+b-2$ steps?



          If there are $r$ steps to right and $l$ to left then we have the equalities:




          • $r+l=a+b-2$

          • $r-l=a-b-2$


          leading to $r=a-2$ and $l=b$ and showing that there are $binom{a+b-2}{b}$ routes.



          I leave the rest to you.





          Edit:



          If e.g. $a=3$ and $b=2$ then:



          $begin{aligned}Pleft(S_{a+b}=a-bmid S_{2}=2right) & =Pleft(S_{5}=1mid S_{2}=2right)\
          & =Pleft(x_{1}+x_{2}+x_{3}+x_{4}+x_{5}=1mid x_{1}+x_{2}=2right)\
          & =Pleft(2+x_{3}+x_{4}+x_{5}=1mid x_{1}+x_{2}=2right)\
          & =Pleft(x_{3}+x_{4}+x_{5}=-1mid x_{1}+x_{2}=2right)\
          & =Pleft(x_{3}+x_{4}+x_{5}=-1right)\
          & =Pleft(x_{1}+x_{2}+x_{3}=-1right)\
          & =Pleft(S_{3}=-1right)\
          & =Pleft(S_{a+b-2}=a-b-2right)
          end{aligned}
          $



          The $5$-th equality rests on independence.



          The $6$-th equality on the fact that $x_1+x_2+x_3$ and $x_3+x_4+x_5$ have the same distribution.






          share|cite|improve this answer











          $endgroup$



          You can start with: $$P(S_2=2,S_{a+b}=a-b)=P(S=2)P(S_{a+b}=a-bmid S_2=2)=frac14P(S_{a+b-2}=a-b-2)$$



          Now the question rises: how many ways are there from $0$ to $a-b-2$ taking $a+b-2$ steps?



          If there are $r$ steps to right and $l$ to left then we have the equalities:




          • $r+l=a+b-2$

          • $r-l=a-b-2$


          leading to $r=a-2$ and $l=b$ and showing that there are $binom{a+b-2}{b}$ routes.



          I leave the rest to you.





          Edit:



          If e.g. $a=3$ and $b=2$ then:



          $begin{aligned}Pleft(S_{a+b}=a-bmid S_{2}=2right) & =Pleft(S_{5}=1mid S_{2}=2right)\
          & =Pleft(x_{1}+x_{2}+x_{3}+x_{4}+x_{5}=1mid x_{1}+x_{2}=2right)\
          & =Pleft(2+x_{3}+x_{4}+x_{5}=1mid x_{1}+x_{2}=2right)\
          & =Pleft(x_{3}+x_{4}+x_{5}=-1mid x_{1}+x_{2}=2right)\
          & =Pleft(x_{3}+x_{4}+x_{5}=-1right)\
          & =Pleft(x_{1}+x_{2}+x_{3}=-1right)\
          & =Pleft(S_{3}=-1right)\
          & =Pleft(S_{a+b-2}=a-b-2right)
          end{aligned}
          $



          The $5$-th equality rests on independence.



          The $6$-th equality on the fact that $x_1+x_2+x_3$ and $x_3+x_4+x_5$ have the same distribution.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Jan 10 at 9:16

























          answered Jan 9 at 10:26









          drhabdrhab

          100k544130




          100k544130












          • $begingroup$
            Can you explain me this $P(S_{a+b}=a-b|S_2=2)=P(S_{a+b-2}=a-b-2)$?
            $endgroup$
            – Atstovas
            Jan 10 at 7:52












          • $begingroup$
            I have edit an example ($a=3$ and $b=2$) to make things more clear.
            $endgroup$
            – drhab
            Jan 10 at 9:17










          • $begingroup$
            Now I see! and I have another question. From where I should now that there are $binom{a+b-2}{b}$ routes?
            $endgroup$
            – Atstovas
            Jan 10 at 9:26












          • $begingroup$
            Calculating $P(S_{a+b-2}=a-b-2)$ we must consider the question how many routes exist from $0$ to $a-b-2$ when $a+b-2$ steps are taken. In my answer I showed that there must be $b$ steps to the left. So we must select exactly $b$ of the $a+b-2$ steps to be the steps to the left. There are $binom{a+b-2}{b}$ such selections.
            $endgroup$
            – drhab
            Jan 10 at 9:36




















          • $begingroup$
            Can you explain me this $P(S_{a+b}=a-b|S_2=2)=P(S_{a+b-2}=a-b-2)$?
            $endgroup$
            – Atstovas
            Jan 10 at 7:52












          • $begingroup$
            I have edit an example ($a=3$ and $b=2$) to make things more clear.
            $endgroup$
            – drhab
            Jan 10 at 9:17










          • $begingroup$
            Now I see! and I have another question. From where I should now that there are $binom{a+b-2}{b}$ routes?
            $endgroup$
            – Atstovas
            Jan 10 at 9:26












          • $begingroup$
            Calculating $P(S_{a+b-2}=a-b-2)$ we must consider the question how many routes exist from $0$ to $a-b-2$ when $a+b-2$ steps are taken. In my answer I showed that there must be $b$ steps to the left. So we must select exactly $b$ of the $a+b-2$ steps to be the steps to the left. There are $binom{a+b-2}{b}$ such selections.
            $endgroup$
            – drhab
            Jan 10 at 9:36


















          $begingroup$
          Can you explain me this $P(S_{a+b}=a-b|S_2=2)=P(S_{a+b-2}=a-b-2)$?
          $endgroup$
          – Atstovas
          Jan 10 at 7:52






          $begingroup$
          Can you explain me this $P(S_{a+b}=a-b|S_2=2)=P(S_{a+b-2}=a-b-2)$?
          $endgroup$
          – Atstovas
          Jan 10 at 7:52














          $begingroup$
          I have edit an example ($a=3$ and $b=2$) to make things more clear.
          $endgroup$
          – drhab
          Jan 10 at 9:17




          $begingroup$
          I have edit an example ($a=3$ and $b=2$) to make things more clear.
          $endgroup$
          – drhab
          Jan 10 at 9:17












          $begingroup$
          Now I see! and I have another question. From where I should now that there are $binom{a+b-2}{b}$ routes?
          $endgroup$
          – Atstovas
          Jan 10 at 9:26






          $begingroup$
          Now I see! and I have another question. From where I should now that there are $binom{a+b-2}{b}$ routes?
          $endgroup$
          – Atstovas
          Jan 10 at 9:26














          $begingroup$
          Calculating $P(S_{a+b-2}=a-b-2)$ we must consider the question how many routes exist from $0$ to $a-b-2$ when $a+b-2$ steps are taken. In my answer I showed that there must be $b$ steps to the left. So we must select exactly $b$ of the $a+b-2$ steps to be the steps to the left. There are $binom{a+b-2}{b}$ such selections.
          $endgroup$
          – drhab
          Jan 10 at 9:36






          $begingroup$
          Calculating $P(S_{a+b-2}=a-b-2)$ we must consider the question how many routes exist from $0$ to $a-b-2$ when $a+b-2$ steps are taken. In my answer I showed that there must be $b$ steps to the left. So we must select exactly $b$ of the $a+b-2$ steps to be the steps to the left. There are $binom{a+b-2}{b}$ such selections.
          $endgroup$
          – drhab
          Jan 10 at 9:36




















          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%2f3067282%2frandom-walk-finding-probabilities%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

          MongoDB - Not Authorized To Execute Command

          How to fix TextFormField cause rebuild widget in Flutter

          Npm cannot find a required file even through it is in the searched directory