<?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="stochasticdes.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="stochasticdes.tex" /> 
<meta name="date" content="2011-06-28 05:58:00" /> 
<link rel="stylesheet" type="text/css" href="stochasticdes.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. 22--><p class="noindent" >
</p><!--l. 22--><p class="noindent" ><span 
class="cmr-17">Stochastic Differential Equations and the</span>
<span 
class="cmr-17">Euler-Maruyama Method</span></p></div>
<!--l. 24--><p class="indent" >   _______________________________________________________________________
</p><!--l. 1--><p class="indent" >   Note: To read these pages properly, you will need the latest version of the
Mozilla Firefox browser, with the STIX fonts installed. In a few sections, you will
also need the latest Java plug-in, and JavaScript must be enabled. If you use a
browser other than Firefox, you should be able to access the pages and run the
applets. However, mathematical expressions will probably not display
correctly. Firefox is currently the only browser that supports all of the open
standards.
</p><!--l. 28--><p class="indent" >   _______________________________________________________________________________________________
</p><!--l. 30--><p class="indent" >   <img 
src="../../../../CommonInformation/Lessons/rating.png" alt="Rating"  
 />
                                                                          

                                                                          
</p>
   <h3 class="likesectionHead"><a 
 id="x1-1000"></a>Rating</h3>
<!--l. 34--><p class="noindent" >Mathematically Mature: may contain mathematics beyond calculus with
proofs.
</p><!--l. 37--><p class="indent" >   _______________________________________________________________________________________________
</p><!--l. 39--><p class="indent" >   <img 
src="../../../../CommonInformation/Lessons/question_mark.png" alt="Section Starter Question"  
 />
</p>
   <h3 class="likesectionHead"><a 
 id="x1-2000"></a>Section Starter Question</h3>
<!--l. 41--><p class="noindent" >Explain how to use a slope-field diagram to solve the ordinary differential
equation
</p>
   <div class="math-display"><!--l. 43--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                                            <mfrac><mrow 
><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>x</mo></mrow> 
<mrow 
><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>t</mo></mrow></mfrac> <mo 
class="MathClass-rel">=</mo> <mi 
>x</mi><mo 
class="MathClass-punc">.</mo>
</mrow></math></div>
<!--l. 45--><p class="nopar" > How would you turn that process into an algorithm to numerically compute an
approximate solution without a diagram?
</p><!--l. 49--><p class="indent" >   _______________________________________________________________________________________________
</p><!--l. 51--><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. 54--><p class="noindent" >
                                                                          

                                                                          
      </p><ol  class="enumerate1" >
      <li 
  class="enumerate" id="x1-3002x1">We         can         numerically         simulate         the         solution
      to stochastic differential equations with an analog to Euler&#x2019;s method,
      called the Euler-Maruyama (EM) method.</li></ol>
<!--l. 61--><p class="noindent" >__________________________________________________________________________
</p><!--l. 63--><p class="indent" >   <img 
src="../../../../CommonInformation/Lessons/vocabulary.png" alt="Vocabulary"  
 />
</p>
   <h3 class="likesectionHead"><a 
 id="x1-4000"></a>Vocabulary</h3>
<!--l. 65--><p class="noindent" >
      </p><ol  class="enumerate1" >
      <li 
  class="enumerate" id="x1-4002x1">A  <span 
class="cmbx-12">stochastic  differential  equation  </span>is  a  mathematical  equation
      relating  a  stochastic  process  to  its  local  deterministic  and  random
      components. The goal is to extend the relation to find the stochastic
      process.  Under  mild  conditions  on  the  relationship,  and  with  a
      specifying initial condition, solutions of stochastic differential equations
      exist and are unique.
      </li>
      <li 
  class="enumerate" id="x1-4004x2">The <span 
class="cmbx-12">Euler-Maruyama (EM) method </span>is a numerical method for
      simulating the solutions of a stochastic differential equation based on
      the definition of the It&#x00F4; stochastic integral: Given
<div class="math-display"><!--l. 78--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
            <mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>X(t)</mo> <mo 
class="MathClass-rel">=</mo> <mi 
>G</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>t</mo> <mo 
class="MathClass-bin">+</mo><mi 
>H</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>W(t)</mo><mo 
class="MathClass-punc">,</mo><mspace width="2em" class="qquad"/><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">=</mo> <msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
><mo 
class="MathClass-punc">,</mo>
</mrow></math></div>
                                                                          

                                                                          
      <!--l. 80--><p class="nopar" > and a step size <!--l. 80--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>t</mo></mrow></math>,
      we approximate and simulate with
</p>
<div class="math-display"><!--l. 81--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
       <msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mi 
>j</mi></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mi 
>j</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <mi 
>G</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mi 
>j</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></msub 
></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>t</mo> <mo 
class="MathClass-bin">+</mo><mi 
>H</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mi 
>j</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></msub 
></mrow><mo 
class="MathClass-close">)</mo></mrow><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>W</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mi 
>j</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>t</mo></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>W</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mi 
>j</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></msub 
></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow><mo 
class="MathClass-close">)</mo></mrow>
</mrow></math></div>
      <!--l. 84--><p class="nopar" >
      </p></li>
      <li 
  class="enumerate" id="x1-4006x3">Extensions and variants of Standard Brownian Motion defined through
      stochastic differential equations are <span 
class="cmbx-12">Brownian Motion with drift</span>,
      <span 
class="cmbx-12">scaled Brownian Motion</span>, and <span 
class="cmbx-12">geometric Brownian Motion</span>.</li></ol>
<!--l. 92--><p class="noindent" >__________________________________________________________________________
</p><!--l. 94--><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. 97--><p class="noindent" >
</p>
   <h4 class="likesubsectionHead"><a 
 id="x1-6000"></a>Stochastic Differential Equations: Symbolically </h4>
<!--l. 99--><p class="noindent" >The straight line segment is the building block of differential calculus. The
basic idea behind differential calculus is that differentiable functions,
no matter how difficult their global behavior, are locally approximated
by straight line segments. In particular, this is the idea behind Euler&#x2019;s
                                                                          

                                                                          
method for approximating differentiable functions defined by differential
equations.
</p><!--l. 106--><p class="indent" >   We know that rescaling (&#x201C;zooming in&#x201D; on) Brownian motion does not produce
a straight line, it produces another image of Brownian motion. This self-similarity
is ideal for an infinitesimal building block, for instance, we could build global
Brownian motion out of lots of local &#x201C;chunks&#x201D; of Brownian motion. This suggests
we could build other stochastic processes out of suitably scaled Brownian motion.
In addition, if we include straight line segments we can overlay the behavior of
differentiable functions onto the stochastic processes as well. Thus, straight line
segments and &#x201C;chunks&#x201D; of Brownian motion are the building blocks of stochastic
calculus.
</p><!--l. 117--><p class="indent" >   With stochastic differential calculus, we can build a nice class of new
stochastic processes. We do this by specifying how to build the new stochastic
processes locally from our base deterministic function, the straight line and our
base stochastic process, Standard Brownian Motion. We write the local change in
value of the stochastic process over a time interval of (infinitesimal) length
<!--l. 122--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>t</mo></mrow></math> as </p><table class="equation"><tr><td>
<a 
 id="x1-6001r1"></a>
<!--l. 123--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" class="equation">
              <mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>X</mo> <mo 
class="MathClass-rel">=</mo> <mi 
>G</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow><mo 
class="MathClass-close">)</mo></mrow><mspace width="0em" class="thinspace"/><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>t</mo> <mo 
class="MathClass-bin">+</mo><mi 
>H</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow><mo 
class="MathClass-close">)</mo></mrow><mspace width="0em" class="thinspace"/><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>W(t)</mo><mo 
class="MathClass-punc">,</mo><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">=</mo> <msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
><mo 
class="MathClass-punc">.</mo>
</math></td><td class="eq-no">(1)</td></tr></table>
<!--l. 127--><p class="indent" >   Note that we are not allowed to write
</p>
                                                                          

                                                                          
   <div class="math-display"><!--l. 128--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                     <mfrac><mrow 
><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>X</mo> </mrow> 
 <mrow 
><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>t</mo></mrow></mfrac>  <mo 
class="MathClass-rel">=</mo> <mi 
>G</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-bin">+</mo> <mi 
>H</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow><mo 
class="MathClass-close">)</mo></mrow><mfrac><mrow 
><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>W</mo> </mrow>
 <mrow 
