Gambler's Ruin - Probability of Losing in t Steps












3












$begingroup$


I would be surprised if this hasn't been asked before, but I cannot find it anywhere.



Suppose we're given an instance of the gambler's ruin problem where the gambler starts off with $i$ dollars and at every step she wins 1 dollar with probability $p$ and loses a dollar with probability $q = 1 - p$. The gambler stops when she has lost all her money, or when she has $n$ dollars. I am interested in the probability that the gambler loses in $t$ steps.



I know how to find the expected number of steps before reaching either absorbing state, and how to solve the probability that she loses before winning $n$ dollars, but this one is eluding me. Let $P_{i, t}$ be the probability that the gambler goes broke in $t$ steps given that she started with $i$ dollars. I have set up the recurrence:
$$ P_{i, t} = qP_{i-1, t-1} + pP_{i+1, t-1}$$
and we know that $P_{0, j} = 1$ and $P_{n, j} = 0$for all $j$, and $P_{i, 0} = 0$ for all $i > 0$. I'm struggling to solve this two dimensional recurrence.



If it turns out to be too hard to give closed form solutions for this, can we give tighter bounds than just the probability that the gambler ever loses?










share|cite|improve this question











$endgroup$

















    3












    $begingroup$


    I would be surprised if this hasn't been asked before, but I cannot find it anywhere.



    Suppose we're given an instance of the gambler's ruin problem where the gambler starts off with $i$ dollars and at every step she wins 1 dollar with probability $p$ and loses a dollar with probability $q = 1 - p$. The gambler stops when she has lost all her money, or when she has $n$ dollars. I am interested in the probability that the gambler loses in $t$ steps.



    I know how to find the expected number of steps before reaching either absorbing state, and how to solve the probability that she loses before winning $n$ dollars, but this one is eluding me. Let $P_{i, t}$ be the probability that the gambler goes broke in $t$ steps given that she started with $i$ dollars. I have set up the recurrence:
    $$ P_{i, t} = qP_{i-1, t-1} + pP_{i+1, t-1}$$
    and we know that $P_{0, j} = 1$ and $P_{n, j} = 0$for all $j$, and $P_{i, 0} = 0$ for all $i > 0$. I'm struggling to solve this two dimensional recurrence.



    If it turns out to be too hard to give closed form solutions for this, can we give tighter bounds than just the probability that the gambler ever loses?










    share|cite|improve this question











    $endgroup$















      3












      3








      3


      2



      $begingroup$


      I would be surprised if this hasn't been asked before, but I cannot find it anywhere.



      Suppose we're given an instance of the gambler's ruin problem where the gambler starts off with $i$ dollars and at every step she wins 1 dollar with probability $p$ and loses a dollar with probability $q = 1 - p$. The gambler stops when she has lost all her money, or when she has $n$ dollars. I am interested in the probability that the gambler loses in $t$ steps.



      I know how to find the expected number of steps before reaching either absorbing state, and how to solve the probability that she loses before winning $n$ dollars, but this one is eluding me. Let $P_{i, t}$ be the probability that the gambler goes broke in $t$ steps given that she started with $i$ dollars. I have set up the recurrence:
      $$ P_{i, t} = qP_{i-1, t-1} + pP_{i+1, t-1}$$
      and we know that $P_{0, j} = 1$ and $P_{n, j} = 0$for all $j$, and $P_{i, 0} = 0$ for all $i > 0$. I'm struggling to solve this two dimensional recurrence.



      If it turns out to be too hard to give closed form solutions for this, can we give tighter bounds than just the probability that the gambler ever loses?










      share|cite|improve this question











      $endgroup$




      I would be surprised if this hasn't been asked before, but I cannot find it anywhere.



      Suppose we're given an instance of the gambler's ruin problem where the gambler starts off with $i$ dollars and at every step she wins 1 dollar with probability $p$ and loses a dollar with probability $q = 1 - p$. The gambler stops when she has lost all her money, or when she has $n$ dollars. I am interested in the probability that the gambler loses in $t$ steps.



      I know how to find the expected number of steps before reaching either absorbing state, and how to solve the probability that she loses before winning $n$ dollars, but this one is eluding me. Let $P_{i, t}$ be the probability that the gambler goes broke in $t$ steps given that she started with $i$ dollars. I have set up the recurrence:
      $$ P_{i, t} = qP_{i-1, t-1} + pP_{i+1, t-1}$$
      and we know that $P_{0, j} = 1$ and $P_{n, j} = 0$for all $j$, and $P_{i, 0} = 0$ for all $i > 0$. I'm struggling to solve this two dimensional recurrence.



      If it turns out to be too hard to give closed form solutions for this, can we give tighter bounds than just the probability that the gambler ever loses?







      probability markov-chains martingales random-walk






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Feb 11 '17 at 1:20







      Andrew S

















      asked Feb 10 '17 at 22:51









      Andrew SAndrew S

      585




      585






















          2 Answers
          2






          active

          oldest

          votes


















          0












          $begingroup$

          I do not know if I misinterpret your question, but I think the probability of going to ruin in $t$ steps is just the probability of losing $i$ times more than winning.
          Let $m$ be the number of wins, and $n$ be the number of losses, so obviously $m+n=t$



          To lose means $n=m+i$, so $n=frac{t-i}{2}$ and $m=frac{t-3i}{2}$



          $p_0(t) = p^{frac{t-3i}{2}}cdot q^{frac{t-i}{2}}$



          or if you mean "losing in $leq t$ steps", this would change of course to



          $P_0(leq t) = sum_{k=i}^{t} p_0(k)$






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            Hi, do we need to consider which state go back and which go forward?
            $endgroup$
            – maple
            Jun 1 '18 at 9:01










          • $begingroup$
            I think when I asked this question I would have been satisfied with answering either exactly t steps or at most t steps. Either way, your solution seems to lose part of the nuance of the question. There are lots of invalid walks that are captured by "losing i times more than winning" such as walks which have the gambler going into negative money, or reaching n dollars and continuing to play.
            $endgroup$
            – Andrew S
            Jun 8 '18 at 23:47



















          0












          $begingroup$

          The first (edited) answer is the correct probability for reaching 0 Dollars at exactly step t. That is an incorrect definition of ruin as @Andrew S points out.



          It is not the probability of reaching 0 Dollars for the first time without having previously reached n Dollars, during t steps or fewer steps if 0 or n Dollars is reached earlier, which is the correct definition of ruin.



          This is a tough problem. I do not know of a closed solution...only a closed approximation and a path-counting summing algorithm which counts and sums only the permitted paths from i Dollars to 0 Dollars for each step from 1 to t.






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            I'll settle for a closed approximation if you have it.
            $endgroup$
            – Andrew S
            Jan 18 at 3:32












          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%2f2138771%2fgamblers-ruin-probability-of-losing-in-t-steps%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0












          $begingroup$

          I do not know if I misinterpret your question, but I think the probability of going to ruin in $t$ steps is just the probability of losing $i$ times more than winning.
          Let $m$ be the number of wins, and $n$ be the number of losses, so obviously $m+n=t$



          To lose means $n=m+i$, so $n=frac{t-i}{2}$ and $m=frac{t-3i}{2}$



          $p_0(t) = p^{frac{t-3i}{2}}cdot q^{frac{t-i}{2}}$



          or if you mean "losing in $leq t$ steps", this would change of course to



          $P_0(leq t) = sum_{k=i}^{t} p_0(k)$






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            Hi, do we need to consider which state go back and which go forward?
            $endgroup$
            – maple
            Jun 1 '18 at 9:01










          • $begingroup$
            I think when I asked this question I would have been satisfied with answering either exactly t steps or at most t steps. Either way, your solution seems to lose part of the nuance of the question. There are lots of invalid walks that are captured by "losing i times more than winning" such as walks which have the gambler going into negative money, or reaching n dollars and continuing to play.
            $endgroup$
            – Andrew S
            Jun 8 '18 at 23:47
















          0












          $begingroup$

          I do not know if I misinterpret your question, but I think the probability of going to ruin in $t$ steps is just the probability of losing $i$ times more than winning.
          Let $m$ be the number of wins, and $n$ be the number of losses, so obviously $m+n=t$



          To lose means $n=m+i$, so $n=frac{t-i}{2}$ and $m=frac{t-3i}{2}$



          $p_0(t) = p^{frac{t-3i}{2}}cdot q^{frac{t-i}{2}}$



          or if you mean "losing in $leq t$ steps", this would change of course to



          $P_0(leq t) = sum_{k=i}^{t} p_0(k)$






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            Hi, do we need to consider which state go back and which go forward?
            $endgroup$
            – maple
            Jun 1 '18 at 9:01










          • $begingroup$
            I think when I asked this question I would have been satisfied with answering either exactly t steps or at most t steps. Either way, your solution seems to lose part of the nuance of the question. There are lots of invalid walks that are captured by "losing i times more than winning" such as walks which have the gambler going into negative money, or reaching n dollars and continuing to play.
            $endgroup$
            – Andrew S
            Jun 8 '18 at 23:47














          0












          0








          0





          $begingroup$

          I do not know if I misinterpret your question, but I think the probability of going to ruin in $t$ steps is just the probability of losing $i$ times more than winning.
          Let $m$ be the number of wins, and $n$ be the number of losses, so obviously $m+n=t$



          To lose means $n=m+i$, so $n=frac{t-i}{2}$ and $m=frac{t-3i}{2}$



          $p_0(t) = p^{frac{t-3i}{2}}cdot q^{frac{t-i}{2}}$



          or if you mean "losing in $leq t$ steps", this would change of course to



          $P_0(leq t) = sum_{k=i}^{t} p_0(k)$






          share|cite|improve this answer











          $endgroup$



          I do not know if I misinterpret your question, but I think the probability of going to ruin in $t$ steps is just the probability of losing $i$ times more than winning.
          Let $m$ be the number of wins, and $n$ be the number of losses, so obviously $m+n=t$



          To lose means $n=m+i$, so $n=frac{t-i}{2}$ and $m=frac{t-3i}{2}$



          $p_0(t) = p^{frac{t-3i}{2}}cdot q^{frac{t-i}{2}}$



          or if you mean "losing in $leq t$ steps", this would change of course to



          $P_0(leq t) = sum_{k=i}^{t} p_0(k)$







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Jan 2 at 15:26









          Namaste

          1




          1










          answered Jul 15 '17 at 10:55









          BlochBloch

          5317




          5317












          • $begingroup$
            Hi, do we need to consider which state go back and which go forward?
            $endgroup$
            – maple
            Jun 1 '18 at 9:01










          • $begingroup$
            I think when I asked this question I would have been satisfied with answering either exactly t steps or at most t steps. Either way, your solution seems to lose part of the nuance of the question. There are lots of invalid walks that are captured by "losing i times more than winning" such as walks which have the gambler going into negative money, or reaching n dollars and continuing to play.
            $endgroup$
            – Andrew S
            Jun 8 '18 at 23:47


















          • $begingroup$
            Hi, do we need to consider which state go back and which go forward?
            $endgroup$
            – maple
            Jun 1 '18 at 9:01










          • $begingroup$
            I think when I asked this question I would have been satisfied with answering either exactly t steps or at most t steps. Either way, your solution seems to lose part of the nuance of the question. There are lots of invalid walks that are captured by "losing i times more than winning" such as walks which have the gambler going into negative money, or reaching n dollars and continuing to play.
            $endgroup$
            – Andrew S
            Jun 8 '18 at 23:47
















          $begingroup$
          Hi, do we need to consider which state go back and which go forward?
          $endgroup$
          – maple
          Jun 1 '18 at 9:01




          $begingroup$
          Hi, do we need to consider which state go back and which go forward?
          $endgroup$
          – maple
          Jun 1 '18 at 9:01












          $begingroup$
          I think when I asked this question I would have been satisfied with answering either exactly t steps or at most t steps. Either way, your solution seems to lose part of the nuance of the question. There are lots of invalid walks that are captured by "losing i times more than winning" such as walks which have the gambler going into negative money, or reaching n dollars and continuing to play.
          $endgroup$
          – Andrew S
          Jun 8 '18 at 23:47




          $begingroup$
          I think when I asked this question I would have been satisfied with answering either exactly t steps or at most t steps. Either way, your solution seems to lose part of the nuance of the question. There are lots of invalid walks that are captured by "losing i times more than winning" such as walks which have the gambler going into negative money, or reaching n dollars and continuing to play.
          $endgroup$
          – Andrew S
          Jun 8 '18 at 23:47











          0












          $begingroup$

          The first (edited) answer is the correct probability for reaching 0 Dollars at exactly step t. That is an incorrect definition of ruin as @Andrew S points out.



          It is not the probability of reaching 0 Dollars for the first time without having previously reached n Dollars, during t steps or fewer steps if 0 or n Dollars is reached earlier, which is the correct definition of ruin.



          This is a tough problem. I do not know of a closed solution...only a closed approximation and a path-counting summing algorithm which counts and sums only the permitted paths from i Dollars to 0 Dollars for each step from 1 to t.






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            I'll settle for a closed approximation if you have it.
            $endgroup$
            – Andrew S
            Jan 18 at 3:32
















          0












          $begingroup$

          The first (edited) answer is the correct probability for reaching 0 Dollars at exactly step t. That is an incorrect definition of ruin as @Andrew S points out.



          It is not the probability of reaching 0 Dollars for the first time without having previously reached n Dollars, during t steps or fewer steps if 0 or n Dollars is reached earlier, which is the correct definition of ruin.



          This is a tough problem. I do not know of a closed solution...only a closed approximation and a path-counting summing algorithm which counts and sums only the permitted paths from i Dollars to 0 Dollars for each step from 1 to t.






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            I'll settle for a closed approximation if you have it.
            $endgroup$
            – Andrew S
            Jan 18 at 3:32














          0












          0








          0





          $begingroup$

          The first (edited) answer is the correct probability for reaching 0 Dollars at exactly step t. That is an incorrect definition of ruin as @Andrew S points out.



          It is not the probability of reaching 0 Dollars for the first time without having previously reached n Dollars, during t steps or fewer steps if 0 or n Dollars is reached earlier, which is the correct definition of ruin.



          This is a tough problem. I do not know of a closed solution...only a closed approximation and a path-counting summing algorithm which counts and sums only the permitted paths from i Dollars to 0 Dollars for each step from 1 to t.






          share|cite|improve this answer









          $endgroup$



          The first (edited) answer is the correct probability for reaching 0 Dollars at exactly step t. That is an incorrect definition of ruin as @Andrew S points out.



          It is not the probability of reaching 0 Dollars for the first time without having previously reached n Dollars, during t steps or fewer steps if 0 or n Dollars is reached earlier, which is the correct definition of ruin.



          This is a tough problem. I do not know of a closed solution...only a closed approximation and a path-counting summing algorithm which counts and sums only the permitted paths from i Dollars to 0 Dollars for each step from 1 to t.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Jan 2 at 15:55









          artbenisartbenis

          112




          112












          • $begingroup$
            I'll settle for a closed approximation if you have it.
            $endgroup$
            – Andrew S
            Jan 18 at 3:32


















          • $begingroup$
            I'll settle for a closed approximation if you have it.
            $endgroup$
            – Andrew S
            Jan 18 at 3:32
















          $begingroup$
          I'll settle for a closed approximation if you have it.
          $endgroup$
          – Andrew S
          Jan 18 at 3:32




          $begingroup$
          I'll settle for a closed approximation if you have it.
          $endgroup$
          – Andrew S
          Jan 18 at 3:32


















          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%2f2138771%2fgamblers-ruin-probability-of-losing-in-t-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

          Probability when a professor distributes a quiz and homework assignment to a class of n students.

          Aardman Animations

          Are they similar matrix