<?xml version="1.0" encoding="iso-8859-1" ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" 
"http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd" > 
<?xml-stylesheet type="text/css" href="489f10h5_soln.css"?> 
<html  
xmlns="http://www.w3.org/1999/xhtml"  
><head><title>Math489/889 Stochastic Processes and Advanced Mathematical Finance
Homework 5 </title> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
<meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)" /> 
<meta name="originator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)" /> 
<!-- xhtml,mozilla --> 
<meta name="src" content="489f10h5_soln.tex" /> 
<meta name="date" content="2010-10-29 09:30:00" /> 
<link rel="stylesheet" type="text/css" href="489f10h5_soln.css" /> 
</head><body 
>
   <div class="maketitle">
                                                                          

                                                                          
                                                                          

                                                                          

<h2 class="titleHead">Math489/889<br />
Stochastic Processes and<br />
Advanced Mathematical Finance<br />
Homework 5 </h2>
<div class="author" ><span 
class="cmr-12x-x-120">Steve Dunbar</span></div>
<br />
<div class="date" ><span 
class="cmr-12x-x-120">Due Wed, October 6, 2010</span></div>
   </div>
      <ol  class="enumerate1" >
      <li 
  class="enumerate" id="x1-3x1">Use  a  fair  coin,  say  a  penny,  to  play  a  simple  coin-flipping  game,
      as described throughout the chapter. Use the chart in the section to
      record the outcomes of the game. Save your chart as you will use this
      random record several times later in the course to test and illustrate
      some of the theorems. Each &#x201C;gambler&#x201D; flips the coin, and records a
      <!--l. 25--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mo 
class="MathClass-bin">+</mo><mn>1</mn></mrow></math>
      (gains $1) if the coin comes up &#x201C;Heads&#x201D; and records <!--l. 26--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></math>
      (loses $1) if the coin comes up &#x201C;Tails&#x201D;. On the chart, the player records
      the outcome of each flip by recording the flip number, the outcome as
      &#x201C;H&#x201D; or &#x201C;T&#x201D; and keeps track of the cumulative fortune of the gambler so
      far. It is best to keep these records in a neat chart, since we will refer to
      them later. Each &#x201C;gambler&#x201D; should record <!--l. 31--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mn>1</mn><mn>0</mn><mn>0</mn></mrow></math>
      flips, which takes about 10 to 20 minutes.
      <!--l. 34--><p class="noindent" >For the homework, to turn in:
                                                                          

                                                                          
           </p><ol  class="enumerate2" >
           <li 
  class="enumerate" id="x1-5x1">Record the total number of heads, the total number of tails, and
           the difference of the number of heads and tails.
           </li>
           <li 
  class="enumerate" id="x1-7x2">Record whether the coin flip game reached &#x201C;victory&#x201D; <!--l. 40--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mo 
class="MathClass-bin">+</mo><mn>1</mn><mn>0</mn></mrow></math>
           before reaching <!--l. 41--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn><mn>0</mn></mrow></math>,
           or &#x201C;ruin&#x201D; or conversely reached ruin before reaching &#x201C;victory&#x201D;, or
           reached neither in <!--l. 43--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mn>1</mn><mn>0</mn><mn>0</mn></mrow></math>
           flips.
           </li>
           <li 
  class="enumerate" id="x1-9x3">Record the number of flips to first reach either <!--l. 44--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mo 
class="MathClass-bin">+</mo><mn>1</mn><mn>0</mn></mrow></math>
           or <!--l. 45--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn><mn>0</mn></mrow></math>
           or state that the game reached neither.
           </li>
           <li 
  class="enumerate" id="x1-11x4">Record the total number of flips out of 100, i.e the total time, that
           the number of Heads exceeded the number of Tails.</li></ol>
      </li>
      <li 
  class="enumerate" id="x1-13x2">
           <ol  class="enumerate2" >
           <li 
  class="enumerate" id="x1-15x1">For <!--l. 54--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>T</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <mn>1</mn><mn>0</mn></math>
           and <!--l. 54--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>a</mi> <mo 