><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>t</mo></mrow></mfrac> <mo 
class="MathClass-punc">,</mo><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">=</mo> <msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
>
</mrow></math></div>
<!--l. 130--><p class="nopar" > since Standard Brownian Motion is nowhere differentiable with probability 1.
(Actually, the informal stochastic differential equation is a compact way of writing
a rigorously defined, equivalent implicit It&#x00F4; integral equation. Since we do not
have the required rigor, we will approach the stochastic differential equation
intuitively.)
</p><!--l. 137--><p class="indent" >   The stochastic differential equation says the initial point
<!--l. 137--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mrow ><mo 
class="MathClass-open">(</mo><mrow><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
><mo 
class="MathClass-punc">,</mo><msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math> is specified,
perhaps with <!--l. 138--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
></mrow></math>
a random variable with a given distribution. A deterministic
component at each point has a slope determined through
<!--l. 140--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>G</mi></mrow></math> at that
point. In addition, there is some random perturbation that effects the evolution of
the process. The random perturbation is normally distributed with mean
<!--l. 142--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mn>0</mn></mrow></math>. The variance of the
random perturbation is <!--l. 143--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msup><mrow 
><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>H</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow><mrow 
><mn>2</mn></mrow></msup 
></mrow></math>
at <!--l. 143--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi><mo 
class="MathClass-punc">,</mo><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math>.
This is a simple expression of a Stochastic Differential Equation (SDE) which
determines a stochastic process, just as an Ordinary Differential Equation (ODE)
determines a differentiable function. We extend the process with the incremental
change information and repeat. This is an expression in words of the
<span 
class="cmbx-12">Euler-Maruyama method </span>for numerically simulating the stochastic differential
expression.
</p>
   <div class="newtheorem">
<!--l. 153--><p class="noindent" ><span class="head">
                                                                          

                                                                          
<span 
class="cmti-12">Example.</span>  </span>The simplest stochastic differential equation is
</p>
   <div class="math-display"><!--l. 155--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                                <mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>X</mo> <mo 
class="MathClass-rel">=</mo> <mi 
>r</mi><mspace width="0em" class="thinspace"/><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>t</mo> <mo 
class="MathClass-bin">+</mo><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>W</mo><mo 
class="MathClass-punc">,</mo><mspace width="2em" class="qquad"/><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>0</mn></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">=</mo> <mi 
>b</mi>
</mrow></math></div>
<!--l. 157--><p class="nopar" > where <!--l. 157--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>r</mi></mrow></math>
is a constant. Take a deterministic initial condition to be <!--l. 158--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>0</mn></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">=</mo> <mi 
>b</mi></mrow></math>.
This process is the stochastic extension of the differential equation expression
of a straight line. The new stochastic process <!--l. 160--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>X</mi></mrow></math>
is drifting or trending at rate <!--l. 161--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>r</mi></mrow></math>
with  a  random  variation  due  to  Brownian  Motion  perturbations  around
that trend. We will later show explicitly that the solution of this SDE is
<!--l. 163--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">=</mo> <mi 
>b</mi> <mo 
class="MathClass-bin">+</mo> <mi 
>r</mi><mi 
>t</mi> <mo 
class="MathClass-bin">+</mo> <mi 
>W</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math>
although it is seems intuitively clear that this should be the process. We will
call this <span 
class="cmbx-12">Brownian motion with drift</span>.
</p>
   </div>
   <div class="newtheorem">
<!--l. 169--><p class="noindent" ><span class="head">
<span 
class="cmti-12">Example.</span>  </span>The next simplest stochastic differential equation is
</p>
                                                                          

                                                                          
   <div class="math-display"><!--l. 171--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                                   <mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>X</mo> <mo 
class="MathClass-rel">=</mo> <mi 
>&#x03C3;</mi><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>W</mo><mo 
class="MathClass-punc">,</mo><mspace width="2em" class="qquad"/><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>0</mn></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">=</mo> <mi 
>b</mi>
</mrow></math></div>
<!--l. 173--><p class="nopar" > This stochastic differential equation says that the process is evolving as a
multiple of Standard Brownian Motion. The solution may be easily guessed as
<!--l. 175--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">=</mo> <mi 
>&#x03C3;</mi><mi 
>W</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math>
which has variance <!--l. 176--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msup><mrow 
><mi 
>&#x03C3;</mi></mrow><mrow 
><mn>2</mn></mrow></msup 
><mi 
>t</mi></mrow></math>
on increments of length <!--l. 176--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>t</mi></mrow></math>.
Sometimes this is called Brownian Motion (in contrast to Standard Brownian
Motion which has variance <!--l. 178--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>t</mi></mrow></math>
on increments of length <!--l. 178--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>t</mi></mrow></math>).
</p>
   </div>
<!--l. 182--><p class="indent" >   We combine the previous two examples to consider
</p>
   <div class="math-display"><!--l. 183--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                                <mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>X</mo> <mo 
class="MathClass-rel">=</mo> <mi 
>r</mi><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>t</mo> <mo 
class="MathClass-bin">+</mo><mi 
>&#x03C3;</mi><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>W</mo><mo 
class="MathClass-punc">,</mo><mspace width="2em" class="qquad"/><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>0</mn></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">=</mo> <mi 
>b</mi>
</mrow></math></div>
<!--l. 185--><p class="nopar" > which has solution <!--l. 185--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">=</mo> <mi 
>b</mi> <mo 
class="MathClass-bin">+</mo> <mi 
>r</mi><mi 
>t</mi> <mo 
class="MathClass-bin">+</mo> <mi 
>&#x03C3;</mi><mi 
>W</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math>,
a <span 
class="cmbx-12">multiple of Brownian Motion with drift</span>
<!--l. 186--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>r</mi></mrow></math> <span 
class="cmbx-12">started</span>
                                                                          

                                                                          
<span 
class="cmbx-12">at </span><!--l. 186--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>b</mi></mrow></math>.
Sometimes this extension of Standard Brownian motion is called Brownian
Motion. Some authors consider this process directly instead of the more special
case we considered in the previous chapter.
</p>
   <div class="newtheorem">
<!--l. 191--><p class="noindent" ><span class="head">
<span 
class="cmti-12">Example.</span>  </span>The next simplest and first non-trivial differential equation is <!--l. 192--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>X</mo> <mo 
class="MathClass-rel">=</mo> <mi 
>X</mi><mspace width="0em" class="thinspace"/><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>W</mo></mrow></math>.
Here the differential equation says that process is evolving like Brownian
motion with a variance which is the square of the process value. When the
process is small, the variance is small, when the process is large, the variance
is large. Expressing the stochastic differential equation as <!--l. 197--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>X</mo> <mo 
class="MathClass-bin">&#x2215;</mo><mi 
>X</mi> <mo 
class="MathClass-rel">=</mo><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>W</mo></mrow></math>
we may say that the relative change acts like Standard Brownian Motion.
The resulting stochastic process is called <span 
class="cmbx-12">geometric Brownian motion</span>
and it will figure extensively in what we consider later as models of security
prices.
</p>
   </div>
   <div class="newtheorem">
<!--l. 206--><p class="noindent" ><span class="head">
<span 
class="cmti-12">Example.</span>  </span>The next simplest differential equation is
</p>
   <div class="math-display"><!--l. 208--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                            <mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>X</mo> <mo 
class="MathClass-rel">=</mo> <mi 
>r</mi><mi 
>X</mi><mspace width="0em" class="thinspace"/><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>t</mo> <mo 
class="MathClass-bin">+</mo><mi 
>&#x03C3;</mi><mi 
>X</mi><mspace width="0em" class="thinspace"/><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>W</mo><mo 
class="MathClass-punc">,</mo><mspace width="2em" class="qquad"/><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>0</mn></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">=</mo> <mi 
>b</mi><mo 
class="MathClass-punc">.</mo>
</mrow></math></div>
                                                                          

                                                                          
<!--l. 210--><p class="nopar" > Here the stochastic differential equation says that the growth of the process
at a point is proportional to the process value, with a random perturbation
proportional to the process value. Again looking ahead, we could write the
differential equation as <!--l. 213--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>X</mo> <mo 
class="MathClass-bin">&#x2215;</mo><mi 
>X</mi> <mo 
class="MathClass-rel">=</mo> <mi 
>r</mi><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>t</mo> <mo 
class="MathClass-bin">+</mo><mi 
>&#x03C3;</mi><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>W</mo></mrow></math>
and interpret it to say the relative rate of increase is proportional to the time
observed together with a random perturbation like a Brownian increment
corresponding to the length of time. We will show later that the analytic
expression for the stochastic process defined by this SDE is <!--l. 218--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>b</mi><mo class="qopname"> exp</mo><!--nolimits--><mrow ><mo 
class="MathClass-open">(</mo><mrow><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>r</mi> <mo 
class="MathClass-bin">&#x2212;</mo><mfrac><mrow 
><mn>1</mn></mrow> 
<mrow 
><mn>2</mn></mrow></mfrac><msup><mrow 
><mi 
>&#x03C3;</mi></mrow><mrow 
><mn>2</mn></mrow></msup 
></mrow><mo 
class="MathClass-close">)</mo></mrow><mi 
>t</mi> <mo 
class="MathClass-bin">+</mo> <mi 
>&#x03C3;</mi><mi 
>W</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math>.
</p>
   </div>
<!--l. 222--><p class="noindent" >
</p>
   <h4 class="likesubsectionHead"><a 
 id="x1-7000"></a>Stochastic Differential Equations: Numerically </h4>
<!--l. 224--><p class="noindent" >The sample path that the Euler-Maruyama method produces numerically is the
analog of using the Euler method.
</p><!--l. 227--><p class="indent" >   The formula for the Euler-Maruyama (EM) method is based on the definition
of the It&#x00F4; stochastic integral:
</p>
   <div class="math-display"><!--l. 229--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
><msub><mrow 
>
<mi 
>X</mi></mrow><mrow 
><mi 
>j</mi></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mi 
>j</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo><mi 
>G</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mi 
>j</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></msub 
></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>t</mo> <mo 
class="MathClass-bin">+</mo><mi 
>H</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mi 
>j</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></msub 
></mrow><mo 
class="MathClass-close">)</mo></mrow><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>W</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mi 
>j</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>t</mo></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-bin">&#x2212;</mo><mi 
>W</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mi 
>j</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></msub 
></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-punc">,</mo><mspace width="2em" class="qquad"/><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mi 
>j</mi></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mi 
>j</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>t</mo><mo 
class="MathClass-punc">.</mo>
</mrow></math></div>
<!--l. 232--><p class="nopar" > Note that the initial conditions <!--l. 232--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
></mrow></math>
and <!--l. 232--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
></mrow></math>
set the starting point.
</p><!--l. 236--><p class="indent" >   In this text, we do not use Brownian motion directly to obtain the increments
<!--l. 237--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>W</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mi 
>j</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>t</mo></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>W</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mi 
>j</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></msub 
></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math> since
we don&#x2019;t have a direct source of values of Brownian Motion. Instead we use
                                                                          

                                                                          
coin-flipping sequences of an appropriate length to create an approximation to
<!--l. 240--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>W</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math>. Note that since
the increments <!--l. 241--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>W</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mi 
>j</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>t</mo></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>W</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mi 
>j</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></msub 
></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math>
are independent and identically distributed, we will use independent coin-flip
sequences to generate the approximation of the increments. That is,
</p>
   <div class="math-display"><!--l. 245--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
