<?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="cashmanagement.css"?> 
<html  
xmlns="http://www.w3.org/1999/xhtml"  
><head><title></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="cashmanagement.tex" /> 
<meta name="date" content="2010-06-14 06:11:00" /> 
<link rel="stylesheet" type="text/css" href="cashmanagement.css" /> 
</head><body 
>
<!--l. 8--><p class="noindent" >Steven R. Dunbar <br 
class="newline" />Department of Mathematics <br 
class="newline" />203 Avery Hall <br 
class="newline" />University of Nebraska-Lincoln <br 
class="newline" />Lincoln, NE 68588-0130 <br 
class="newline" /><span 
class="cmtt-12">http://www.math.unl.edu </span><br 
class="newline" />Voice: 402-472-3731 <br 
class="newline" />Fax: 402-472-8466                  </p>
<div class="center" 
>
<!--l. 1--><p class="noindent" >
</p><!--l. 7--><p class="noindent" > <span 
class="cmbx-12x-x-144">Math 489/Math 889</span><br />
<span 
class="cmbx-12x-x-144">Stochastic Processes and</span><br />
<span 
class="cmbx-12x-x-144">Advanced Mathematical Finance</span><br />
<span 
class="cmbx-12x-x-144">Dunbar, Fall 2009</span>
</p></div>
<!--l. 19--><p class="noindent" >__________________________________________________________________________
</p>
<div class="center" 
>
<!--l. 21--><p class="noindent" >
</p><!--l. 21--><p class="noindent" ><span 
class="cmr-17">A Stochastic Process Model of Cash Management</span></p></div>
<!--l. 23--><p class="indent" >   _______________________________________________________________________
</p><!--l. 25--><p class="indent" >   <img 
src="../../../../CommonInformation/Lessons/rating.png" alt="Rating"  
 />
</p>
   <h3 class="likesectionHead"><a 
 id="x1-1000"></a>Rating</h3>
<!--l. 29--><p class="noindent" >Mathematically Mature: may contain mathematics beyond calculus with
proofs.
</p><!--l. 32--><p class="indent" >   _______________________________________________________________________________________________
</p><!--l. 34--><p class="indent" >   <img 
src="../../../../CommonInformation/Lessons/question_mark.png" alt="QuestionofDay"  
 />
                                                                          

                                                                          
</p>
   <h3 class="likesectionHead"><a 
 id="x1-2000"></a>Question of the Day</h3>
<!--l. 35--><p class="noindent" >Suppose that you have a stock of 5 units of a product. It costs you
<!--l. 36--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>r</mi></mrow></math>
dollars per unit of product to hold the product for a week. You get rid of one unit
of product per week. What is the total cost of holding the product? Now suppose
that the amount of product is determined by a coin-tossing game, or equivalently
a random walk. How would you calculate the expected cost of holding the
product?
</p><!--l. 43--><p class="indent" >   _______________________________________________________________________________________________
</p><!--l. 45--><p class="indent" >   <img 
src="../../../../CommonInformation/Lessons/keyconcepts.png" alt="Key Concepts"  
 />
</p>
   <h3 class="likesectionHead"><a 
 id="x1-3000"></a>Key Concepts</h3>
<!--l. 48--><p class="noindent" >
      </p><ol  class="enumerate1" >
      <li 
  class="enumerate" id="x1-3002x1">The <span 
class="cmbx-12">reserve requirement </span>is a bank regulation that sets the minimum
      reserves of cash a bank must hold on hand for customer deposits. An
      important question for the bank is: What is the optimal level of cash
      for the bank to hold?
      </li>
      <li 
  class="enumerate" id="x1-3004x2">We model the cash level with a sequence of cycles or games. Each cycle
      begins with <!--l. 59--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>s</mi></mrow></math>
      units of cash on hand and ends with either a replenishment of cash, or a
      reduction of cash. In between these levels, the cash level is a stochastic
      process, specifically for our model a coin-tossing game or random walk.
      </li>
      <li 
  class="enumerate" id="x1-3006x3">By solving a non-homogeneous difference equation we can determine
      the expected number of visits to an intermediate level in the random
      process.
      </li>
      <li 
  class="enumerate" id="x1-3008x4">Using  the  expected  number  of  visits  to  a  level  we  can  model  the
                                                                          

                                                                          
      expected costs of the reserve requirement as a function of the maximum
      amount to hold and the starting level after a buy or sell. Then we
      can minimize the costs with calculus to find the optimal values of the
      maximum amount and the starting level.</li></ol>
<!--l. 77--><p class="noindent" >__________________________________________________________________________
</p><!--l. 79--><p class="indent" >   <img 
src="../../../../CommonInformation/Lessons/vocabulary.png" alt="Vocabulary"  
 />
</p>
   <h3 class="likesectionHead"><a 
 id="x1-4000"></a>Vocabulary</h3>
<!--l. 81--><p class="noindent" >
      </p><ol  class="enumerate1" >
      <li 
  class="enumerate" id="x1-4002x1">The <span 
class="cmbx-12">reserve requirement </span>is a bank regulation that sets the minimum
      reserves of cash a bank must hold for customer deposits.
      </li>
      <li 
  class="enumerate" id="x1-4004x2">The mathematical expression <!--l. 88--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>&#x03B4;</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow></msub 
></mrow></math>
      is the <span 
class="cmbx-12">Kronecker delta</span>
<div class="math-display"><!--l. 91--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
><msub><mrow 
>
<mi 
>&#x03B4;</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow></msub 
> <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="left"><mn>1</mn><mspace width="1em" class="quad"/></mtd><mtd 
class="array"  columnalign="left"><!--mstyle 
class="text"--><mtext  >&#x00A0;&#x00A0;if&#x00A0;</mtext><mstyle 
class="math"><mi 
>k</mi> <mo 
class="MathClass-rel">=</mo> <mi 
>s</mi></mstyle><mtext  >&#x00A0;</mtext><!--/mstyle--></mtd></mtr><mtr><mtd 
class="array"  columnalign="left"><mn>0</mn> <mspace width="1em" class="quad"/> </mtd> <mtd 
class="array"  columnalign="left"><!--mstyle 
class="text"--><mtext  >&#x00A0;if&#x00A0;</mtext><mstyle 
class="math"><mi 
>k</mi><mo 
class="MathClass-rel">&#x2260;</mo> <mi 
>s</mi></mstyle><mtext  >&#x00A0;</mtext><!--/mstyle--> <mo 
class="MathClass-punc">.</mo></mtd></mtr><!--@{}l@{\quad }l@{}--></mtable>                                                                       </mrow></mfenced>
</mrow></math></div>
      <!--l. 97--><p class="nopar" >
      </p></li>
      <li 
  class="enumerate" id="x1-4006x3">If <!--l. 99--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>X</mi></mrow></math>
      is a random variable assuming some values including <!--l. 99--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>k</mi></mrow></math>,
      the <span 
class="cmbx-12">indicator random variable </span>where
                                                                          

                                                                          
<div class="math-display"><!--l. 102--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
><msub><mrow 
>
<mstyle mathvariant="bold"><mn>1</mn></mstyle></mrow><mrow 
><mrow ><mo 
class="MathClass-open">{</mo><mrow><mi 
>X</mi><mo 
class="MathClass-rel">=</mo><mi 
>k</mi></mrow><mo 
class="MathClass-close">}</mo></mrow></mrow></msub 
> <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="left"><mn>1</mn><mspace width="1em" class="quad"/></mtd><mtd 
class="array"  columnalign="left"><mi 
>X</mi> <mo 
class="MathClass-rel">=</mo> <mi 
>k</mi></mtd></mtr><mtr><mtd 
class="array"  columnalign="left"><mn>0</mn> <mspace width="1em" class="quad"/> </mtd> <mtd 
class="array"  columnalign="left"><mi 
>X</mi><mo 
class="MathClass-rel">&#x2260;</mo> <mi 
>k</mi><mo 
class="MathClass-punc">.</mo></mtd></mtr><!--@{}l@{\quad }l@{}--></mtable>                                                                           </mrow></mfenced>
</mrow></math></div>
      <!--l. 108--><p class="nopar" > The indicator random variable indicates whether a random variable
      assumes a value, or is in a set. The expected value of the indicator
      random variable is the probability of the event.</p></li></ol>
<!--l. 114--><p class="noindent" >__________________________________________________________________________
</p><!--l. 116--><p class="indent" >   <img 
src="../../../../CommonInformation/Lessons/mathematicalideas.png" alt="Mathematical Ideas"  
 />
</p>
   <h3 class="likesectionHead"><a 
 id="x1-5000"></a>Mathematical Ideas</h3>