class="MathClass-rel">=</mo> <mn>2</mn><mn>0</mn></math>,
           draw a graph of the probability of ruin as a function of the probability
           <!--l. 55--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>q</mi></math>.
           <!--l. 58--><p class="noindent" ><img 
src="489f10h5_soln/problem1a.jpg" alt="PIC"  
 />
           </p><!--l. 60--><p class="noindent" >This graph was produced with the Maple command <span 
class="cmtt-12">plot(subs(T0</span>
           <span 
class="cmtt-12">= 10, a =</span>
           <span 
class="cmtt-12">20, p = 1-q, Ruin), q = 0 .. 1) </span>where the expression <span 
class="cmtt-12">Ruin</span>
           was defined with <span class="obeylines-h"><span class="verb"><span 
class="cmtt-12">&#x00A0;Ruin</span><span 
class="cmtt-12">&#x00A0;:=</span><span 
class="cmtt-12">&#x00A0;((q/p)^a-(q/p)^T0)/((q/p)^a-1)</span><span 
class="cmtt-12">&#x00A0;</span></span></span>
           </p></li>
           <li 
  class="enumerate" id="x1-17x2">For <!--l. 66--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>a</mi> <mo 
class="MathClass-rel">=</mo> <mn>2</mn><mn>0</mn></math>
           and <!--l. 66--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>q</mi> <mo 
class="MathClass-rel">=</mo> <mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>5</mn><mn>5</mn></math>
           draw a graph of the probability ruin as a function of <!--l. 67--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>T</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
></math>.
           <!--l. 69--><p class="noindent" ><img 
src="489f10h5_soln/problem1b.jpg" alt="PIC"  
 />
           </p><!--l. 71--><p class="noindent" >This graph was produced with the Maple command <span 
class="cmtt-12">plot(subs(a</span>
           <span 
class="cmtt-12">= 20, p = .45, q = .55, Ruin), T0 = 0 .. 20)</span>
                                                                          

                                                                          
           </p></li>
           <li 
  class="enumerate" id="x1-19x3">For <!--l. 76--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>a</mi> <mo 
class="MathClass-rel">=</mo> <mn>2</mn><mn>0</mn></math>
           and <!--l. 76--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>q</mi> <mo 
class="MathClass-rel">=</mo> <mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>4</mn><mn>5</mn></math>
           draw a graph of the probability of ruin as a function of <!--l. 77--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>T</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
></math>.
           <!--l. 79--><p class="noindent" ><img 
src="489f10h5_soln/problem1c.jpg" alt="PIC"  
 />
           </p><!--l. 81--><p class="noindent" >This graph was produced with the Maple command <span 
class="cmtt-12">plot(subs(a</span>
           <span 
class="cmtt-12">= 20, p = .55, q = .45, Ruin), T0 = 0 .. 20)</span>
</p>
           </li></ol>
      </li>
      <li 
  class="enumerate" id="x1-21x3">A gambler starts with $2 and wants to win $2 more to get to a total of $4
      before being ruined by losing all his money. He plays a coin-flipping game,
      with a coin that changes with his fortune.
           <ol  class="enumerate2" >
           <li 
  class="enumerate" id="x1-23x1">If the gambler has $2 he plays with a coin that gives probability
           <!--l. 95--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>p</mi> <mo 
class="MathClass-rel">=</mo> <mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>2</mn></math>
           of winning a dollar and probability <!--l. 96--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>q</mi> <mo 
class="MathClass-rel">=</mo> <mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>2</mn></math>
           of losing a dollar.
           </li>
           <li 
  class="enumerate" id="x1-25x2">If the gambler has $3 he plays with a coin that gives probability
           <!--l. 99--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>p</mi> <mo 
class="MathClass-rel">=</mo> <mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>4</mn></math>
           of winning a dollar and probability <!--l. 100--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>q</mi> <mo 
class="MathClass-rel">=</mo> <mn>3</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>4</mn></math>
           of losing a dollar.
           </li>
           <li 
  class="enumerate" id="x1-27x3">If the gambler has $1 he plays with a coin that gives probability
           <!--l. 103--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>p</mi> <mo 
class="MathClass-rel">=</mo> <mn>3</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>4</mn></math>
           of winning a dollar and probability <!--l. 104--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>q</mi> <mo 