<mi 
>d</mi><mi 
>W</mi> <mo 
class="MathClass-rel">=</mo> <mi 
>W</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mi 
>j</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></msub 
><mo 
class="MathClass-bin">+</mo><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>t</mo></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-bin">&#x2212;</mo><mi 
>W</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mi 
>j</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></msub 
></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">=</mo> <mi 
>W</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>t</mo></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">&#x2248;</mo><msub><mrow 
><mi 
>&#x0174;</mi></mrow><mrow 
><mi 
>N</mi></mrow></msub 
><mrow ><mo 
class="MathClass-open">(</mo><mrow><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>t</mo></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">=</mo> <mfrac><mrow 
><mi 
>&#x0174;</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>N</mi><mspace width="0em" class="thinspace"/><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>t</mo></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow> 
   <mrow 
><msqrt><mrow><mi 
>N</mi></mrow></msqrt></mrow></mfrac>    <mo 
class="MathClass-rel">=</mo> <msqrt><mrow><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle> t</mo></mrow></msqrt><mfrac><mrow 
><mi 
>&#x0174;</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>N</mi><mspace width="0em" class="thinspace"/><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>t</mo></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow> 
  <mrow 
><msqrt><mrow><mi 
>N</mi><mspace width="0em" class="thinspace"/><mo 
class="MathClass-op"> <mstyle mathvariant="normal"> d</mstyle> t</mo></mrow></msqrt></mrow></mfrac>  <mo 
class="MathClass-punc">.</mo>
</mrow></math></div>
<!--l. 249--><p class="nopar" > The first equality above is the definition of an increment, the second equality means the
random variables <!--l. 251--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>W</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mi 
>j</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></msub 
> <mo 
class="MathClass-bin">+</mo><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>t</mo></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>W</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mi 
>j</mi><mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></msub 
></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math>
and <!--l. 252--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>W</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>t</mo></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math>
have the same distribution because of the definition of Standard Brownian
Motion which specifies that increments with equal length are normally
distributed with variance equal to the increment length. The approximate
equality occurs because of the approximation of Brownian Motion by
coin-flipping sequences. We generate the approximations using a random
number generator, but we could as well use actual coin-flipping. In the
table below the generation of the sequences is not recorded, only the
summed and scaled (independently sampled) outcomes. For convenience, take
<!--l. 261--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>t</mo> <mo 
class="MathClass-rel">=</mo> <mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>1</mn><mn>0</mn></mrow></math>,
<!--l. 262--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>N</mi> <mo 
class="MathClass-rel">=</mo> <mn>1</mn><mn>0</mn><mn>0</mn></mrow></math>, so we
need <!--l. 263--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>&#x0174;</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn><mn>0</mn><mn>0</mn> <mo 
class="MathClass-bin">&#x22C5;</mo> <mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>1</mn><mn>0</mn></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-bin">&#x2215;</mo><msqrt><mrow><mn>1</mn><mn>0</mn><mn>0</mn></mrow></msqrt> <mo 
class="MathClass-rel">=</mo> <msub><mrow 
><mi 
>T</mi></mrow><mrow 
><mn>1</mn><mn>0</mn></mrow></msub 
><mo 
class="MathClass-bin">&#x2215;</mo><mn>1</mn><mn>0</mn></mrow></math>.
Then to obtain the entries in the column labeled
<!--l. 264--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>d</mi><mi 
>W</mi></mrow></math> in the table
we flip a coin <!--l. 265--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mn>1</mn><mn>0</mn></mrow></math>
and record <!--l. 265--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>T</mi></mrow><mrow 
><mn>1</mn><mn>0</mn></mrow></msub 
><mo 
class="MathClass-bin">&#x2215;</mo><mn>1</mn><mn>0</mn></mrow></math>.
Take <!--l. 266--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>r</mi> <mo 
class="MathClass-rel">=</mo> <mn>2</mn></mrow></math>,
<!--l. 266--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>b</mi> <mo 
class="MathClass-rel">=</mo> <mn>1</mn></mrow></math>, and
                                                                          

                                                                          
<!--l. 266--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>&#x03C3;</mi> <mo 
class="MathClass-rel">=</mo> <mn>1</mn></mrow></math>, so
we simulate the solution of
</p>
   <div class="math-display"><!--l. 268--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                             <mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>X</mo> <mo 
class="MathClass-rel">=</mo> <mn>2</mn><mi 
>X</mi><mspace width="0em" class="thinspace"/><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>t</mo> <mo 
class="MathClass-bin">+</mo><mi 
>X</mi><mspace width="0em" class="thinspace"/><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>W</mo><mo 
class="MathClass-punc">,</mo><mspace width="2em" class="qquad"/><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>0</mn></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">=</mo> <mn>1</mn><mo 
class="MathClass-punc">.</mo>
</mrow></math></div>
<!--l. 270--><p class="nopar" >
</p>
   <div class="tabular"> <table id="TBL-1" class="tabular" 
cellspacing="0" cellpadding="0" rules="groups" 
><colgroup id="TBL-1-1g"><col 
id="TBL-1-1" /></colgroup><colgroup id="TBL-1-2g"><col 
id="TBL-1-2" /></colgroup><colgroup id="TBL-1-3g"><col 
id="TBL-1-3" /></colgroup><colgroup id="TBL-1-4g"><col 
id="TBL-1-4" /></colgroup><colgroup id="TBL-1-5g"><col 
id="TBL-1-5" /></colgroup><colgroup id="TBL-1-6g"><col 
id="TBL-1-6" /></colgroup><colgroup id="TBL-1-7g"><col 
id="TBL-1-7" /></colgroup><colgroup id="TBL-1-8g"><col 
id="TBL-1-8" /></colgroup><tr 
class="hline"><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td></tr><tr  
 style="vertical-align:baseline;" id="TBL-1-1-"><td  style="text-align:center; white-space:nowrap;" id="TBL-1-1-1"  
class="td11"><!--l. 274--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mi 
>j</mi></math></td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-1-2"  
class="td11"><!--l. 274--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mi 
>j</mi></mrow></msub 
></math></td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-1-3"  
class="td11"><!--l. 274--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mi 
>j</mi></mrow></msub 
></math></td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-1-4"  
class="td11"><!--l. 274--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mn>2</mn><msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mi 
>j</mi></mrow></msub 
><mspace width="0em" class="thinspace"/><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>t</mo></math></td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-1-5"  
class="td11"><!--l. 274--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>W</mo></math></td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-1-6"  
class="td11"><!--l. 274--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mi 
>j</mi></mrow></msub 
><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>W</mo></math></td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-1-7"  
class="td11"><!--l. 274--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mn>2</mn><msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mi 
>j</mi></mrow></msub 
><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>t</mo> <mo 
class="MathClass-bin">+</mo><msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mi 
>j</mi></mrow></msub 
><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>W</mo></math></td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-1-8"  
class="td11"><!--l. 275--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mi 
>j</mi></mrow></msub 
> <mo 
class="MathClass-bin">+</mo> <mn>2</mn><msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mi 
>j</mi></mrow></msub 
><mspace width="0em" class="thinspace"/><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>t</mo> <mo 
class="MathClass-bin">+</mo><msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mi 
>j</mi></mrow></msub 
><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>W</mo></math></td>
</tr><tr 
class="hline"><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td></tr><tr  
 style="vertical-align:baseline;" id="TBL-1-2-"><td  style="text-align:center; white-space:nowrap;" id="TBL-1-2-1"  
class="td11">                               0                                                  </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-2-2"  
class="td11">                               0                                                 </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-2-3"  
class="td11">                               1                                                 </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-2-4"  
class="td11">                              0.2                                                </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-2-5"  
class="td11">                               0                                                 </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-2-6"  
class="td11">                               0                                                 </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-2-7"  
class="td11">                              0.2                                                </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-2-8"  
class="td11">                              1.2                                                </td></tr><tr  
 style="vertical-align:baseline;" id="TBL-1-3-"><td  style="text-align:center; white-space:nowrap;" id="TBL-1-3-1"  
class="td11"> 1 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-3-2"  
class="td11"> 0.1 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-3-3"  
class="td11"> 1.2 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-3-4"  
class="td11"> 0.24 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-3-5"  
class="td11"> 0.2 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-3-6"  
class="td11"> 0.24 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-3-7"  
class="td11"> 0.48 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-3-8"  
class="td11"> 1.68</td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-1-4-"><td  style="text-align:center; white-space:nowrap;" id="TBL-1-4-1"  
class="td11">                               2                                                  </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-4-2"  
class="td11">                              0.2                                                </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-4-3"  
class="td11">                              1.68                                               </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-4-4"  
class="td11">                              0.34                                               </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-4-5"  
class="td11">                              -0.2                                               </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-4-6"  
class="td11">                              -0.34                                               </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-4-7"  
class="td11">                              0.0                                                </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-4-8"  
class="td11">                              1.68                                               </td></tr><tr  
 style="vertical-align:baseline;" id="TBL-1-5-"><td  style="text-align:center; white-space:nowrap;" id="TBL-1-5-1"  
class="td11"> 3 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-5-2"  
class="td11"> 0.3 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-5-3"  
class="td11"> 1.68 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-5-4"  
class="td11"> 0.34 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-5-5"  
class="td11"> 0.4 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-5-6"  
class="td11"> 0.67 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-5-7"  
class="td11"> 1.01 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-5-8"  
class="td11"> 2.69</td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-1-6-"><td  style="text-align:center; white-space:nowrap;" id="TBL-1-6-1"  
class="td11">                               4                                                  </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-6-2"  
class="td11">                              0.4                                                </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-6-3"  
class="td11">                              2.69                                               </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-6-4"  
class="td11">                              0.54                                               </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-6-5"  
class="td11">                              -0.2                                               </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-6-6"  
class="td11">                              -0.54                                               </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-6-7"  
class="td11">                              0.0                                                </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-6-8"  
class="td11">                              2.69                                               </td></tr><tr  
 style="vertical-align:baseline;" id="TBL-1-7-"><td  style="text-align:center; white-space:nowrap;" id="TBL-1-7-1"  
class="td11"> 5 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-7-2"  
class="td11"> 0.5 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-7-3"  
class="td11"> 2.69 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-7-4"  
class="td11"> 0.54 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-7-5"  
class="td11"> 0 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-7-6"  
class="td11"> 0 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-7-7"  
class="td11"> 0.54 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-7-8"  
class="td11"> 3.23</td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-1-8-"><td  style="text-align:center; white-space:nowrap;" id="TBL-1-8-1"  
class="td11">                               6                                                  </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-8-2"  
class="td11">                              0.6                                                </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-8-3"  
class="td11">                              3.23                                               </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-8-4"  
class="td11">                              0.65                                               </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-8-5"  
class="td11">                              0.4                                                </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-8-6"  
class="td11">                              1.29                                               </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-8-7"  
class="td11">                              1.94                                               </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-8-8"  
class="td11">                              5.16                                               </td></tr><tr  
 style="vertical-align:baseline;" id="TBL-1-9-"><td  style="text-align:center; white-space:nowrap;" id="TBL-1-9-1"  
class="td11"> 7 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-9-2"  
class="td11"> 0.7 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-9-3"  
class="td11"> 5.16 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-9-4"  
class="td11"> 1.03 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-9-5"  
class="td11"> 0.4 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-9-6"  
class="td11"> 2.06 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-9-7"  
class="td11"> 3.1 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-9-8"  
class="td11"> 8.26</td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-1-10-"><td  style="text-align:center; white-space:nowrap;" id="TBL-1-10-1"  
class="td11">                               8                                                  </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-10-2"  
class="td11">                              0.8                                                </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-10-3"  
class="td11">                              8.26                                               </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-10-4"  
class="td11">                              1.65                                               </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-10-5"  
class="td11">                              0.4                                                </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-10-6"  
class="td11">                              3.3                                                </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-10-7"  
class="td11">                              4.95                                               </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-10-8"  
class="td11">                             13.21                                              </td></tr><tr  
 style="vertical-align:baseline;" id="TBL-1-11-"><td  style="text-align:center; white-space:nowrap;" id="TBL-1-11-1"  
class="td11"> 9 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-11-2"  
class="td11"> 0.9 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-11-3"  
class="td11"> 13.21 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-11-4"  
class="td11"> 2.64 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-11-5"  
class="td11"> 0 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-11-6"  
class="td11"> 0 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-11-7"  
class="td11"> 2.64 </td> <td  style="text-align:center; white-space:nowrap;" id="TBL-1-11-8"  
class="td11"> 15.85</td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-1-12-"><td  style="text-align:center; white-space:nowrap;" id="TBL-1-12-1"  
class="td11">                               10                                                 </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-12-2"  
class="td11">                              1.0                                                </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-12-3"  
class="td11">                             15.85                                              </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-12-4"  
class="td11">                                                               </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-12-5"  
class="td11">                                                               </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-12-6"  
class="td11">                                                               </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-12-7"  
class="td11">                                                               </td><td  style="text-align:center; white-space:nowrap;" id="TBL-1-12-8"  
class="td11">                                                               </td></tr><tr 
class="hline"><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td></tr><tr  
 style="vertical-align:baseline;" id="TBL-1-13-"><td  style="text-align:center; white-space:nowrap;" id="TBL-1-13-1"  
class="td11"> </td> </tr></table>
</div>
<!--l. 291--><p class="indent" >   Of course, this can be programmed and the step size made much smaller,
presumably with better approximation properties. In fact, it is possible to
consider kinds of convergence for the EM method comparable to the Strong Law
of Large Numbers and the Weak Law of Large Numbers. See the Problems for
examples.
</p><!--l. 297--><p class="noindent" >
</p>
   <h4 class="likesubsectionHead"><a 
 id="x1-8000"></a>Discussion</h4>
<!--l. 299--><p class="noindent" >The numerical approximation procedure using coin-flipping makes it clear that
the Euler-Maruyama method generates a random process. The value of the
process depends on the time value and the coin-flip sequence. Each generation of
                                                                          

                                                                          
an approximation will be different because the coin-flip sequence is different. The
Euler-Maruyama method generates a stochastic process path approximation. To
derive distributions and statistics about the process requires generating multiple
paths, see the Problems for examples.
</p><!--l. 308--><p class="indent" >   This shows that stochastic differential equations provide a way to define new
stochastic processes. This is analogous to the notion that ordinary differential
equations define new functions which can then be studied and used. In
fact, one approach to developing calculus and the analysis of functions
is to start with differential equations, use the Euler method to define
approximations of solutions, and then to develop a theory to handle the passage
to continuous variables. This approach is especially useful for a mathematical
modeling viewpoint since the modeling often is expressed in differential
equations.
</p><!--l. 319--><p class="indent" >   This approach of starting with stochastic differential equations to describe a
situation and numerically defining new stochastic processes to model the situation
is followed in this text. At certain points, we appeal to more rigorous
mathematical theory to justify the modeling and approximation. One important
justification is to assert that if we write a stochastic differential equation, then
solutions exist and the stochastic differential equation always yields the same
process under equivalent conditions. The Existence-Uniqueness Theorem shows
that under reasonable modeling conditions stochastic differential equations do
indeed satisfy this requirement.
</p>
   <div class="newtheorem">
<!--l. 331--><p class="noindent" ><span class="head">
<a 
 id="x1-8001r1"></a>
<span 
class="cmbx-12">Theorem 1 </span>(Existence-Uniqueness)<span 
class="cmbx-12">.</span>  </span><span 
class="cmti-12">For the stochastic differential equation</span>
</p>
                                                                          

                                                                          
   <div class="math-display"><!--l. 333--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
               <mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>X</mo> <mo 
class="MathClass-rel">=</mo> <mi 
>G</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi><mo 
class="MathClass-punc">,</mo><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>t</mo> <mo 
class="MathClass-bin">+</mo><mi 
>H</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi><mo 
class="MathClass-punc">,</mo><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>W(t)</mo><mo 
class="MathClass-punc">,</mo><mspace width="2em" class="qquad"/><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">=</mo> <msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
>
</mrow></math></div>
<!--l. 335--><p class="nopar" > <span 
class="cmti-12">assume</span>
      </p><ol  class="enumerate1" >
      <li 
  class="enumerate" id="x1-8003x1"><span 
class="cmti-12">Both </span><!--l. 338--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>G</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi><mo 
class="MathClass-punc">,</mo><mi 
>x</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math>
      <span 
class="cmti-12">and </span><!--l. 338--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>H</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi><mo 
class="MathClass-punc">,</mo><mi 
>x</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math>
      <span 
class="cmti-12">are continuous on </span><!--l. 338--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi><mo 
class="MathClass-punc">,</mo><mi 
>x</mi></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">&#x2208;</mo> <mrow ><mo 
class="MathClass-open">[</mo><mrow><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
><mo 
class="MathClass-punc">,</mo><mi 
>T</mi></mrow><mo 
class="MathClass-close">]</mo></mrow> <mo 
class="MathClass-bin">&#x00D7;</mo> <mi 
>&#x211D;</mi></mrow></math><span 
class="cmti-12">.</span>
      </li>
      <li 
  class="enumerate" id="x1-8005x2"><span 
class="cmti-12">The coefficient functions </span><!--l. 340--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>G</mi></mrow></math>
      <span 
class="cmti-12">and </span><!--l. 340--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>H</mi></mrow></math>
      <span 
class="cmti-12">satisfy a Lipschitz condition:</span>
<div class="math-display"><!--l. 342--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
            <mo 
class="MathClass-rel">|</mo><mi 
>G</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi><mo 
class="MathClass-punc">,</mo><mi 
>x</mi></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>G</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi><mo 
class="MathClass-punc">,</mo><mi 
>y</mi></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-rel">|</mo> <mo 
class="MathClass-bin">+</mo> <mo 
class="MathClass-rel">|</mo><mi 
>H</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi><mo 
class="MathClass-punc">,</mo><mi 
>x</mi></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>H</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi><mo 
class="MathClass-punc">,</mo><mi 
>y</mi></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-rel">|</mo><mo 
class="MathClass-rel">&#x2264;</mo> <mi 
>K</mi><mo 
class="MathClass-rel">|</mo><mi 
>x</mi> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>y</mi><mo 
class="MathClass-rel">|</mo><mo 
class="MathClass-punc">.</mo>
</mrow></math></div>
      <!--l. 344--><p class="nopar" >
      </p></li>
      <li 
  class="enumerate" id="x1-8007x3"><span 
class="cmti-12">The coefficient functions </span><!--l. 345--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>G</mi></mrow></math>
                                                                          

                                                                          
      <span 
class="cmti-12">and </span><!--l. 345--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>H</mi></mrow></math>
      <span 
class="cmti-12">satisfy a growth condition in the second variable</span>
<div class="math-display"><!--l. 347--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                    <mo 
class="MathClass-rel">|</mo><mi 
>G</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi><mo 
class="MathClass-punc">,</mo><mi 
>x</mi></mrow><mo 
class="MathClass-close">)</mo></mrow><msup><mrow 
><mo 
class="MathClass-rel">|</mo></mrow><mrow 
><mn>2</mn></mrow></msup 
> <mo 
class="MathClass-bin">+</mo> <mo 
class="MathClass-rel">|</mo><mi 
>H</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi><mo 
class="MathClass-punc">,</mo><mi 
>x</mi></mrow><mo 
class="MathClass-close">)</mo></mrow><msup><mrow 
><mo 
class="MathClass-rel">|</mo></mrow><mrow 
><mn>2</mn></mrow></msup 
> <mo 
class="MathClass-rel">&#x2264;</mo> <mi 
>K</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn> <mo 
class="MathClass-bin">+</mo> <mo 
class="MathClass-rel">|</mo><mi 
>x</mi><msup><mrow 
><mo 
class="MathClass-rel">|</mo></mrow><mrow 
><mn>2</mn></mrow></msup 
></mrow><mo 
class="MathClass-close">)</mo></mrow>
</mrow></math></div>
      <!--l. 349--><p class="nopar" > <span 