<!--l. 119--><p class="noindent" >
</p>
   <h4 class="likesubsectionHead"><a 
 id="x1-6000"></a>Background</h4>
<!--l. 121--><p class="noindent" >The <span 
class="cmbx-12">reserve requirement </span>is a bank regulation that sets the minimum reserves
of cash a bank must hold on hand for customer deposits. This is also called the
<span 
class="cmbx-12">Federal Reserve requirement </span>or the <span 
class="cmbx-12">reserve ratio</span>. These reserves exist
so banks can satisfy cash withdrawal demands. The reserves also help
regulate the national money supply. Specifically in 2010 the Federal Reserve
regulations require that the first $10.7 million are exempt from reserve
requirements. A 3 percent reserve ratio is assessed on net transaction
accounts over $10.7 million up to and including $55.2 million. A 10 percent
reserve ratio is assessed on net transaction accounts in excess of $55.2
million.
                                                                          

                                                                          
</p><!--l. 137--><p class="indent" >   Of course, bank customers are frequently depositing and withdrawing money
so the amount of money for the reserve requirement is constantly changing. If
customers deposit more money, the cash on hand exceeds the reserve requirement.
The bank would put the excess cash to work, perhaps by buying Treasury bills. If
customers withdraw cash, the available cash can fall below the required amount to
cover the reserve requirement so the bank gets more cash, perhaps by selling
Treasury bills.
</p><!--l. 146--><p class="indent" >   The bank has a dilemma: buying and selling the Treasury bills has a
transaction cost, so the bank does not want to buy and sell too often. On the
other hand, excess cash could be put to use by loaning it out, and so the
bank does not want to have too much cash idle. What is the optimal level
of cash that signals a time to sell, and how much should be bought or
sold?
</p><!--l. 153--><p class="noindent" >
</p>
   <h4 class="likesubsectionHead"><a 
 id="x1-7000"></a>Modeling</h4>
<!--l. 155--><p class="noindent" >We assume for a simple model that a bank&#x2019;s cash level fluctuates randomly as a
result of many small deposits and withdrawals. We model this by dividing time
into successive, equal length periods, each of short duration. The periods might be
weekly, the reporting period the Federal Reserve Bank requires for some banks. In
each time period, assume the reserve randomly increases or decreases one unit
of cash, perhaps measured in units of $100,000, each with probability
<!--l. 161--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>2</mn></mrow></math>. That is,
in period <!--l. 162--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>n</mi></mrow></math>,
the <span 
class="cmti-12">change </span>in the banks reserves is
</p>
                                                                          

                                                                          
   <div class="math-display"><!--l. 163--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
><msub><mrow 
>
<mi 
>Y</mi> </mrow><mrow 
><mi 
>n</mi></mrow></msub 
> <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="left"><mo 
class="MathClass-bin">+</mo><mn>1</mn><mspace width="1em" class="quad"/></mtd><mtd 
class="array"  columnalign="left"><!--mstyle 
class="text"--><mtext  >&#x00A0;&#x00A0;with&#x00A0;probability&#x00A0;1/2</mtext><!--/mstyle--> </mtd></mtr><mtr><mtd 
class="array"  columnalign="left"><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn> <mspace width="1em" class="quad"/> </mtd> <mtd 
class="array"  columnalign="left"><!--mstyle 
class="text"--><mtext  >&#x00A0;with&#x00A0;probability&#x00A0;1/2</mtext><!--/mstyle--> <mo 
class="MathClass-punc">.</mo></mtd>
</mtr>    <!--@{}l@{\quad }l@{}--></mtable>                                                                                 </mrow></mfenced>
</mrow></math></div>
<!--l. 169--><p class="nopar" > The equal probability assumption simplifies calculations for
this model. It is possible to relax the assumption to the case
<!--l. 171--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>p</mi><mo 
class="MathClass-rel">&#x2260;</mo><mi 
>q</mi></mrow></math>, but
we will not do this here.
</p><!--l. 174--><p class="indent" >   Let <!--l. 174--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>T</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <mi 
>s</mi></mrow></math> be the initial cash
on hand. Then <!--l. 174--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>T</mi></mrow><mrow 
><mi 
>n</mi></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <msub><mrow 
><mi 
>T</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo><msubsup><mrow 
><mo 
class="MathClass-op"> &#x2211;</mo>
  <!--nolimits--></mrow><mrow 
><mi 
>j</mi><mo 
class="MathClass-rel">=</mo><mn>1</mn></mrow><mrow 
><mi 
>n</mi></mrow></msubsup 
><msub><mrow 
><mi 
>Y</mi> </mrow><mrow 
>
<mi 
>j</mi></mrow></msub 
></mrow></math> is the total
cash on hand at period <!--l. 175--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>n</mi></mrow></math>.
</p><!--l. 177--><p class="indent" >   The bank will intervene if the reserve gets too small or too large.
Again for simple modeling, if the reserve level drops to zero, the bank
sells assets such as Treasury bonds to replenish the reserve back up to
<!--l. 179--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>s</mi></mrow></math>. If the cash level
ever increases to <!--l. 180--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>S</mi></mrow></math>,
the bank buys Treasury bonds to reduce the reserves to
<!--l. 181--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>s</mi></mrow></math>.
What we have modeled here is a version of the Gambler&#x2019;s Ruin, except
that when this &#x201C;game&#x201D; reaches the &#x201C;ruin&#x201D; or &#x201C;victory&#x201D; boundaries,
<!--l. 183--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mn>0</mn></mrow></math> or
<!--l. 183--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>S</mi></mrow></math>
respectively, the &#x201C;game&#x201D; immediately restarts again at
<!--l. 184--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>s</mi></mrow></math>.
</p><!--l. 186--><p class="indent" >   Now the cash level fluctuates in a sequence of cycles or games. Each cycle begins
with <!--l. 187--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>s</mi></mrow></math>
units of cash on hand and ends with either a replenishment of cash, or a reduction
of cash.
</p>
   <hr class="figure" /><div class="figure" 
><table class="figure"><tr class="figure"><td class="figure" 
>
                                                                          

                                                                          
<a 
 id="x1-70011"></a>
                                                                          

                                                                          

<!--l. 192--><p class="noindent" ><img 
src="typicalcycles.png" alt="PIC"  
 />
<br /> </p><table class="caption" 
><tr style="vertical-align:baseline;" class="caption"><td class="id">Figure&#x00A0;1: </td><td  
class="content">Several typical cycles in a model of the reserve requirement.</td></tr></table><!--tex4ht:label?: x1-70011 -->
                                                                          

                                                                          
   </td></tr></table></div><hr class="endfigure" />
   <h4 class="likesubsectionHead"><a 
 id="x1-8000"></a>Mean number of visits to a particular state</h4>
<!--l. 198--><p class="noindent" >Now let <!--l. 198--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>k</mi></mrow></math> be one of the
possible reserve states with <!--l. 199--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mn>0</mn> <mo 
class="MathClass-rel">&#x003C;</mo> <mi 
>k</mi> <mo 
class="MathClass-rel">&#x003C;</mo> <mi 
>S</mi></mrow></math>
and let <!--l. 199--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow></msub 
></mrow></math>
be the expected number of visits to the level
<!--l. 200--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>k</mi></mrow></math>
up to the ending time of the cycle starting from
<!--l. 201--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>s</mi></mrow></math>. A
formal mathematical expression for this expression is
</p>
   <div class="math-display"><!--l. 203--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                                <msub><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <mi 
>E</mi> <mfenced separators="" 
open="["  close="]" ><mrow><munderover accentunder="false" accent="false"><mrow  
><mo mathsize="big" 
>&#x2211;</mo>
  </mrow><mrow 
><mi 
>j</mi><mo 
class="MathClass-rel">=</mo><mn>1</mn></mrow><mrow 
><mi 
>N</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></munderover 
><msub><mrow 
><mstyle mathvariant="bold"><mn>1</mn></mstyle></mrow><mrow 
>
<mrow ><mo 
class="MathClass-open">{</mo><mrow><msub><mrow 
><mi 
>T</mi></mrow><mrow 
><mi 
>j</mi></mrow></msub 
><mo 
class="MathClass-rel">=</mo><mi 
>k</mi></mrow><mo 
class="MathClass-close">}</mo></mrow></mrow></msub 
></mrow></mfenced>
</mrow></math></div>
<!--l. 205--><p class="nopar" > where <!--l. 206--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mstyle mathvariant="bold"><mn>1</mn></mstyle></mrow><mrow 
><mrow ><mo 
class="MathClass-open">{</mo><mrow><msub><mrow 
><mi 
>T</mi></mrow><mrow 
><mi 
>j</mi></mrow></msub 
><mo 
class="MathClass-rel">=</mo><mi 
>k</mi></mrow><mo 
class="MathClass-close">}</mo></mrow></mrow></msub 
></mrow></math>
is the <span 
class="cmbx-12">indicator random variable </span>where
</p>
                                                                          

                                                                          
   <div class="math-display"><!--l. 208--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