class="MathClass-rel">=</mo> <mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>4</mn></math>
           of losing a dollar.</li></ol>
      <!--l. 106--><p class="noindent" >Use &#x201C;first step analysis&#x201D; to write three equations in three unknowns (with
      two additional boundary conditions) that give the probability that
      the gambler will be ruined. Solve the equations to find the ruin
      probability.
      </p><!--l. 111--><p class="noindent" ><span 
class="cmbx-12">Solution: </span>The first step equations for the ruin are:
                                                                          

                                                                          
      </p><!--tex4ht:inline--><!--l. 119--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mtable 
columnalign="left" class="align-star">
                        <mtr><mtd 
columnalign="right" class="align-odd"><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>4</mn></mrow></msub 
></mtd>                        <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mn>0</mn><mspace width="2em"/></mtd>                                       <mtd 
columnalign="right" class="align-label"></mtd>                        <mtd 
class="align-label">
                        <mspace width="2em"/></mtd></mtr><mtr><mtd 
columnalign="right" class="align-odd"><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>3</mn></mrow></msub 
></mtd>                        <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>3</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>4</mn></mrow><mo 
class="MathClass-close">)</mo></mrow><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>2</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>4</mn></mrow><mo 
class="MathClass-close">)</mo></mrow><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>4</mn></mrow></msub 
><mspace width="2em"/></mtd>                        <mtd 
columnalign="right" class="align-label"></mtd>                        <mtd 
class="align-label">
                        <mspace width="2em"/></mtd></mtr><mtr><mtd 
columnalign="right" class="align-odd"><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>2</mn></mrow></msub 
></mtd>                        <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>2</mn></mrow><mo 
class="MathClass-close">)</mo></mrow><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>1</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>2</mn></mrow><mo 
class="MathClass-close">)</mo></mrow><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>3</mn></mrow></msub 
><mspace width="2em"/></mtd>                        <mtd 
columnalign="right" class="align-label"></mtd>                        <mtd 
class="align-label">
                        <mspace width="2em"/></mtd></mtr><mtr><mtd 
columnalign="right" class="align-odd"><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>1</mn></mrow></msub 
></mtd>                        <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>4</mn></mrow><mo 
class="MathClass-close">)</mo></mrow><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>3</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>4</mn></mrow><mo 
class="MathClass-close">)</mo></mrow><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>3</mn></mrow></msub 
><mspace width="2em"/></mtd>                        <mtd 
columnalign="right" class="align-label"></mtd>                        <mtd 
class="align-label">
                        <mspace width="2em"/></mtd></mtr><mtr><mtd 
columnalign="right" class="align-odd"><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
></mtd>                        <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mn>1</mn><mspace width="2em"/></mtd>                                       <mtd 
columnalign="right" class="align-label"></mtd>                        <mtd 
class="align-label">
                        <mspace width="2em"/></mtd></mtr><mtr><mtd 
columnalign="right" class="align-odd"></mtd>                         <mtd 
class="align-even"><mspace width="2em"/></mtd>                                           <mtd 
columnalign="right" class="align-label">
</mtd></mtr></mtable></math>
      <!--l. 120--><p class="noindent" >The solution of the equations is:
      <!--l. 120--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>1</mn></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <mn>5</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>8</mn></mrow></math>,
      <!--l. 120--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>2</mn></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>2</mn></mrow></math>,
      <!--l. 121--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>3</mn></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <mn>3</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>8</mn></mrow></math>.
      </p></li>
      <li 
  class="enumerate" id="x1-29x4">A gambler plays a coin flipping game in which the probability of winning on a flip
      is <!--l. 125--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>p</mi> <mo 
class="MathClass-rel">=</mo> <mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>4</mn></mrow></math>
      and the probability of losing on a flip is
      <!--l. 126--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>q</mi> <mo 
class="MathClass-rel">=</mo> <mn>1</mn> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>p</mi> <mo 
class="MathClass-rel">=</mo> <mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>6</mn></mrow></math>.
      The gambler wants to reach the victory level of $16 before being ruined with
      a fortune of $0. The gambler starts with $8, bets $2 on each flip when the
      fortune is $6,$8,$10 and bets $4 when the fortune is $4 or $12 Compute the
      probability of ruin in this game.
      <!--l. 132--><p class="noindent" ><span 