class="cmti-12">for all </span><!--l. 350--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>t</mi> <mo 
class="MathClass-rel">&#x2208;</mo> <mrow ><mo 
class="MathClass-open">[</mo><mrow><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
><mo 
class="MathClass-punc">,</mo><mi 
>T</mi></mrow><mo 
class="MathClass-close">]</mo></mrow></mrow></math>
      <span 
class="cmti-12">and </span><!--l. 350--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>x</mi> <mo 
class="MathClass-rel">&#x2208;</mo> <mi 
>&#x211D;</mi></mrow></math><span 
class="cmti-12">.</span></p></li></ol>
<!--l. 352--><p class="noindent" ><span 
class="cmti-12">Then the stochastic differential equation has a strong solution on</span>
<!--l. 353--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mrow ><mo 
class="MathClass-open">[</mo><mrow><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
><mo 
class="MathClass-punc">,</mo><mi 
>T</mi></mrow><mo 
class="MathClass-close">]</mo></mrow></mrow></math> <span 
class="cmti-12">which is continuous</span>
<span 
class="cmti-12">with probability </span><!--l. 354--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mn>1</mn></mrow></math>
<span 
class="cmti-12">and</span>
</p>
   <div class="math-display"><!--l. 355--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                                <munder class="msub"><mrow 