><msub><mrow 
>
<mstyle mathvariant="bold"><mn>1</mn></mstyle></mrow><mrow 
><mrow ><mo 
class="MathClass-open">{</mo><mrow><msub><mrow 
><mi 
>T</mi></mrow><mrow 
><mi 
>j</mi></mrow></msub 
><mo 
class="MathClass-rel">=</mo><mi 
>k</mi></mrow><mo 
class="MathClass-close">}</mo></mrow></mrow></msub 
> <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="left"><mn>1</mn><mspace width="1em" class="quad"/></mtd><mtd 
class="array"  columnalign="left"><msub><mrow 
><mi 
>T</mi></mrow><mrow 
><mi 
>j</mi></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <mi 
>k</mi></mtd>
</mtr><mtr><mtd 
class="array"  columnalign="left"><mn>0</mn> <mspace width="1em" class="quad"/></mtd><mtd 
class="array"  columnalign="left"><msub><mrow 
><mi 
>T</mi></mrow><mrow 
><mi 
>j</mi></mrow></msub 
><mo 
class="MathClass-rel">&#x2260;</mo><mi 
>k</mi><mo 
class="MathClass-punc">.</mo> </mtd></mtr> <!--@{}l@{\quad }l@{}--></mtable>                                                                           </mrow></mfenced>
</mrow></math></div>
<!--l. 214--><p class="nopar" > Note that the inner sum is a random sum, since it depends on the length of the
cycle <!--l. 216--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>N</mi></mrow></math>,
which is cycle dependent.
</p><!--l. 218--><p class="indent" >   Then using first-step analysis <!--l. 218--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow></msub 
></mrow></math>
satisfies the equations
</p>
   <div class="math-display"><!--l. 219--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                            <msub><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <msub><mrow 
><mi 
>&#x03B4;</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <mfrac><mrow 
><mn>1</mn></mrow> 
<mrow 
><mn>2</mn></mrow></mfrac><msub><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn><mo 
class="MathClass-punc">,</mo><mi 
>k</mi></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <mfrac><mrow 
><mn>1</mn></mrow> 
<mrow 
><mn>2</mn></mrow></mfrac><msub><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mo 
class="MathClass-bin">+</mo><mn>1</mn><mo 
class="MathClass-punc">,</mo><mi 
>k</mi></mrow></msub 
>
</mrow></math></div>
<!--l. 222--><p class="nopar" > with boundary conditions <!--l. 223--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>W</mi></mrow><mrow 
><mn>0</mn><mi 
>k</mi></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <msub><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>S</mi><mi 
>k</mi></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <mn>0</mn></mrow></math>.
The term <!--l. 223--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>&#x03B4;</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow></msub 
></mrow></math>
is the <span 
class="cmbx-12">Kronecker delta</span>
</p>
                                                                          

                                                                          
   <div class="math-display"><!--l. 225--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
><msub><mrow 
>
<mi 
>&#x03B4;</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow></msub 
> <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="left"><mn>1</mn><mspace width="1em" class="quad"/></mtd><mtd 
class="array"  columnalign="left"><!--mstyle 
class="text"--><mtext  >&#x00A0;&#x00A0;if&#x00A0;</mtext><!--/mstyle--><mi 
>k</mi> <mo 
class="MathClass-rel">=</mo> <mi 
>s</mi></mtd></mtr><mtr><mtd 
class="array"  columnalign="left"><mn>0</mn> <mspace width="1em" class="quad"/> </mtd> <mtd 
class="array"  columnalign="left"><!--mstyle 
class="text"--><mtext  >&#x00A0;if&#x00A0;</mtext><!--/mstyle--> <mi 
>k</mi><mo 
class="MathClass-rel">&#x2260;</mo> <mi 
>s</mi><mo 
class="MathClass-punc">.</mo></mtd></mtr> <!--@{}l@{\quad }l@{}--></mtable>                                                                        </mrow></mfenced>
</mrow></math></div>
<!--l. 231--><p class="nopar" >
</p><!--l. 233--><p class="indent" >   The explanation of this equation is very similar to the derivation of the
equation for the expected duration of the coin-tossing game. The terms
<!--l. 235--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mfrac><mrow 
><mn>1</mn></mrow>
<mrow 
><mn>2</mn></mrow></mfrac><msub><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn><mo 
class="MathClass-punc">,</mo><mi 
>k</mi></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <mfrac><mrow 
><mn>1</mn></mrow> 
<mrow 
><mn>2</mn></mrow></mfrac><msub><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mo 
class="MathClass-bin">+</mo><mn>1</mn><mo 
class="MathClass-punc">,</mo><mi 
>k</mi></mrow></msub 
></mrow></math> arise
from the standard first-step analysis or expectation-by-conditioning argument for
<!--l. 237--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow></msub 
></mrow></math>. The
non-homogeneous term in the prior <span 
class="cmti-12">expected duration equation </span>(which is
<!--l. 238--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mo 
class="MathClass-bin">+</mo><mn>1</mn></mrow></math>) arises because the game
will always be at least <!--l. 239--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mn>1</mn></mrow></math>
step longer after the first step. In the current equation, the
<!--l. 240--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>&#x03B4;</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow></msub 
></mrow></math>
non-homogeneous term arises because the number of visits to level
<!--l. 241--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>k</mi></mrow></math> after the first step
will be <!--l. 242--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mn>1</mn></mrow></math> more if
<!--l. 242--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>k</mi> <mo 
class="MathClass-rel">=</mo> <mi 
>s</mi></mrow></math> but the number of
visits to level <!--l. 242--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>k</mi></mrow></math> after
the first step will be <!--l. 243--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mn>0</mn></mrow></math>
more if <!--l. 243--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>k</mi><mo 
class="MathClass-rel">&#x2260;</mo><mi 
>s</mi></mrow></math>.
</p><!--l. 245--><p class="indent" >   For the ruin probabilities, the difference equation was homogeneous, and we
only needed to find the general solution. For the expected duration, the difference
equation was non-homogeneous with a non-homogeneous term which was the constant
<!--l. 248--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mn>1</mn></mrow></math>,
making the particular solution reasonably easy to find. Now the non-homogeneous
term depends on the independent variable, so solving for the particular solution
will be more involved.
</p><!--l. 253--><p class="indent" >   First we find the general solution <!--l. 253--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msubsup><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow><mrow 
><mi 
>h</mi></mrow></msubsup 
></mrow></math>
                                                                          

                                                                          
to the homogeneous linear difference equation
</p>
   <div class="math-display"><!--l. 255--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                              <msubsup><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow><mrow 
><mi 
>h</mi></mrow></msubsup 
> <mo 
class="MathClass-rel">=</mo> <mfrac><mrow 
><mn>1</mn></mrow> 
<mrow 
><mn>2</mn></mrow></mfrac><msubsup><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn><mo 
class="MathClass-punc">,</mo><mi 
>k</mi></mrow><mrow 
><mi 
>h</mi></mrow></msubsup 
> <mo 
class="MathClass-bin">+</mo> <mfrac><mrow 
><mn>1</mn></mrow> 
<mrow 
><mn>2</mn></mrow></mfrac><msubsup><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mo 
class="MathClass-bin">+</mo><mn>1</mn><mo 
class="MathClass-punc">,</mo><mi 
>k</mi></mrow><mrow 
><mi 
>h</mi></mrow></msubsup 
><mo 
class="MathClass-punc">.</mo>
</mrow></math></div>
<!--l. 257--><p class="nopar" > This is easy, we already know that it is
<!--l. 258--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msubsup><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow><mrow 
><mi 
>h</mi></mrow></msubsup 
> <mo 
class="MathClass-rel">=</mo> <mi 
>A</mi> <mo 
class="MathClass-bin">+</mo> <mi 
>B</mi><mi 
>s</mi></mrow></math>.
</p><!--l. 260--><p class="indent" >   Then we must find a particular solution
<!--l. 260--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msubsup><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow><mrow 
><mi 
>p</mi></mrow></msubsup 
></mrow></math> to
the non-homogeneous equation
</p>
   <div class="math-display"><!--l. 262--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                          <msubsup><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow><mrow 