class="cmbx-12">Solution: </span>Writing the set of first-step equations:
                                                                          

                                                                          
      </p><!--tex4ht:inline--><!--l. 141--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mtable 
columnalign="left" class="align-star">
                         <mtr><mtd 
columnalign="right" class="align-odd"><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>1</mn><mn>6</mn></mrow></msub 
></mtd>                         <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mn>0</mn><mspace width="2em"/></mtd>                                     <mtd 
columnalign="right" class="align-label"></mtd>                         <mtd 
class="align-label">
                         <mspace width="2em"/></mtd></mtr><mtr><mtd 
columnalign="right" class="align-odd"><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>1</mn><mn>2</mn></mrow></msub 
></mtd>                         <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>6</mn><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>8</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>4</mn><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>1</mn><mn>6</mn></mrow></msub 
><mspace width="2em"/></mtd>                         <mtd 
columnalign="right" class="align-label"></mtd>                         <mtd 
class="align-label">
                         <mspace width="2em"/></mtd></mtr><mtr><mtd 
columnalign="right" class="align-odd"><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>1</mn><mn>0</mn></mrow></msub 
></mtd>                         <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>6</mn><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>8</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>4</mn><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>1</mn><mn>2</mn></mrow></msub 
><mspace width="2em"/></mtd>                         <mtd 
columnalign="right" class="align-label"></mtd>                         <mtd 
class="align-label">
                         <mspace width="2em"/></mtd></mtr><mtr><mtd 
columnalign="right" class="align-odd"><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>8</mn></mrow></msub 
></mtd>                          <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>6</mn><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>6</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>4</mn><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>1</mn><mn>0</mn></mrow></msub 
><mspace width="2em"/></mtd>                         <mtd 
columnalign="right" class="align-label"></mtd>                         <mtd 
class="align-label">
                         <mspace width="2em"/></mtd></mtr><mtr><mtd 
columnalign="right" class="align-odd"><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>6</mn></mrow></msub 
></mtd>                          <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>6</mn><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>4</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>4</mn><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>8</mn></mrow></msub 
><mspace width="2em"/></mtd>                          <mtd 
columnalign="right" class="align-label"></mtd>                         <mtd 
class="align-label">
                         <mspace width="2em"/></mtd></mtr><mtr><mtd 
columnalign="right" class="align-odd"><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>4</mn></mrow></msub 
></mtd>                          <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>6</mn><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>4</mn><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>8</mn></mrow></msub 
><mspace width="2em"/></mtd>                          <mtd 
columnalign="right" class="align-label"></mtd>                         <mtd 
class="align-label">
                         <mspace width="2em"/></mtd></mtr><mtr><mtd 
columnalign="right" class="align-odd"><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
></mtd>                          <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mn>1</mn><mspace width="2em"/></mtd>                                     <mtd 
columnalign="right" class="align-label"></mtd>                         <mtd 
class="align-label">
                         <mspace width="2em"/></mtd></mtr><mtr><mtd 
columnalign="right" class="align-odd"></mtd>                            <mtd 
class="align-even"><mspace width="2em"/></mtd>                                         <mtd 
columnalign="right" class="align-label">
</mtd></mtr></mtable></math>
      <!--l. 143--><p class="noindent" >Rewrite the equations as:
      </p><!--tex4ht:inline--><!--l. 150--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mtable 
columnalign="left" class="align-star">
                     <mtr><mtd 
columnalign="right" class="align-odd"><mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>6</mn><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>8</mn></mrow></msub 
> <mo 
class="MathClass-bin">&#x2212;</mo> <msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>1</mn><mn>2</mn></mrow></msub 
></mtd>                              <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mn>0</mn><mspace width="2em"/></mtd>                         <mtd 
columnalign="right" class="align-label"></mtd>                     <mtd 
class="align-label">
                     <mspace width="2em"/></mtd></mtr><mtr><mtd 