><mo class="qopname">sup</mo> </mrow><mrow 
><mi 
>t</mi><mo 
class="MathClass-rel">&#x2208;</mo><mrow ><mo 
class="MathClass-open">[</mo><mrow><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
><mo 
class="MathClass-punc">,</mo><mi 
>T</mi></mrow><mo 
class="MathClass-close">]</mo></mrow></mrow></munder 
><mi 
>E</mi> <mfenced separators="" 
open="["  close="]" ><mrow><msup><mrow 
><mi 
>X</mi></mrow><mrow 
><mn>2</mn></mrow></msup 
><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></mfenced> <mo 
class="MathClass-rel">&#x003C;</mo> <mi 
>&#x221E;</mi>
</mrow></math></div>
<!--l. 357--><p class="nopar" > <span 
class="cmti-12">and for each given Wiener process </span><!--l. 358--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>W</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math><span 
class="cmti-12">,</span>
<span 
class="cmti-12">the corresponding strong solutions are pathwise unique which means that if</span>
<!--l. 359--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>X</mi></mrow></math> <span 
class="cmti-12">and</span>
<!--l. 360--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>Y</mi> </mrow></math> <span 
class="cmti-12">are</span>
<span 
class="cmti-12">two strong solutions, then</span>
                                                                          

                                                                          
</p>
   <div class="math-display"><!--l. 361--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                         <mi 