><mi 
>p</mi></mrow></msubsup 
> <mo 
class="MathClass-rel">=</mo> <msub><mrow 
><mi 
>&#x03B4;</mi></mrow><mrow 
>
<mi 
>s</mi><mi 
>k</mi></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <mfrac><mrow 
><mn>1</mn></mrow> 
<mrow 
><mn>2</mn></mrow></mfrac><msubsup><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn><mo 
class="MathClass-punc">,</mo><mi 
>k</mi></mrow><mrow 
><mi 
>p</mi></mrow></msubsup 
> <mo 
class="MathClass-bin">+</mo> <mfrac><mrow 
><mn>1</mn></mrow> 
<mrow 
><mn>2</mn></mrow></mfrac><msubsup><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mo 
class="MathClass-bin">+</mo><mn>1</mn><mo 
class="MathClass-punc">,</mo><mi 
>k</mi></mrow><mrow 
><mi 
>p</mi></mrow></msubsup 
><mo 
class="MathClass-punc">.</mo>
</mrow></math></div>
<!--l. 265--><p class="nopar" > For purposes of guessing a plausible particular solution, temporarily re-write the
equation as
</p>
                                                                          

                                                                          
   <div class="math-display"><!--l. 268--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                          <mo 
class="MathClass-bin">&#x2212;</mo><mn>2</mn><msub><mrow 
><mi 
>&#x03B4;</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <msubsup><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn><mo 
class="MathClass-punc">,</mo><mi 
>k</mi></mrow><mrow 
><mi 
>p</mi></mrow></msubsup 
> <mo 
class="MathClass-bin">&#x2212;</mo> <mn>2</mn><msubsup><mrow 
><mi 
>W</mi></mrow><mrow 
>
<mi 
>s</mi><mi 
>k</mi></mrow><mrow 
><mi 
>p</mi></mrow></msubsup 
> <mo 
class="MathClass-bin">+</mo> <msubsup><mrow 
><mi 
>W</mi></mrow><mrow 
>
<mi 
>s</mi><mo 
class="MathClass-bin">+</mo><mn>1</mn><mo 
class="MathClass-punc">,</mo><mi 
>k</mi></mrow><mrow 
><mi 
>p</mi></mrow></msubsup 
><mo 
class="MathClass-punc">.</mo>
</mrow></math></div>
<!--l. 270--><p class="nopar" > The expression on the right is a centered second difference. For the
prior expected duration equation, we looked for a particular solution
with a constant centered second difference. Based on our experience
with functions it made sense to guess a particular solution of the form
<!--l. 275--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>C</mi> <mo 
class="MathClass-bin">+</mo> <mi 
>D</mi><mi 
>s</mi> <mo 
class="MathClass-bin">+</mo> <mi 
>E</mi><msup><mrow 
><mi 
>s</mi></mrow><mrow 
><mn>2</mn></mrow></msup 
></mrow></math> and then
substitute to find the coefficients. Here we seek a function whose centered second difference
is <!--l. 277--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mn>0</mn></mrow></math> except at
<!--l. 277--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>k</mi></mrow></math> where the second
difference jumps to <!--l. 278--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mn>1</mn></mrow></math>.
This suggests the particular solution is piecewise linear, say
</p>
   <div class="math-display"><!--l. 280--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
><msubsup><mrow 
>
<mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow><mrow 
><mi 
>p</mi></mrow></msubsup 
> <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="left"><mi 
>C</mi> <mo 
class="MathClass-bin">+</mo> <mi 
>D</mi><mi 
>s</mi><mspace width="1em" class="quad"/></mtd><mtd 
class="array"  columnalign="left"><!--mstyle 
class="text"--><mtext  >&#x00A0;&#x00A0;if&#x00A0;</mtext><!--/mstyle--><mi 
>s</mi> <mo 
class="MathClass-rel">&#x2264;</mo> <mi 
>k</mi> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="left"><mi 
>E</mi> <mo 
class="MathClass-bin">+</mo> <mi 
>F</mi><mi 
>s</mi> <mspace width="1em" class="quad"/></mtd><mtd 
class="array"  columnalign="left"><!--mstyle 
class="text"--><mtext  >&#x00A0;&#x00A0;if&#x00A0;</mtext><!--/mstyle--><mi 
>s</mi> <mo 
class="MathClass-rel">&#x003E;</mo> <mi 
>k</mi><mo 
class="MathClass-punc">.</mo></mtd></mtr> <!--@{}l@{\quad }l@{}--></mtable>                                                                </mrow></mfenced>
</mrow></math></div>
<!--l. 286--><p class="nopar" > In the exercises, we verify that the solution of this set of equations is
</p>
                                                                          

                                                                          
   <div class="math-display"><!--l. 289--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
><msubsup><mrow 
>
<mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow><mrow 
><mi 
>p</mi></mrow></msubsup 
> <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="left"><mn>0</mn>        <mspace width="1em" class="quad"/></mtd><mtd 
class="array"  columnalign="left"><!--mstyle 
class="text"--><mtext  >&#x00A0;&#x00A0;if&#x00A0;</mtext><!--/mstyle--><mi 
>s</mi> <mo 
class="MathClass-rel">&#x003C;</mo> <mi 
>k</mi> </mtd>
</mtr><mtr><mtd 
class="array"  columnalign="left"><mn>2</mn><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>k</mi> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>s</mi></mrow><mo 
class="MathClass-close">)</mo></mrow><mspace width="1em" class="quad"/></mtd><mtd 
class="array"  columnalign="left"><!--mstyle 
class="text"--><mtext  >&#x00A0;&#x00A0;if&#x00A0;</mtext><!--/mstyle--><mi 
>s</mi> <mo 
class="MathClass-rel">&#x2265;</mo> <mi 
>k</mi><mo 
class="MathClass-punc">.</mo></mtd></mtr> <!--@{}l@{\quad }l@{}--></mtable>                                                                 </mrow></mfenced>
</mrow></math></div>
<!--l. 295--><p class="nopar" > We can write this as <!--l. 296--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msubsup><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow><mrow 
><mi 
>p</mi></mrow></msubsup 
> <mo 
class="MathClass-rel">=</mo> <mo 
class="MathClass-bin">&#x2212;</mo><mn>2</mn><mo class="qopname"> max</mo><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>s</mi> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>k</mi><mo 
class="MathClass-punc">,</mo> <mn>0</mn></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math>
</p><!--l. 298--><p class="indent" >   Then solving for the boundary conditions, the full solution is
</p>
   <div class="math-display"><!--l. 299--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                         <msub><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <mn>2</mn> <mfenced separators="" 
open="["  close="]" ><mrow><mi 
>s</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>k</mi><mo 
class="MathClass-bin">&#x2215;</mo><mi 
>S</mi></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-bin">&#x2212;</mo><mo class="qopname"> max</mo><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>s</mi> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>k</mi><mo 
class="MathClass-punc">,</mo> <mn>0</mn></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></mfenced> <mo 
class="MathClass-punc">.</mo>
</mrow></math></div>
<!--l. 301--><p class="nopar" >
</p><!--l. 303--><p class="noindent" >
</p>
   <h4 class="likesubsectionHead"><a 
 id="x1-9000"></a>Expected Duration and Expected Total Cash in a Cycle</h4>
<!--l. 305--><p class="noindent" >Consider the <span 
class="cmbx-12">first passage time </span><!--l. 305--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>N</mi></mrow></math>
when the reserves first reach <!--l. 306--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mn>0</mn></mrow></math>
or <!--l. 306--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>S</mi></mrow></math>, so
that cycle ends and the bank intervenes to change the cash reserves. The value of
<!--l. 307--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>N</mi></mrow></math> is a
                                                                          

                                                                          
random variable, it depends on the sample path. We are first interested in
<!--l. 308--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>D</mi></mrow><mrow 
><mi 
>s</mi></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <mi 
>E</mi> <mfenced separators="" 
open="["  close="]" ><mrow><mi 
>N</mi></mrow></mfenced></mrow></math>, the
expected duration of a cycle. From the previous section we already know
<!--l. 310--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>D</mi></mrow><mrow 
><mi 
>s</mi></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <mi 
>s</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>S</mi> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>s</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math>.
</p><!--l. 312--><p class="indent" >   Next, we are interested in the mean cost of holding cash on hand during a cycle
<!--l. 313--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>i</mi></mrow></math>, starting from
amount <!--l. 313--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>s</mi></mrow></math>. Call
this mean <!--l. 313--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi></mrow></msub 
></mrow></math>.
Let <!--l. 314--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>r</mi></mrow></math> be
the cost per unit of cash, per unit of time. We then obtain the cost by weighting
<!--l. 315--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow></msub 
></mrow></math>,
the mean number of times the cash is at number of units
<!--l. 316--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>k</mi></mrow></math> starting from
<!--l. 316--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>s</mi></mrow></math>, multiplying by
<!--l. 317--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>k</mi></mrow></math>, multiplying
by the factor <!--l. 317--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>r</mi></mrow></math>
and summing over all the available amounts of cash:
</p><!--tex4ht:inline--><!--l. 326--><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 
>W</mi></mrow><mrow 
><mi 
>s</mi></mrow></msub 
></mtd>            <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo><munderover accentunder="false" accent="false"><mrow  
><mo mathsize="big" 
> &#x2211;</mo>
  </mrow><mrow 