columnalign="right" class="align-odd"><mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>6</mn><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>8</mn></mrow></msub 
> <mo 
class="MathClass-bin">&#x2212;</mo> <msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>1</mn><mn>0</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>4</mn><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>1</mn><mn>2</mn></mrow></msub 
></mtd>                     <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mn>0</mn><mspace width="2em"/></mtd>                         <mtd 
columnalign="right" class="align-label"></mtd>                     <mtd 
class="align-label">
                     <mspace width="2em"/></mtd></mtr><mtr><mtd 
columnalign="right" class="align-odd"><mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>6</mn><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>6</mn></mrow></msub 
> <mo 
class="MathClass-bin">&#x2212;</mo> <msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>8</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>4</mn><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>1</mn><mn>0</mn></mrow></msub 
></mtd>                      <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mn>0</mn><mspace width="2em"/></mtd>                         <mtd 
columnalign="right" class="align-label"></mtd>                     <mtd 
class="align-label">
                     <mspace width="2em"/></mtd></mtr><mtr><mtd 
columnalign="right" class="align-odd"><mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>6</mn><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>4</mn></mrow></msub 
> <mo 
class="MathClass-bin">&#x2212;</mo> <msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>6</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>4</mn><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>8</mn></mrow></msub 
></mtd>                       <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mn>0</mn><mspace width="2em"/></mtd>                         <mtd 
columnalign="right" class="align-label"></mtd>                     <mtd 
class="align-label">
                     <mspace width="2em"/></mtd></mtr><mtr><mtd 
columnalign="right" class="align-odd"> <mo 
class="MathClass-bin">&#x2212;</mo> <msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>4</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>4</mn><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>8</mn></mrow></msub 
></mtd>                            <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mo 
class="MathClass-bin">&#x2212;</mo><mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>6</mn><mspace width="2em"/></mtd>                     <mtd 
columnalign="right" class="align-label"></mtd>                     <mtd 
class="align-label">
<mspace width="2em"/></mtd></mtr></mtable></math>
                                                                          

                                                                          
      <!--l. 152--><p class="noindent" >In matrix form this is
</p>
<div class="math-display"><!--l. 153--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
 <mfenced separators="" 
open="("  close=")" ><mrow><mtable  style="text-align:axis"  
equalrows="false" equalcolumns="false" class="array"><mtr><mtd 
class="array"  columnalign="center"><mn>0</mn> </mtd><mtd 
class="array"  columnalign="center"> <mn>0</mn> </mtd><mtd 
class="array"  columnalign="center"><mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>6</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>0</mn> </mtd><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mn>0</mn> </mtd><mtd 
class="array"  columnalign="center"> <mn>0</mn> </mtd><mtd 
class="array"  columnalign="center"><mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>6</mn></mtd><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mtd><mtd 
class="array"  columnalign="center"> <mo 
class="MathClass-punc">.</mo><mn>4</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mn>0</mn> </mtd><mtd 
class="array"  columnalign="center"><mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>6</mn></mtd><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mtd><mtd 
class="array"  columnalign="center"><mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>4</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>0</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>6</mn></mtd><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mtd><mtd 
class="array"  columnalign="center"><mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>4</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>0</mn> </mtd><mtd 
class="array"  columnalign="center"> <mn>0</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>0</mn> </mtd><mtd 
class="array"  columnalign="center"><mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>4</mn></mtd><mtd 
class="array"  columnalign="center"> <mn>0</mn> </mtd><mtd 
class="array"  columnalign="center"> <mn>0</mn> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center">   </mtd></mtr>
<!--*\c@MaxMatrixCols c--></mtable>                                                                                                 </mrow></mfenced> <mfenced separators="" 
open="("  close=")" ><mrow><mtable  style="text-align:axis"  
equalrows="false" equalcolumns="false" class="array"><mtr><mtd 
class="array"  columnalign="center"><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>4</mn></mrow></msub 
></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>6</mn></mrow></msub 
> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>8</mn></mrow></msub 
> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>1</mn><mn>0</mn></mrow></msub 
></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>1</mn><mn>2</mn></mrow></msub 
></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center">   </mtd></mtr>
<!--*\c@MaxMatrixCols c--></mtable>                                                                                                                                      </mrow></mfenced> <mo 
class="MathClass-rel">=</mo>  <mfenced separators="" 
open="("  close=")" ><mrow><mtable  style="text-align:axis"  
equalrows="false" equalcolumns="false" class="array"><mtr><mtd 
class="array"  columnalign="center">  <mn>0</mn>  </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mn>0</mn>  </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mn>0</mn>  </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"> <mn>0</mn>  </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center"><mo 
class="MathClass-bin">&#x2212;</mo><mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>6</mn></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="center">     </mtd></mtr>
<!--*\c@MaxMatrixCols c--></mtable>                                                                                                 </mrow></mfenced> <mo 
class="MathClass-punc">.</mo>
</mrow></math></div>
      <!--l. 168--><p class="nopar" > The solution is <!--l. 169--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>4</mn></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>9</mn><mn>0</mn><mn>8</mn><mn>5</mn><mn>7</mn></math>,
      <!--l. 170--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>6</mn></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>8</mn><mn>5</mn><mn>3</mn><mn>7</mn><mn>1</mn></math>,
      <!--l. 170--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>8</mn></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>7</mn><mn>7</mn><mn>1</mn><mn>4</mn><mn>3</mn></math>,
      <!--l. 170--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>1</mn><mn>0</mn></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>6</mn><mn>4</mn><mn>8</mn><mn>0</mn><mn>0</mn></math>,
      <!--l. 170--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>1</mn><mn>2</mn></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <mn>0</mn><mo 