>&#x2119;</mi> <mfenced separators="" 
open="["  close="]" ><mrow><munder class="msub"><mrow 
><mo class="qopname">sup</mo> </mrow><mrow 
><mi 
>t</mi><mo 
class="MathClass-rel">&#x2208;</mo><mrow ><mo 
class="MathClass-open">[</mo><mrow><msub><mrow 
><mi 
>t</mi></mrow><mrow 
><mn>0</mn></mrow></msub 
><mo 
class="MathClass-punc">,</mo><mi 
>T</mi></mrow><mo 
class="MathClass-close">]</mo></mrow></mrow></munder 
><mo 
class="MathClass-rel">|</mo><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>Y</mi> <mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-rel">|</mo> <mo 
class="MathClass-rel">=</mo> <mn>0</mn></mrow></mfenced> <mo 
class="MathClass-rel">=</mo> <mn>1</mn><mo 
class="MathClass-punc">.</mo>
</mrow></math></div>
<!--l. 363--><p class="nopar" >
</p>
   </div>
<!--l. 365--><p class="indent" >   See the reference <span class="cite">[<a 
href="#Xkloeden92">4</a>]</span> for a precise definition of &#x201C;strong
solution&#x201D; but essentially it means that each given Wiener process
<!--l. 367--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>W</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math> we can generate
a solution to the SDE. Note that the coefficient functions are here two-variable functions
of both time <!--l. 369--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>t</mi></mrow></math>
and location <!--l. 369--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>x</mi></mrow></math>,
which is more general than the functions considered in equation (<a 
href="#x1-6001r1">1<!--tex4ht:ref: eq:stochasticdes:sde --></a>). The restrictions on
the functions <!--l. 372--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>G</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi><mo 
class="MathClass-punc">,</mo><mi 
>x</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math>
and <!--l. 372--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>H</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi><mo 
class="MathClass-punc">,</mo><mi 
>x</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math>,
especially the continuity condition, can be considerably relaxed and the theorem
will still remain true.
</p><!--l. 376--><p class="noindent" >
</p>
   <h4 class="likesubsectionHead"><a 
 id="x1-9000"></a>Sources</h4>
<!--l. 378--><p class="noindent" >This section is adapted from: &#x201C;An Algorithmic Introduction to the Numerical
Simulation of Stochastic Differential Equations&#x201D;, by Desmond J. Higham, in
SIAM Review, Vol. 43, No. 3, pp. 525-546, 2001 and <span 
class="cmti-12">Financial Calculus: An</span>
<span 
class="cmti-12">introduction to derivative pricing </span>by M. Baxter, and A. Rennie, Cambridge
University Press, 1996, pages 52-62. The Existence-Uniqueness Theorem is
                                                                          

                                                                          
adapted from <span 
class="cmti-12">An Introduction to Stochastic Processes with Applications to</span>
<span 
class="cmti-12">Biology</span>, by L. J. S. Allen, Pearson Prentice-Hall, 2003, pages 342-343 and
<span 
class="cmti-12">Numerical Solution of Stochastic Differential Equations</span>, by Peter Kloeden and
Eckhard Platen, Springer Verlag, 1992, pages 127-131.
</p><!--l. 395--><p class="indent" >   _______________________________________________________________________________________________
</p><!--l. 397--><p class="indent" >   <img 
src="../../../../CommonInformation/Lessons/solveproblems.png" alt="Problems to Work"  
 />
</p>
   <h3 class="likesectionHead"><a 
 id="x1-10000"></a>Problems to Work for Understanding</h3>
<!--l. 399--><p class="noindent" >
      </p><ol  class="enumerate1" >
      <li 
  class="enumerate" id="x1-10002x1">Graph an approximation of a multiple of Brownian motion with drift with parameters
      <!--l. 402--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>b</mi> <mo 
class="MathClass-rel">=</mo> <mn>2</mn></mrow></math>,
      <!--l. 402--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>r</mi> <mo 
class="MathClass-rel">=</mo> <mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>2</mn></mrow></math> and
      <!--l. 402--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>&#x03C3;</mi> <mo 
class="MathClass-rel">=</mo> <mn>2</mn></mrow></math>
      in the following two ways:
           <ul class="itemize1">
           <li class="itemize">Flip a coin <!--l. 406--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mn>2</mn><mn>5</mn></mrow></math>
           times, recording whether it comes up Heads or Tails each time,
           Scoring <!--l. 407--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>Y</mi> </mrow><mrow 
><mi 
>i</mi></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <mo 
class="MathClass-bin">+</mo><mn>1</mn></mrow></math>
           for each Heads and <!--l. 407--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>Y</mi> </mrow><mrow 
><mi 
>i</mi></mrow></msub 
> <mo 
class="MathClass-rel">=</mo> <mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn></mrow></math>
           for each flip, also keep track of the accumulated sum <!--l. 409--><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><msubsup><mrow 
><mo 
class="MathClass-op"> &#x2211;</mo>
  <!--nolimits--></mrow><mrow 
><mi 
>i</mi><mo 
class="MathClass-rel">=</mo><mn>1</mn></mrow><mrow 
><mi 
>n</mi></mrow></msubsup 
><msub><mrow 
><mi 
>T</mi></mrow><mrow 
>
<mi 
>i</mi></mrow></msub 
></mrow></math>
           for <!--l. 409--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>i</mi> <mo 
class="MathClass-rel">=</mo> <mn>1</mn><mo 
class="MathClass-op">&#x2026;</mo><mn>2</mn><mn>5</mn></mrow></math>.
           Using <!--l. 410--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>N</mi> <mo 
class="MathClass-rel">=</mo> <mn>5</mn></mrow></math>
           compute the rescaled approximation <!--l. 410--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>&#x0174;</mi></mrow><mrow 
><mn>5</mn></mrow></msub 
><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">=</mo> <mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><msqrt><mrow><mn>5</mn></mrow></msqrt></mrow><mo 
class="MathClass-close">)</mo></mrow><msub><mrow 
><mi 
>T</mi></mrow><mrow 
><mn>5</mn><mi 
>t</mi></mrow></msub 
></mrow></math>
           at the values <!--l. 411--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>t</mi> <mo 
class="MathClass-rel">=</mo> <mn>0</mn><mo 
class="MathClass-punc">,</mo> <mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>5</mn><mo 
class="MathClass-punc">,</mo> <mn>2</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>5</mn><mo 
class="MathClass-punc">,</mo> <mn>3</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>5</mn><mo 
class="MathClass-punc">,</mo><mo 
class="MathClass-op">&#x2026;</mo><mn>2</mn><mn>4</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>5</mn><mo 
class="MathClass-punc">,</mo> <mn>5</mn></mrow></math>
           on <!--l. 412--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mrow ><mo 
class="MathClass-open">[</mo><mrow><mn>0</mn><mo 
class="MathClass-punc">,</mo> <mn>5</mn></mrow><mo 
class="MathClass-close">]</mo></mrow></mrow></math>.
           Finally compute and graph the value of <!--l. 413--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">=</mo> <mi 
>b</mi> <mo 
class="MathClass-bin">+</mo> <mi 
>r</mi><mi 
>t</mi> <mo 
class="MathClass-bin">+</mo> <mi 
>&#x03C3;</mi><msub><mrow 
><mi 
>&#x0174;</mi></mrow><mrow 
><mn>5</mn></mrow></msub 
><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math>.
           </li>
           <li class="itemize">Using the same values of <!--l. 416--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><msub><mrow 
><mi 
>&#x0174;</mi></mrow><mrow 
><mn>5</mn></mrow></msub 
><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math>
           as approximations for <!--l. 417--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>W</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>d</mi><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></math>
           compute the values of the solution of the stochastic differential
           equation <!--l. 418--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>X</mo> <mo 