><mi 
>k</mi><mo 
class="MathClass-rel">=</mo><mn>1</mn></mrow><mrow 
><mi 
>S</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></munderover 
><mi 
>r</mi><mi 
>k</mi><msub><mrow 
><mi 
>W</mi></mrow><mrow 
>
<mi 
>s</mi><mi 
>k</mi></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"></mtd>               <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mn>2</mn> <mfenced separators="" 
open="["  close="]" ><mrow> <mfrac><mrow 
><mi 
>s</mi></mrow>
<mrow 
><mi 
>S</mi></mrow></mfrac><munderover accentunder="false" accent="false"><mrow  
><mo mathsize="big" 
>&#x2211;</mo>
  </mrow><mrow 
><mi 
>k</mi><mo 
class="MathClass-rel">=</mo><mn>1</mn></mrow><mrow 
><mi 
>S</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></munderover 
><mi 
>r</mi><mi 
>k</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>S</mi> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>k</mi></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-bin">&#x2212;</mo><munderover accentunder="false" accent="false"><mrow  
><mo mathsize="big" 
>&#x2211;</mo>
  </mrow><mrow 
><mi 
>k</mi><mo 
class="MathClass-rel">=</mo><mn>1</mn></mrow><mrow 
><mi 
>s</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></munderover 
><mi 
>r</mi><mi 
>k</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>s</mi> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>k</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></mfenced><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"> <mo 
class="MathClass-rel">=</mo> <mn>2</mn> <mfenced separators="" 
open="["  close="]" ><mrow> <mfrac><mrow 
><mi 
>s</mi></mrow>
<mrow 
><mi 
>S</mi></mrow></mfrac> <mfenced separators="" 
open="["  close="]" ><mrow><mfrac><mrow 
><mi 
>r</mi><mi 
>S</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>S</mi> <mo 
class="MathClass-bin">&#x2212;</mo> <mn>1</mn></mrow><mo 
class="MathClass-close">)</mo></mrow><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>S</mi> <mo 
class="MathClass-bin">+</mo> <mn>1</mn></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow>
           <mrow 
><mn>6</mn></mrow></mfrac>           </mrow></mfenced> <mo 
class="MathClass-bin">&#x2212;</mo><mfrac><mrow 
><mi 
>r</mi><mi 
>s</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>s</mi> <mo 
class="MathClass-bin">&#x2212;</mo> <mn>1</mn></mrow><mo 
class="MathClass-close">)</mo></mrow><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>s</mi> <mo 
class="MathClass-bin">+</mo> <mn>1</mn></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow> 
          <mrow 
><mn>6</mn></mrow></mfrac>          </mrow></mfenced><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"> <mo 
class="MathClass-rel">=</mo> <mi 
>r</mi><mfrac><mrow 
><mi 
>s</mi></mrow> 
<mrow 
><mn>3</mn></mrow></mfrac> <mfenced separators="" 
open="["  close="]" ><mrow><msup><mrow 
><mi 
>S</mi></mrow><mrow 
><mn>2</mn></mrow></msup 
> <mo 
class="MathClass-bin">&#x2212;</mo> <msup><mrow 
><mi 
>s</mi></mrow><mrow 
><mn>2</mn></mrow></msup 
></mrow></mfenced> <mo 
class="MathClass-punc">.</mo><mspace width="2em"/></mtd>                                              <mtd 
columnalign="right" class="align-label"></mtd>            <mtd 
class="align-label">
   <mspace width="2em"/></mtd></mtr></mtable></math>
                                                                          

                                                                          
<!--l. 328--><p class="noindent" >These results are interesting and useful in their own right as estimates of the length of
a cycle and the expected cost of cash on hand during a cycle. Now we use these results
to evaluate the long run behavior of the cycles. Upon resetting the cash at hand to
<!--l. 331--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>s</mi></mrow></math> when the amount
of cash reaches <!--l. 332--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mn>0</mn></mrow></math>
or<!--l. 332--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>S</mi></mrow></math>, the cycles
are independent of each of the other cycles because of the assumption of independence of
each step. Let <!--l. 334--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>K</mi></mrow></math>
be the fixed cost of the buying or selling of the treasury bonds to start the cycle, let
<!--l. 335--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>N</mi></mrow><mrow 
><mi 
>i</mi></mrow></msub 
></mrow></math> be the random
length of the cycle <!--l. 336--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>i</mi></mrow></math>,
and let <!--l. 336--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>R</mi></mrow><mrow 
><mi 
>i</mi></mrow></msub 
></mrow></math>
be the total opportunity cost of holding cash on hand during cycle
<!--l. 337--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>i</mi></mrow></math>. Then the
cost over <!--l. 337--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>n</mi></mrow></math>
cycles is <!--l. 338--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>n</mi><mi 
>K</mi> <mo 
class="MathClass-bin">+</mo> <msub><mrow 
><mi 
>R</mi></mrow><mrow 
><mn>1</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <mo 
class="MathClass-rel">&#x22EF;</mo> <mo 
class="MathClass-bin">+</mo> <msub><mrow 
><mi 
>R</mi></mrow><mrow 
><mi 
>n</mi></mrow></msub 
></mrow></math>.
Divide by <!--l. 338--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>n</mi></mrow></math>
to find the average cost
</p>
   <div class="math-display"><!--l. 340--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                    <!--mstyle 
class="text"--><mtext  >&#x00A0;Expected&#x00A0;total&#x00A0;cost&#x00A0;in&#x00A0;cycle&#x00A0;</mtext><mstyle 
class="math"><mi 
>i</mi></mstyle><mtext  >&#x00A0;</mtext><!--/mstyle--> <mo 
class="MathClass-rel">=</mo> <mi 
>K</mi> <mo 
class="MathClass-bin">+</mo> <mi 
>E</mi> <mfenced separators="" 
open="["  close="]" ><mrow><msub><mrow 
><mi 
>R</mi></mrow><mrow 
><mi 
>i</mi></mrow></msub 
></mrow></mfenced> <mo 
class="MathClass-punc">,</mo>
</mrow></math></div>
<!--l. 342--><p class="nopar" > but we have another expression for the expectation
<!--l. 343--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>E</mi> <mfenced separators="" 
open="["  close="]" ><mrow><msub><mrow 
><mi 
>R</mi></mrow><mrow 
><mi 
>i</mi></mrow></msub 
></mrow></mfenced></mrow></math>,
</p>
                                                                          

                                                                          
   <div class="math-display"><!--l. 344--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                 <!--mstyle 
class="text"--><mtext  >&#x00A0;Expected&#x00A0;opportunity&#x00A0;cost</mtext><!--/mstyle--> <mo 
class="MathClass-rel">=</mo> <mi 
>E</mi> <mfenced separators="" 
open="["  close="]" ><mrow><msub><mrow 
><mi 
>R</mi></mrow><mrow 
><mi 
>i</mi></mrow></msub 
></mrow></mfenced> <mo 
class="MathClass-rel">=</mo> <mi 
>r</mi><mfrac><mrow 
><mi 
>s</mi></mrow> 
<mrow 
><mn>3</mn></mrow></mfrac> <mfenced separators="" 
open="["  close="]" ><mrow><msup><mrow 
><mi 
>S</mi></mrow><mrow 
><mn>2</mn></mrow></msup 
> <mo 
class="MathClass-bin">&#x2212;</mo> <msup><mrow 
><mi 
>s</mi></mrow><mrow 
><mn>2</mn></mrow></msup 
></mrow></mfenced> <mo 
class="MathClass-punc">.</mo>
</mrow></math></div>
<!--l. 347--><p class="nopar" > Likewise the total length of <!--l. 348--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>n</mi></mrow></math>
cycles is <!--l. 348--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>N</mi></mrow><mrow 
><mn>1</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <mo 
class="MathClass-rel">&#x22EF;</mo> <mo 
class="MathClass-bin">+</mo> <msub><mrow 
><mi 
>N</mi></mrow><mrow 
><mi 
>n</mi></mrow></msub 
></mrow></math>.
Divide by <!--l. 349--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>n</mi></mrow></math>
to find the average length,
</p>
   <div class="math-display"><!--l. 350--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                    <!--mstyle 