class="MathClass-punc">.</mo><mn>4</mn><mn>6</mn><mn>2</mn><mn>8</mn><mn>6</mn></math>.
      </p></li>
      <li 
  class="enumerate" id="x1-31x5">Use the ruin probability notation to show that in a random walk
      starting at the origin the probability of reaching the point
      <!--l. 175--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>a</mi> <mo 
class="MathClass-rel">&#x003E;</mo> <mn>0</mn></mrow></math>
      before the random walk returns to the origin is
      <!--l. 175--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>p</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn> <mo 
class="MathClass-bin">&#x2212;</mo> <msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>1</mn></mrow></msub 
></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math>.
      <!--l. 178--><p class="noindent" ><span 
class="cmbx-12">Solution: </span>The random walk starts at the origin
      <!--l. 178--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>T</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <mn>0</mn></math>.
      Consider the case that the first step is to the left, occurring with probability
      <!--l. 180--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>q</mi></math>, so
      that <!--l. 180--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>T</mi></mrow><mrow 
><mn>1</mn></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></math>.
                                                                          

                                                                          
      Then if the walk is ever to reach the goal
      <!--l. 181--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>a</mi> <mo 
class="MathClass-rel">&#x003E;</mo> <mn>0</mn></mrow></math>, then
      the walk must necessarily pass through the origin again. Hence for the walk to reach
      the goal <!--l. 183--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>a</mi> <mo 
class="MathClass-rel">&#x003E;</mo> <mn>0</mn></mrow></math>
      the walk must first step to the right with probability
      <!--l. 184--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>p</mi></math>. Then the
      walk starts from state one, and we seek the subsequent probability that the walk reaches
      <!--l. 186--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>a</mi></mrow></math> before
      reaching <!--l. 186--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mn>0</mn></mrow></math>.
      In our terminology, that is the probability of victory from
      <!--l. 187--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mn>1</mn></math> before being
      ruined. That is <!--l. 188--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>p</mi></mrow><mrow 
><mn>1</mn></mrow></msub 
></math>
      or equivalently <!--l. 188--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mn>1</mn> <mo 
class="MathClass-bin">&#x2212;</mo> <msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>1</mn></mrow></msub 
></math>.
      Hence the combined probability of these two independent events is
      <!--l. 189--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>p</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn> <mo 
class="MathClass-bin">&#x2212;</mo> <msub><mrow 
><mi 
>q</mi></mrow><mrow 
><mn>1</mn></mrow></msub 
></mrow><mo 
class="MathClass-close">)</mo></mrow></math>.</p></li></ol>
    
</body> 
</html> 

                                                                          