class="MathClass-rel">=</mo> <mi 
>r</mi><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>t</mo> <mo 
class="MathClass-bin">+</mo><mi 
>&#x03C3;</mi><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>W</mo><mo 
class="MathClass-punc">,</mo><mspace width="1em" class="quad"/><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>0</mn></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">=</mo> <mi 
>b</mi></mrow></math>.</li></ul>
                                                                          

                                                                          
      </li>
      <li 
  class="enumerate" id="x1-10004x2">Repeat the previous problem with parameters
      <!--l. 422--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>b</mi> <mo 
class="MathClass-rel">=</mo> <mn>2</mn></mrow></math>,
      <!--l. 422--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>r</mi> <mo 
class="MathClass-rel">=</mo> <mo 
class="MathClass-bin">&#x2212;</mo><mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>2</mn></mrow></math> and
      <!--l. 423--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>&#x03C3;</mi> <mo 
class="MathClass-rel">=</mo> <mn>2</mn></mrow></math>.
      </li>
      <li 
  class="enumerate" id="x1-10006x3">Repeat the previous problem with parameters
      <!--l. 425--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>b</mi> <mo 
class="MathClass-rel">=</mo> <mn>2</mn></mrow></math>,
      <!--l. 425--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>r</mi> <mo 
class="MathClass-rel">=</mo> <mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>2</mn></mrow></math> and
      <!--l. 426--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>&#x03C3;</mi> <mo 
class="MathClass-rel">=</mo> <mo 
class="MathClass-bin">&#x2212;</mo><mn>2</mn></mrow></math>.
      </li>
      <li 
  class="enumerate" id="x1-10008x4">Simulate the solution of the stochastic differential equation
<div class="math-display"><!--l. 429--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                       <mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>X(t)</mo> <mo 
class="MathClass-rel">=</mo> <mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>t</mo> <mo 
class="MathClass-bin">+</mo><mn>2</mn><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>X</mo>
</mrow></math></div>
      <!--l. 431--><p class="nopar" > on the interval <!--l. 431--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mrow ><mo 
class="MathClass-open">[</mo><mrow><mn>0</mn><mo 
class="MathClass-punc">,</mo> <mn>1</mn></mrow><mo 
class="MathClass-close">]</mo></mrow></mrow></math> with
      initial condition <!--l. 431--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>0</mn></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">=</mo> <mn>1</mn></mrow></math>
      and step size <!--l. 432--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>&#x0394;</mi><mi 
>t</mi> <mo 
class="MathClass-rel">=</mo> <mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>1</mn><mn>0</mn></mrow></math>.
      </p></li>
      <li 
  class="enumerate" id="x1-10010x5">Simulate the solution of the stochastic differential equation
                                                                          

                                                                          
<div class="math-display"><!--l. 438--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                       <mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>X(t)</mo> <mo 
class="MathClass-rel">=</mo> <mi 
>t</mi><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>t</mo> <mo 
class="MathClass-bin">+</mo><mn>2</mn><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>X</mo>
</mrow></math></div>
      <!--l. 440--><p class="nopar" > on the interval <!--l. 440--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mrow ><mo 
class="MathClass-open">[</mo><mrow><mn>0</mn><mo 
class="MathClass-punc">,</mo> <mn>1</mn></mrow><mo 
class="MathClass-close">]</mo></mrow></mrow></math> with
      initial condition <!--l. 440--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>0</mn></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">=</mo> <mn>1</mn></mrow></math>
      and step size <!--l. 441--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>&#x0394;</mi><mi 
>t</mi> <mo 
class="MathClass-rel">=</mo> <mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mn>1</mn><mn>0</mn></mrow></math>.
      Note the difference with the previous problem, now the multiplier of the
      <!--l. 442--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>t</mo></mrow></math>
      term is a function of time.
      </p></li>
      <li 
  class="enumerate" id="x1-10012x6">Write a program with parameters
      <!--l. 447--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>r</mi></mrow></math>,
      <!--l. 447--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>&#x03C3;</mi></mrow></math>,
      <!--l. 447--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>b</mi></mrow></math>,
      <!--l. 448--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>T</mi></mrow></math> and
      <!--l. 448--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>N</mi></mrow></math> (so
      <!--l. 448--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>t</mo> <mo 
class="MathClass-rel">=</mo> <mi 
>T</mi><mo 
class="MathClass-bin">&#x2215;</mo><mi 
>N</mi></mrow></math>)
      that computes and graphs the approximation of the solution of the
      stochastic differential equation
                                                                          

                                                                          
<div class="math-display"><!--l. 452--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                       <mo 
class="MathClass-op"><mstyle mathvariant="normal">d</mstyle>X(t)</mo> <mo 
class="MathClass-rel">=</mo> <mi 
>r</mi><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>t</mo> <mo 
class="MathClass-bin">+</mo><mi 
>&#x03C3;</mi><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-op"> <mstyle mathvariant="normal">d</mstyle>X</mo>
</mrow></math></div>
      <!--l. 454--><p class="nopar" > with <!--l. 454--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>0</mn></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">=</mo> <mi 
>b</mi></mrow></math> on the
      interval <!--l. 454--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mrow ><mo 
class="MathClass-open">[</mo><mrow><mn>0</mn><mo 
class="MathClass-punc">,</mo><mi 
>T</mi></mrow><mo 
class="MathClass-close">]</mo></mrow></mrow></math>.
      Apply the program to the stochastic differential equation with
      <!--l. 455--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>r</mi> <mo 
class="MathClass-rel">=</mo> <mn>2</mn></mrow></math>,
      <!--l. 456--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>&#x03C3;</mi> <mo 
class="MathClass-rel">=</mo> <mn>1</mn></mrow></math>,
      <!--l. 456--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>b</mi> <mo 
class="MathClass-rel">=</mo> <mn>1</mn></mrow></math>, and
      <!--l. 456--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>N</mi> <mo 
class="MathClass-rel">=</mo> <msup><mrow 
><mn>2</mn></mrow><mrow 
><mn>6</mn></mrow></msup 
><mo 
class="MathClass-punc">,</mo> <msup><mrow 
><mn>2</mn></mrow><mrow 
><mn>7</mn></mrow></msup 
><mo 
class="MathClass-punc">,</mo> <msup><mrow 
><mn>2</mn></mrow><mrow 
><mn>8</mn></mrow></msup 
></mrow></math> on the
      interval <!--l. 457--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mrow ><mo 
class="MathClass-open">[</mo><mrow><mn>0</mn><mo 
class="MathClass-punc">,</mo> <mn>1</mn></mrow><mo 
class="MathClass-close">]</mo></mrow></mrow></math>.
      </p></li>
      <li 
  class="enumerate" id="x1-10014x7">Generalize the program from the previous problem to include a parameter
      <!--l. 460--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>M</mi></mrow></math> for
      the number of sample paths computed. Then using this program on the interval
      <!--l. 461--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mrow ><mo 
class="MathClass-open">[</mo><mrow><mn>0</mn><mo 
class="MathClass-punc">,</mo> <mn>1</mn></mrow><mo 
class="MathClass-close">]</mo></mrow></mrow></math> with
      <!--l. 462--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>M</mi> <mo 
class="MathClass-rel">=</mo> <mn>1</mn><mn>0</mn><mn>0</mn><mn>0</mn></mrow></math>, and
      <!--l. 462--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>N</mi> <mo 
class="MathClass-rel">=</mo> <msup><mrow 
><mn>2</mn></mrow><mrow 
><mn>8</mn></mrow></msup 
></mrow></math> compute
      <!--l. 463--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>E</mi> <mfenced separators="" 
open="["  close="]" ><mrow><mo 
class="MathClass-rel">|</mo><msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mi 
>n</mi></mrow></msub 
> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-rel">|</mo></mrow></mfenced></mrow></math>, where
      <!--l. 463--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">=</mo> <mi 
>b</mi><msup><mrow 
><mstyle mathvariant="normal"><mi 
>e</mi></mstyle></mrow><mrow 
><mi 
>r</mi><mo 
class="MathClass-bin">&#x2212;</mo><mfrac><mrow 
><mn>1</mn></mrow>
<mrow 
><mn>2</mn></mrow></mfrac><msup><mrow 
><mi 
>&#x03C3;</mi></mrow><mrow 
><mn>2</mn></mrow></msup 
><mo 
class="MathClass-bin">+</mo><mi 
>&#x03C3;</mi><msub><mrow 
><mi 
>&#x0174;</mi></mrow><mrow 
><msup><mrow 
><mn>2</mn></mrow><mrow 
><mn>8</mn></mrow></msup 
></mrow></msub 
><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></msup 
></mrow></math>.
      </li>
      <li 
  class="enumerate" id="x1-10016x8">Using the program from the previous problem with
      <!--l. 466--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>M</mi> <mo 