class="text"--><mtext  >&#x00A0;Expected&#x00A0;length</mtext><!--/mstyle--> <mo 
class="MathClass-rel">=</mo> <mfrac><mrow 
><msub><mrow 
><mi 
>N</mi></mrow><mrow 
><mn>1</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <mo 
class="MathClass-rel">&#x22EF;</mo> <mo 
class="MathClass-bin">+</mo> <msub><mrow 
><mi 
>N</mi></mrow><mrow 
><mi 
>n</mi></mrow></msub 
></mrow> 
         <mrow 
><mi 
>n</mi></mrow></mfrac>        <mo 
class="MathClass-rel">=</mo> <mi 
>s</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>S</mi> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>s</mi></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-punc">.</mo>
</mrow></math></div>
<!--l. 352--><p class="nopar" > These expected values allow us to calculate the average costs
</p>
                                                                          

                                                                          
   <div class="math-display"><!--l. 354--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
              <!--mstyle 
class="text"--><mtext  >&#x00A0;Long&#x00A0;run&#x00A0;average&#x00A0;cost,&#x00A0;dollars&#x00A0;per&#x00A0;week</mtext><!--/mstyle--> <mo 
class="MathClass-rel">=</mo> <mfrac><mrow 
><mi 
>K</mi> <mo 
class="MathClass-bin">+</mo> <mi 
>E</mi> <mfenced separators="" 
open="["  close="]" ><mrow><msub><mrow 
><mi 
>R</mi></mrow><mrow 
><mi 
>i</mi></mrow></msub 
></mrow></mfenced> </mrow> 
    <mrow 
><mi 
>E</mi> <mfenced separators="" 
open="["  close="]" ><mrow><msub><mrow 
><mi 
>N</mi></mrow><mrow 
><mi 
>i</mi></mrow></msub 
></mrow></mfenced> </mrow></mfrac>    <mo 
class="MathClass-punc">.</mo>
</mrow></math></div>
<!--l. 357--><p class="nopar" > Then <!--l. 358--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>E</mi> <mfenced separators="" 
open="["  close="]" ><mrow><msub><mrow 
><mi 
>R</mi></mrow><mrow 
><mi 
>i</mi></mrow></msub 
></mrow></mfenced> <mo 
class="MathClass-rel">=</mo> <mi 
>r</mi><msub><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi></mrow></msub 
></mrow></math>
and <!--l. 358--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>E</mi> <mfenced separators="" 
open="["  close="]" ><mrow><msub><mrow 
><mi 
>N</mi></mrow><mrow 
><mi 
>i</mi></mrow></msub 
></mrow></mfenced> <mo 
class="MathClass-rel">=</mo> <mi 
>s</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>S</mi> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>s</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math>.
Therefore
</p>
   <div class="math-display"><!--l. 359--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
      <!--mstyle 
class="text"--><mtext  >&#x00A0;Long&#x00A0;run&#x00A0;average&#x00A0;cost,&#x00A0;dollars&#x00A0;per&#x00A0;week</mtext><!--/mstyle--> <mo 
class="MathClass-rel">=</mo> <mfrac><mrow 
><mi 
>K</mi> <mo 
class="MathClass-bin">+</mo> <mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>3</mn></mrow><mo 
class="MathClass-close">)</mo></mrow><mi 
>r</mi><mi 
>s</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><msup><mrow 
><mi 
>S</mi></mrow><mrow 
><mn>2</mn></mrow></msup 
> <mo 
class="MathClass-bin">&#x2212;</mo> <msup><mrow 
><mi 
>s</mi></mrow><mrow 
><mn>2</mn></mrow></msup 
></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow> 
         <mrow 
><mi 
>s</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>S</mi> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>s</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></mfrac>         <mo 
class="MathClass-punc">.</mo>
</mrow></math></div>
<!--l. 362--><p class="nopar" > Simplify the analysis by setting <!--l. 363--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>x</mi> <mo 
class="MathClass-rel">=</mo> <mi 
>s</mi><mo 
class="MathClass-bin">&#x2215;</mo><mi 
>S</mi></mrow></math>
so that the expression of interest is
</p>
                                                                          

                                                                          
   <div class="math-display"><!--l. 365--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                 <!--mstyle 
class="text"--><mtext  >&#x00A0;Long&#x00A0;run&#x00A0;average&#x00A0;cost</mtext><!--/mstyle--> <mo 
class="MathClass-rel">=</mo> <mfrac><mrow 
><mi 
>K</mi> <mo 
class="MathClass-bin">+</mo> <mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>3</mn></mrow><mo 
class="MathClass-close">)</mo></mrow><mi 
>r</mi><msup><mrow 
><mi 
>S</mi></mrow><mrow 
><mn>3</mn></mrow></msup 
><mi 
>x</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn> <mo 
class="MathClass-bin">&#x2212;</mo> <msup><mrow 
><mi 
>x</mi></mrow><mrow 
><mn>2</mn></mrow></msup 
></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow> 
        <mrow 
><msup><mrow 
><mi 
>S</mi></mrow><mrow 
><mn>2</mn></mrow></msup 
><mi 
>x</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>x</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></mfrac>        <mo 
class="MathClass-punc">.</mo>
</mrow></math></div>
<!--l. 368--><p class="nopar" >
</p>
   <div class="newtheorem">
<!--l. 370--><p class="noindent" ><span class="head">
<span 
class="cmti-12">Remark.</span>  </span>Aside from being a good thing to non-dimensionalize the model as
much as possible, it also appears that optimizing the original long run cost
average in the original variables <!--l. 373--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>S</mi></mrow></math>
and <!--l. 373--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>s</mi></mrow></math>
is messy and difficult. This of course would not be known until you had tried
it. However, knowing the optimization is difficult in variables <!--l. 376--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>s</mi></mrow></math>
and <!--l. 376--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>S</mi></mrow></math>
additionally motivates making the transformation to the non-dimensional
ratio <!--l. 377--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>x</mi> <mo 
class="MathClass-rel">=</mo> <mi 
>s</mi><mo 
class="MathClass-bin">&#x2215;</mo><mi 
>S</mi></mrow></math>.
</p>
   </div>
<!--l. 380--><p class="indent" >   Now we have a function in two variables that we wish
to optimize. Take the partial derivatives with respect to
<!--l. 381--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>x</mi></mrow></math> and
<!--l. 381--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>S</mi></mrow></math> and set them
equal to <!--l. 382--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mn>0</mn></mrow></math>,
then solve, to find the critical points.
</p><!--l. 384--><p class="indent" >   The results are that
                                                                          

                                                                          
</p><!--tex4ht:inline--><!--l. 388--><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 
>x</mi></mrow><mrow 
><!--mstyle 
class="text"--><mtext  >&#x00A0;opt</mtext><!--/mstyle--></mrow></msub 
></mtd>                             <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mfrac><mrow 
><mn>1</mn></mrow> 
<mrow 
><mn>3</mn></mrow></mfrac><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 
>S</mi></mrow><mrow 
><!--mstyle 
class="text"--><mtext  >&#x00A0;opt</mtext><!--/mstyle--></mrow></msub 
></mtd>                            <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mn>3</mn><msup><mrow 
> <mfenced separators="" 
open="("  close=")" ><mrow><mfrac><mrow 
><mn>3</mn><mi 
>K</mi></mrow>
 <mrow 
><mn>4</mn><mi 
>r</mi></mrow></mfrac> </mrow></mfenced></mrow><mrow 
><mfrac><mrow 
><mn>1</mn></mrow>
<mrow 
><mn>3</mn></mrow></mfrac> </mrow></msup 
><mo 
class="MathClass-punc">.</mo><mspace width="2em"/></mtd>                            <mtd 
columnalign="right" class="align-label"></mtd>                            <mtd 
class="align-label">
   <mspace width="2em"/></mtd></mtr></mtable></math>
<!--l. 389--><p class="noindent" >That is, the optimal value of the maximum amount of cash to keep varies
as the cube root of the cost ratios, and the reset amount of cash is
<!--l. 390--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>3</mn></mrow></math> of
that amount.
</p><!--l. 393--><p class="noindent" >
</p>
   <h4 class="likesubsectionHead"><a 
 id="x1-10000"></a>Criticism of the model</h4>
<!--l. 395--><p class="noindent" >The first test of the model would be to look at the amounts
<!--l. 395--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>S</mi></mrow></math> and
<!--l. 395--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>s</mi></mrow></math> for
well-managed banks and determine if the banks are using optimal values. That is,
one could do a statistical survey of well-managed banks and determine if the values
of <!--l. 398--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>S</mi></mrow></math>
vary as the cube root of the cost ratio, and if the restart value is
<!--l. 399--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>3</mn></mrow></math> of
that amount. Of course, this assumes that the model is valid and that
banks are following the predictions of the model, either consciously or
not.
</p><!--l. 403--><p class="indent" >   This model is too simple and could be modified in a number of ways. One
change might be to change the reserve requirements to vary with the level of
deposits, just as the 2010 Federal Reserve requirements vary. Adding
additional reserve requirement levels to the current model adds a level of
                                                                          

                                                                          
complexity, but does not substantially change the level of mathematics
involved.
</p><!--l. 410--><p class="indent" >   The most important change would be to allow the changes in deposits to have
a continuous distribution instead of jumping up or down by one unit in each time
interval. Modification to continuous time would make the model more realistic
instead of changing the cash at discrete time intervals. The assumption of
statistical independence from time step to time step is questionable, and so could
also be relaxed. All these changes require deeper analysis and more sophisticated
stochastic processes.
</p><!--l. 419--><p class="noindent" >
</p>
   <h4 class="likesubsectionHead"><a 
 id="x1-11000"></a>Sources</h4>
<!--l. 421--><p class="noindent" >This section is adapted from: Section 6.1.3 and 6.2, pages 157-164 in <span 
class="cmti-12">An</span>
<span 
class="cmti-12">Introduction to Stochastic Modeling</span>, <span class="cite">[<a 
href="#Xtaylor98-introd-stoch-model">1</a>]</span>.
</p><!--l. 425--><p class="indent" >   _______________________________________________________________________________________________
</p><!--l. 427--><p class="indent" >   <img 
src="../../../../CommonInformation/Lessons/solveproblems.png" alt="Problems to Work"  
 />
</p>
   <h3 class="likesectionHead"><a 
 id="x1-12000"></a>Problems to Work for Understanding</h3>
<!--l. 429--><p class="noindent" >
      </p><ol  class="enumerate1" >
      <li 
  class="enumerate" id="x1-12002x1">Find a particular solution <!--l. 431--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msubsup><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow><mrow 
><mi 
>p</mi></mrow></msubsup 
></mrow></math>
      to the non-homogeneous equation
                                                                          

                                                                          
<div class="math-display"><!--l. 433--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                   <msubsup><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow><mrow 
><mi 
>p</mi></mrow></msubsup 
> <mo 
class="MathClass-rel">=</mo> <msub><mrow 
><mi 
>&#x03B4;</mi></mrow><mrow 
>
<mi 
>s</mi><mi 
>k</mi></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <mfrac><mrow 
><mn>1</mn></mrow> 
<mrow 
><mn>2</mn></mrow></mfrac><msubsup><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn><mo 
class="MathClass-punc">,</mo><mi 
>k</mi></mrow><mrow 
><mi 
>p</mi></mrow></msubsup 
> <mo 
class="MathClass-bin">+</mo> <mfrac><mrow 
><mn>1</mn></mrow> 
<mrow 
><mn>2</mn></mrow></mfrac><msubsup><mrow 
><mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mo 
class="MathClass-bin">+</mo><mn>1</mn><mo 
class="MathClass-punc">,</mo><mi 
>k</mi></mrow><mrow 
><mi 
>p</mi></mrow></msubsup 
><mo 
class="MathClass-punc">.</mo>
</mrow></math></div>
      <!--l. 436--><p class="nopar" > using the trial function
</p>
<div class="math-display"><!--l. 438--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
><msubsup><mrow 
>
<mi 
>W</mi></mrow><mrow 
><mi 
>s</mi><mi 
>k</mi></mrow><mrow 
><mi 
>p</mi></mrow></msubsup 
> <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="left"><mi 
>C</mi> <mo 
class="MathClass-bin">+</mo> <mi 
>D</mi><mi 
>s</mi><mspace width="1em" class="quad"/></mtd><mtd 
class="array"  columnalign="left"><!--mstyle 
class="text"--><mtext  >&#x00A0;&#x00A0;if&#x00A0;</mtext><!--/mstyle--><mi 
>s</mi> <mo 
class="MathClass-rel">&#x2264;</mo> <mi 
>k</mi> </mtd></mtr><mtr><mtd 
class="array"  columnalign="left"><mi 
>E</mi> <mo 
class="MathClass-bin">+</mo> <mi 
>F</mi> <mi 
>s</mi> <mspace width="1em" class="quad"/> </mtd> <mtd 
class="array"  columnalign="left"><!--mstyle 
class="text"--><mtext  >&#x00A0;if&#x00A0;</mtext><!--/mstyle--> <mi 
>s</mi> <mo 
class="MathClass-rel">&#x003E;</mo> <mi 
>k</mi><mo 
class="MathClass-punc">.</mo></mtd>
</mtr><!--@{}l@{\quad }l@{}--></mtable>                                                                                    </mrow></mfenced>
</mrow></math></div>
      <!--l. 444--><p class="nopar" >
      </p></li>
      <li 
  class="enumerate" id="x1-12004x2">Show that
                                                                          

                                                                          
      <!--tex4ht:inline--><!--l. 488--><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 
>W</mi></mrow><mrow 
><mi 
>s</mi></mrow></msub 
></mtd>                <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo><munderover accentunder="false" accent="false"><mrow  
><mo mathsize="big" 
> &#x2211;</mo>
  </mrow><mrow 
><mi 
>k</mi><mo 
class="MathClass-rel">=</mo><mn>1</mn></mrow><mrow 
><mi 
>S</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></munderover 
><mi 
>k</mi><msub><mrow 
><mi 
>W</mi></mrow><mrow 
>
<mi 
>s</mi><mi 
>k</mi></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"></mtd>                     <mtd 
class="align-even"> <mo 
class="MathClass-rel">=</mo> <mn>2</mn> <mfenced separators="" 
open="["  close="]" ><mrow> <mfrac><mrow 
><mi 
>s</mi></mrow>
<mrow 
><mi 
>S</mi></mrow></mfrac><munderover accentunder="false" accent="false"><mrow  
><mo mathsize="big" 
>&#x2211;</mo>
  </mrow><mrow 
><mi 
>k</mi><mo 
class="MathClass-rel">=</mo><mn>1</mn></mrow><mrow 
><mi 
>S</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></munderover 
><mi 
>k</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>S</mi> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>k</mi></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-bin">&#x2212;</mo><munderover accentunder="false" accent="false"><mrow  
><mo mathsize="big" 
>&#x2211;</mo>
  </mrow><mrow 
><mi 
>k</mi><mo 
class="MathClass-rel">=</mo><mn>1</mn></mrow><mrow 
><mi 
>s</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></munderover 
><mi 
>k</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>s</mi> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>k</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></mfenced><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"> <mo 
class="MathClass-rel">=</mo> <mn>2</mn> <mfenced separators="" 
open="["  close="]" ><mrow> <mfrac><mrow 
><mi 
>s</mi></mrow>
<mrow 
><mi 
>S</mi></mrow></mfrac> <mfenced separators="" 
open="["  close="]" ><mrow><mfrac><mrow 
><mi 
>S</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>S</mi> <mo 
class="MathClass-bin">&#x2212;</mo> <mn>1</mn></mrow><mo 
class="MathClass-close">)</mo></mrow><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>S</mi> <mo 
class="MathClass-bin">+</mo> <mn>1</mn></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow>
          <mrow 
><mn>6</mn></mrow></mfrac>          </mrow></mfenced> <mo 
class="MathClass-bin">&#x2212;</mo><mfrac><mrow 
><mi 
>s</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>s</mi> <mo 
class="MathClass-bin">&#x2212;</mo> <mn>1</mn></mrow><mo 
class="MathClass-close">)</mo></mrow><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>s</mi> <mo 
class="MathClass-bin">+</mo> <mn>1</mn></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow> 
         <mrow 
><mn>6</mn></mrow></mfrac>         </mrow></mfenced><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"> <mo 
class="MathClass-rel">=</mo> <mfrac><mrow 
><mi 
>s</mi></mrow> 
<mrow 
><mn>3</mn></mrow></mfrac> <mfenced separators="" 
open="["  close="]" ><mrow><msup><mrow 
><mi 
>S</mi></mrow><mrow 
><mn>2</mn></mrow></msup 
> <mo 
class="MathClass-bin">&#x2212;</mo> <msup><mrow 
><mi 
>s</mi></mrow><mrow 
><mn>2</mn></mrow></msup 
></mrow></mfenced><mspace width="2em"/></mtd>                                                                                 <mtd 
columnalign="right" class="align-label"></mtd>                   <mtd 
class="align-label">
<mspace width="2em"/></mtd></mtr></mtable></math>
      <!--l. 489--><p class="noindent" >You will need formulas for <!--l. 489--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msubsup><mrow 