class="MathClass-rel">=</mo> <mn>1</mn><mn>0</mn><mn>0</mn><mn>0</mn></mrow></math> and
      <!--l. 467--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>N</mi> <mo 
class="MathClass-rel">=</mo> <msup><mrow 
><mn>2</mn></mrow><mrow 
><mn>5</mn></mrow></msup 
><mo 
class="MathClass-punc">,</mo> <msup><mrow 
><mn>2</mn></mrow><mrow 
><mn>6</mn></mrow></msup 
><mo 
class="MathClass-punc">,</mo> <msup><mrow 
><mn>2</mn></mrow><mrow 
><mn>7</mn></mrow></msup 
><mo 
class="MathClass-punc">,</mo> <msup><mrow 
><mn>2</mn></mrow><mrow 
><mn>8</mn></mrow></msup 
><mo 
class="MathClass-punc">,</mo> <msup><mrow 
><mn>2</mn></mrow><mrow 
><mn>9</mn></mrow></msup 
></mrow></math> compute
      <!--l. 467--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>E</mi> <mfenced separators="" 
open="["  close="]" ><mrow><mo 
class="MathClass-rel">|</mo><msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mi 
>N</mi></mrow></msub 
> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-rel">|</mo></mrow></mfenced></mrow></math>, where
      <!--l. 468--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn></mrow><mo 
class="MathClass-close">)</mo></mrow> <mo 
class="MathClass-rel">=</mo> <mi 
>b</mi><msup><mrow 
><mstyle mathvariant="normal"><mi 
>e</mi></mstyle></mrow><mrow 
><mi 
>r</mi><mo 
class="MathClass-bin">&#x2212;</mo><mfrac><mrow 
><mn>1</mn></mrow>
<mrow 
><mn>2</mn></mrow></mfrac><msup><mrow 
><mi 
>&#x03C3;</mi></mrow><mrow 
><mn>2</mn></mrow></msup 
><mo 
class="MathClass-bin">+</mo><mi 
>&#x03C3;</mi><msub><mrow 
><mi 
>&#x0174;</mi></mrow><mrow 
><msup><mrow 
><mn>2</mn></mrow><mrow 
><mn>9</mn></mrow></msup 
></mrow></msub 
><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow></msup 
></mrow></math>. Then for
      the <!--l. 469--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mn>5</mn></mrow></math> values
                                                                          

                                                                          
      of <!--l. 470--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>N</mi></mrow></math>, make a
      <!--l. 470--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mo class="qopname">log</mo><!--nolimits--></mrow></math>-<!--l. 470--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mo class="qopname">log</mo><!--nolimits--></mrow></math>
      plot of <!--l. 471--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>E</mi> <mfenced separators="" 
open="["  close="]" ><mrow><mo 
class="MathClass-rel">|</mo><msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mi 
>N</mi></mrow></msub 
> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-rel">|</mo></mrow></mfenced></mrow></math> on the
      vertical axis against <!--l. 471--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>&#x0394;</mi><mi 
>t</mi> <mo 
class="MathClass-rel">=</mo> <mn>1</mn><mo 
class="MathClass-bin">&#x2215;</mo><mi 
>N</mi></mrow></math>
      on the horizontal axis. Using the slope of the resulting best-fit
      line experimentally determine the order of convergence
      <!--l. 474--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="inline" ><mrow 
><mi 
>&#x03B3;</mi></mrow></math>
      so that
<div class="math-display"><!--l. 475--><math 
 xmlns="http://www.w3.org/1998/Math/MathML" display="block" ><mrow 
>
                        <mi 
>E</mi> <mfenced separators="" 
open="["  close="]" ><mrow><mo 
class="MathClass-rel">|</mo><msub><mrow 
><mi 
>X</mi></mrow><mrow 
><mi 
>N</mi></mrow></msub 
> <mo 
class="MathClass-bin">&#x2212;</mo> <mi 
>X</mi><mrow ><mo 
class="MathClass-open">(</mo><mrow><mn>1</mn></mrow><mo 
class="MathClass-close">)</mo></mrow><mo 
class="MathClass-rel">|</mo></mrow></mfenced><mo 
class="MathClass-rel">&#x2264;</mo> <mi 
>C</mi><msup><mrow 
><mrow ><mo 
class="MathClass-open">(</mo><mrow><mi 
>&#x0394;</mi><mi 
>t</mi></mrow><mo 
class="MathClass-close">)</mo></mrow></mrow><mrow 
><mi 
>&#x03B3;</mi></mrow></msup 
><mo 
class="MathClass-punc">.</mo>
</mrow></math></div>
      <!--l. 477--><p class="nopar" ></p></li></ol>
<!--l. 480--><p class="noindent" >__________________________________________________________________________
</p><!--l. 482--><p class="indent" >   <img 
src="../../../../CommonInformation/Lessons/books.png" alt="Books"  
 />
</p>
   <h3 class="likesectionHead"><a 
 id="x1-11000"></a>Reading Suggestion:</h3>
<!--l. 1--><p class="noindent" >
</p>
   <h3 class="likesectionHead"><a 
 id="x1-12000"></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="Xallen03-introd-stoch-proces-applic"></a>Linda  J.&#x00A0;S.  Allen.   <span 
class="cmti-12">An  Introduction  to  Stochastic  Processes  with</span>
   <span 
class="cmti-12">Applications to biology</span>. Pearson Prentice-Hall, 2003.
   </p>
   <p class="bibitem" ><span class="biblabel">
 [2]<span class="bibsp">&#x00A0;&#x00A0;&#x00A0;</span></span><a 
 id="Xbaxter96"></a>M.&#x00A0;Baxter and A.&#x00A0;Rennie.  <span 
class="cmti-12">Financial Calculus: An introduction to</span>
   <span 
class="cmti-12">derivative pricing</span>. Cambridge University Press, 1996. HG 6024 A2W554.
   </p>
   <p class="bibitem" ><span class="biblabel">
 [3]<span class="bibsp">&#x00A0;&#x00A0;&#x00A0;</span></span><a 
 id="Xhigham01"></a>Desmond&#x00A0;J.  Higham.    An  algorithmic  introduction  to  numerical
   simulation   of   stochastic   differential   equations.       <span 
class="cmti-12">SIAM   Review</span>,
   43(3):525&#x2013;546, 2001.
   </p>
   <p class="bibitem" ><span class="biblabel">
 [4]<span class="bibsp">&#x00A0;&#x00A0;&#x00A0;</span></span><a 
 id="Xkloeden92"></a>P.&#x00A0;Kloeden  and  E.&#x00A0;Platen.     <span 
class="cmti-12">Numerical  Solution  of  Stochastic</span>
   <span 
class="cmti-12">Differential Equations</span>, volume&#x00A0;23 of <span 
class="cmti-12">Stochastic Modelling and Applied</span>
   <span 
class="cmti-12">Probability</span>. Springer, 1992.
</p>
   </div>
<!--l. 498--><p class="noindent" >__________________________________________________________________________
</p><!--l. 500--><p class="indent" >   <img 
src="../../../../CommonInformation/Lessons/chainlink.png" alt="Links"  
 />
</p>
   <h3 class="likesectionHead"><a 
 id="x1-13000"></a>Outside Readings and Links:</h3>
<!--l. 502--><p class="noindent" >
      </p><ol  class="enumerate1" >
      <li 
  class="enumerate" id="x1-13002x1"><a 
href="http://www.math.uni-frankfurt.de/~numerik/maplestoch/" >Maple Stochastic Package</a>. The MAPLE stochastic package offers a
      number of MAPLE routines for stochastic differential equations.
      </li>
      <li 
  class="enumerate" id="x1-13004x2"><a 
href="http://www-math.bgsu.edu/~zirbel/sde/" >Matlab  program  files  for  Stochastic  Differential  Equations</a>.  offers  a
      number of MATLAB routines for stochastic differential equations.</li></ol>
                                                                          

                                                                          
<!--l. 512--><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. 516--><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 28, 2011
</p>
    
</body> 
</html> 

                                                                          