><mo 
class="MathClass-op">&#x2211;</mo>
  <!--nolimits--></mrow><mrow 
><mi 
>k</mi><mo 
class="MathClass-rel">=</mo><mn>1</mn></mrow><mrow 
><mi 
>N</mi></mrow></msubsup 
><mi 
>k</mi></mrow></math>
      and <!--l. 489--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msubsup><mrow 
><mo 
class="MathClass-op">&#x2211;</mo>
  <!--nolimits--></mrow><mrow 
><mi 
>k</mi><mo 
class="MathClass-rel">=</mo><mn>1</mn></mrow><mrow 
><mi 
>N</mi></mrow></msubsup 
><msup><mrow 
><mi 
>k</mi></mrow><mrow 
><mn>2</mn></mrow></msup 
></mrow></math> or
      alternatively for <!--l. 490--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msubsup><mrow 
><mo 
class="MathClass-op">&#x2211;</mo>
  <!--nolimits--></mrow><mrow 
><mi 
>k</mi><mo 
class="MathClass-rel">=</mo><mn>1</mn></mrow><mrow 
><mi 
>N</mi></mrow></msubsup 
><mi 
>k</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>M</mi> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>k</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math>.
      These are easily found or derived.
      </p></li>
      <li 
  class="enumerate" id="x1-12006x3">
           <ol  class="enumerate2" >
           <li 
  class="enumerate" id="x1-12008x1">For the long run average cost
<div class="math-display"><!--l. 497--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                       <mi 
>C</mi> <mo 
class="MathClass-rel">=</mo> <mfrac><mrow 
><mi 
>K</mi> <mo 
class="MathClass-bin">+</mo> <mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>3</mn></mrow><mo 
class="MathClass-close">)</mo></mrow><mi 
>r</mi><msup><mrow 
><mi 
>S</mi></mrow><mrow 
><mn>3</mn></mrow></msup 
><mi 
>x</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn> <mo 
class="MathClass-bin">&#x2212;</mo> <msup><mrow 
><mi 
>x</mi></mrow><mrow 
><mn>2</mn></mrow></msup 
></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow> 
        <mrow 
><msup><mrow 
><mi 
>S</mi></mrow><mrow 
><mn>2</mn></mrow></msup 
><mi 
>x</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>S</mi> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>x</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></mfrac>        <mo 
class="MathClass-punc">.</mo>
</mrow></math></div>
           <!--l. 499--><p class="nopar" > find <!--l. 500--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>&#x2202;</mi><mi 
>C</mi><mo 
class="MathClass-bin">&#x2215;</mo><mi 
>&#x2202;</mi><mi 
>x</mi></mrow></math>.
           </p></li>
           <li 
  class="enumerate" id="x1-12010x2">For the long run average cost
                                                                          

                                                                          
<div class="math-display"><!--l. 503--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                       <mi 
>C</mi> <mo 
class="MathClass-rel">=</mo> <mfrac><mrow 
><mi 
>K</mi> <mo 
class="MathClass-bin">+</mo> <mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>3</mn></mrow><mo 
class="MathClass-close">)</mo></mrow><mi 
>r</mi><msup><mrow 
><mi 
>S</mi></mrow><mrow 
><mn>3</mn></mrow></msup 
><mi 
>x</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn> <mo 
class="MathClass-bin">&#x2212;</mo> <msup><mrow 
><mi 
>x</mi></mrow><mrow 
><mn>2</mn></mrow></msup 
></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow> 
        <mrow 
><msup><mrow 
><mi 
>S</mi></mrow><mrow 
><mn>2</mn></mrow></msup 
><mi 
>x</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>x</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></mfrac>        <mo 
class="MathClass-punc">.</mo>
</mrow></math></div>
           <!--l. 505--><p class="nopar" > find <!--l. 506--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>&#x2202;</mi><mi 
>C</mi><mo 
class="MathClass-bin">&#x2215;</mo><mi 
>&#x2202;</mi><mi 
>S</mi></mrow></math>.
           </p></li>
           <li 
  class="enumerate" id="x1-12012x3">Find the optimum values of <!--l. 508--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>x</mi></mrow></math>
           and <!--l. 508--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>S</mi></mrow></math>.</li></ol>
      </li></ol>
<!--l. 512--><p class="noindent" >__________________________________________________________________________
</p><!--l. 514--><p class="indent" >   <img 
src="../../../../CommonInformation/Lessons/books.png" alt="Books"  
 />
</p>
   <h3 class="likesectionHead"><a 
 id="x1-13000"></a>Reading Suggestion:</h3>
<!--l. 1--><p class="noindent" >
</p>
   <h3 class="likesectionHead"><a 
 id="x1-14000"></a>References</h3>
<!--l. 1--><p class="noindent" >
   </p><div class="thebibliography">
   <p class="bibitem" ><span class="biblabel">
 [1]<span class="bibsp">&#x00A0;&#x00A0;&#x00A0;</span></span><a 
 id="Xtaylor98-introd-stoch-model"></a>H.&#x00A0;M.  Taylor  and  Samuel  Karlin.   <span 
class="cmti-12">An  Introduction  to  Stochastic</span>
   <span 
class="cmti-12">Modeling</span>. Academic Press, third edition, 1998.
</p>
                                                                          

                                                                          
   </div>
<!--l. 527--><p class="noindent" >__________________________________________________________________________
</p><!--l. 529--><p class="noindent" >
</p>
   <h3 class="likesectionHead"><a 
 id="x1-15000"></a>Outside Readings and Links:</h3>
<!--l. 530--><p class="noindent" >
      </p><ol  class="enumerate1" >
      <li 
  class="enumerate" id="x1-15002x1"><a 
href="http://www.youtube.com/watch?v=9V5OP-VmXgE" >Milton Friedman: The Purpose of the Federal Reserve system</a>.. The
      reaction of the Federal Reserve system at the beginning of the Great
      Depression.</li></ol>
<!--l. 538--><p class="noindent" >__________________________________________________________________________
</p><!--l. 3--><p class="indent" >   <span 
class="cmr-10x-x-109">I check all the information on each page for correctness and typographical errors.</span>
<span 
class="cmr-10x-x-109">Nevertheless, some errors may occur and I would be grateful if you would alert me to</span>
<span 
class="cmr-10x-x-109">such errors. I make every reasonable effort to present current and accurate information</span>
<span 
class="cmr-10x-x-109">for public use, however I do not guarantee the accuracy or timeliness of information on</span>
<span 
class="cmr-10x-x-109">this website. Your use of the information from this website is strictly voluntary and at</span>
<span 
class="cmr-10x-x-109">your risk.</span>
</p><!--l. 12--><p class="indent" >   <span 
class="cmr-10x-x-109">I have checked the links to external sites for usefulness. Links to external websites</span>
<span 
class="cmr-10x-x-109">are provided as a convenience. I do not endorse, control, monitor, or guarantee the</span>
<span 
class="cmr-10x-x-109">information contained in any external website. I don&#x2019;t guarantee that the links are</span>
<span 
class="cmr-10x-x-109">active at all times. Use the links here with the same caution as you would all</span>
<span 
class="cmr-10x-x-109">information on the Internet. This website reflects the thoughts, interests and opinions of</span>
<span 
class="cmr-10x-x-109">its author. They do not explicitly represent official positions or policies of my</span>
<span 
class="cmr-10x-x-109">employer.</span>
</p><!--l. 22--><p class="indent" >   <span 
class="cmr-10x-x-109">Information on this website is subject to change without notice.</span>
</p><!--l. 2--><p class="indent" >   Steve Dunbar&#x2019;s Home Page, <span class="obeylines-h"><span class="verb"><span 
class="cmtt-12">http://www.math.unl.edu/~sdunbar1</span></span></span>
</p><!--l. 4--><p class="indent" >   Email to Steve Dunbar, <span class="obeylines-h"><span class="verb"><span 
class="cmtt-12">sdunbar1</span><span 
class="cmtt-12">&#x00A0;at</span><span 
class="cmtt-12">&#x00A0;unl</span><span 
class="cmtt-12">&#x00A0;dot</span><span 
class="cmtt-12">&#x00A0;edu</span></span></span>
</p><!--l. 542--><p class="indent" >   Last modified: Processed from <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span 
class="E">E</span>X</span></span>&#x00A0;source on June 14, 2010
</p>
    
</body> 
</html> 

                                                                          



