<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml-stylesheet type="text/xsl" href="mathml.xsl"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
<title>Data Analysis</title>
<link rel="stylesheet" type="text/css" href="styles.css" />
</head>

<body>


<h2>STOCHASTIC DIFFERENTIAL EQUATIONS</h2>

<p>Let us start our consideration with the case of linear
stochastic differential equation. Let us consider the following
first order, homogeneous differential equation</p>

<table class="equ"><tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mfrac><mi>d</mi><mrow><mi>d</mi><mi>t</mi></mrow></mfrac>
<mi>Y</mi><mfenced><mi>t</mi><mi>&omega;</mi></mfenced>
<mo>+</mo>
<mi>&eta;</mi><mi>Y</mi><mfenced><mi>t</mi><mi>&omega;</mi></mfenced>
<mo>=</mo>
<mn>0</mn>
</math>
</td>
<td class="equnum">
(6.1)
</td>
</tr></table>

<p>Looking at the realizations it is a deterministic differential equation </p>

<table class="equ"><tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mfrac><mi>d</mi><mrow><mi>d</mi><mi>t</mi></mrow></mfrac>
<mi>y</mi><mfenced><mi>t</mi></mfenced>
<mo>+</mo>
<mi>&eta;</mi><mi>y</mi><mfenced><mi>t</mi></mfenced>
<mo>=</mo>
<mn>0</mn>
</math>
</td>
<td class="equnum">
(6.2)
</td>
</tr></table>

<p>The randomness is in the initial condition. Let us assume
that the initial condition is a normally distributed random
variable with mean value <math xmlns="http://www.w3.org/1998/Math/MathML"><mi>m</mi><mo>=</mo><mn>0</mn></math>
and variance equal to <math xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>&sigma;</mi><mn>2</mn></msup></math>.
The solution of the differential equation is</p>

<table class="equ"><tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mi>Y</mi><mfenced><mi>t</mi><mi>&omega;</mi></mfenced>
<mo>=</mo>
<mi>A</mi><mfenced><mi>&omega;</mi></mfenced>
<msup><mi>e</mi><mrow><mo>-</mo><mi>&eta;</mi><mi>t</mi></mrow></msup>
</math>
</td>
<td class="equnum">
(6.3)
</td>
</tr></table>

<p>The process is Gaussian. The mean value and correlation functions are</p>

<table class="equ"><tr>
<td class="equ2">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mi>m</mi><mfenced><mi>t</mi></mfenced>
<mo>=</mo>
<mn>0</mn>
</math>
</td>
<td class="equ2">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mi>R</mi><mfenced><msub><mi>t</mi><mn>1</mn></msub><msub><mi>t</mi><mn>2</mn></msub></mfenced>
<mo>=</mo>
<msup><mi>&sigma;</mi><mn>2</mn></msup>
<msup><mi>e</mi><mrow><mo>-</mo><mi>&eta;</mi>
 <mfenced><mrow>
  <msub><mi>t</mi><mn>1</mn></msub><mo>+</mo><msub><mi>t</mi><mn>2</mn></msub>
 </mrow></mfenced>
</mrow></msup>
</math>
</td>
<td class="equnum">
(6.4)
</td>
</tr></table>

<p>The variance is</p>

<table class="equ"><tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mi>P</mi><mfenced><mi>t</mi><mi>t</mi></mfenced>
<mo>=</mo>
<mi>R</mi><mfenced><mi>t</mi><mi>t</mi></mfenced>
<mo>=</mo>
<msup><mi>&sigma;</mi><mn>2</mn></msup>
<msup><mi>e</mi><mrow><mo>-</mo><mn>2</mn><mi>&eta;</mi><mi>t</mi></mrow></msup>
</math>
</td>
<td class="equnum">
(6.5)
</td>
</tr></table>



<p>As a second example let us consider the following set of two differential equations</p>

<table class="equ"><tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mtable>
<mtr><mtd columnalign="left">
 <mfrac><mi>d</mi><mrow><mi>d</mi><mi>t</mi></mrow></mfrac>
 <msub><mi>Y</mi><mn>0</mn></msub><mfenced><mi>t</mi><mi>&omega;</mi></mfenced>
 <mo>+</mo>
 <mi>&eta;</mi><msub><mi>Y</mi><mn>0</mn></msub><mfenced><mi>t</mi><mi>&omega;</mi></mfenced>
 <mo>=</mo>
 <mn>0</mn>
</mtd></mtr>
<mtr><mtd columnalign="left">
 <mfrac><mi>d</mi><mrow><mi>d</mi><mi>t</mi></mrow></mfrac>
 <msub><mi>Y</mi><mn>1</mn></msub><mfenced><mi>t</mi><mi>&omega;</mi></mfenced>
 <mo>+</mo>
 <mi>&eta;</mi><msub><mi>Y</mi><mn>1</mn></msub><mfenced><mi>t</mi><mi>&omega;</mi></mfenced>
 <mo>=</mo>
 <mi>&eta;</mi><msub><mi>Y</mi><mn>0</mn></msub><mfenced><mi>t</mi><mi>&omega;</mi></mfenced>
</mtd></mtr>
</mtable>
</math>
</td>
<td class="equnum">
(6.6)
</td>
</tr></table>

<p>The randomness is in the initial conditions. Let us assume that
the initial condition for 
<math xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>Y</mi><mn>0</mn></msub><mfenced><mn>0</mn><mi>&omega;</mi></mfenced>
<mo>=</mo><msub><mi>A</mi><mn>0</mn></msub><mfenced><mi>&omega;</mi></mfenced></math>
is a normally distributed random variable with mean value
<math xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>m</mi><mn>0</mn></msub><mo>=</mo><mn>0</mn></math>
and variance equal to 
<math xmlns="http://www.w3.org/1998/Math/MathML"><msubsup><mi>&sigma;</mi><mn>0</mn><mn>2</mn></msubsup></math>.
The initial conditions for 
<math xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>Y</mi><mn>1</mn></msub><mfenced><mn>0</mn><mi>&omega;</mi></mfenced>
<mo>=</mo><msub><mi>A</mi><mn>1</mn></msub><mfenced><mi>&omega;</mi></mfenced></math>
are independent, normally distributed; the mean value is 
<math xmlns="http://www.w3.org/1998/Math/MathML"><mrow><msub><mi>m</mi><mn>1</mn></msub><mo>=</mo><mn>0</mn></mrow></math>,
and the variance is <math xmlns="http://www.w3.org/1998/Math/MathML"><msubsup><mi>&sigma;</mi><mn>1</mn><mn>2</mn></msubsup></math>.
The solution of the differential equation is</p>

<table class="equ"><tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mtable>
<mtr><mtd columnalign="left">
 <msub><mi>Y</mi><mn>0</mn></msub><mfenced><mi>t</mi><mi>&omega;</mi></mfenced>
 <mo>=</mo>
 <msub><mi>A</mi><mn>0</mn></msub><mfenced><mi>&omega;</mi></mfenced>
 <msup><mi>e</mi><mrow><mo>-</mo><mi>&eta;</mi><mi>t</mi></mrow></msup>
</mtd></mtr>
<mtr><mtd columnalign="left">
 <msub><mi>Y</mi><mn>1</mn></msub><mfenced><mi>t</mi><mi>&omega;</mi></mfenced>
 <mo>=</mo>
 <mi>&eta;</mi>
 <mfenced open="[" close="]"><mrow>
  <msub><mi>A</mi><mn>1</mn></msub><mfenced><mi>&omega;</mi></mfenced>
  <mo>+</mo>
  <mi>t</mi>
  <msub><mi>A</mi><mn>0</mn></msub><mfenced><mi>&omega;</mi></mfenced>
 </mrow></mfenced>
 <msup><mi>e</mi><mrow><mo>-</mo><mi>&eta;</mi><mi>t</mi></mrow></msup>
</mtd></mtr>
</mtable>
</math>
</td>
<td class="equnum">
(6.7)
</td>
</tr></table>

<p>The mean values of the stochastic processes are</p>

<table class="equ"><tr>
<td class="equ2">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<msub><mi>m</mi><mn>0</mn></msub><mfenced><mi>t</mi></mfenced>
<mo>=</mo>
<mn>0</mn>
</math>
</td>
<td class="equ2">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<msub><mi>m</mi><mn>1</mn></msub><mfenced><mi>t</mi></mfenced>
<mo>=</mo>
<mn>0</mn>
</math>
</td>
<td class="equnum">
(6.8)
</td>
</tr></table>

<p>and the elements of the correlation matrix are</p>

<table class="equ"><tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
 <msub><mi>R</mi><mrow><msub><mi>Y</mi><mn>0</mn></msub><msub><mi>Y</mi><mn>0</mn></msub></mrow></msub>
 <mfenced><msub><mi>t</mi><mn>1</mn></msub><msub><mi>t</mi><mn>2</mn></msub></mfenced>
 <mo>=</mo>
 <msubsup><mi>&sigma;</mi><mn>0</mn><mn>2</mn></msubsup>
 <msup><mi>e</mi><mrow><mo>-</mo><mi>&eta;</mi>
  <mfenced><mrow>
   <msub><mi>t</mi><mn>1</mn></msub><mo>+</mo><msub><mi>t</mi><mn>2</mn></msub>
  </mrow></mfenced>
 </mrow></msup>
</math>
</td>
<td rowspan="4" class="equnum">
(6.9)
</td>
</tr>
<tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
 <msub><mi>R</mi><mrow><msub><mi>Y</mi><mn>0</mn></msub><msub><mi>Y</mi><mn>1</mn></msub></mrow></msub>
 <mfenced><msub><mi>t</mi><mn>1</mn></msub><msub><mi>t</mi><mn>2</mn></msub></mfenced>
 <mo>=</mo>
 <msubsup><mi>&sigma;</mi><mn>0</mn><mn>2</mn></msubsup>
 <msub><mi>t</mi><mn>1</mn></msub>
 <msup><mi>e</mi><mrow><mo>-</mo><mi>&eta;</mi>
  <mfenced><mrow>
   <msub><mi>t</mi><mn>1</mn></msub><mo>+</mo><msub><mi>t</mi><mn>2</mn></msub>
  </mrow></mfenced>
 </mrow></msup>
</math>
</td>
</tr>
<tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
 <msub><mi>R</mi><mrow><msub><mi>Y</mi><mn>1</mn></msub><msub><mi>Y</mi><mn>0</mn></msub></mrow></msub>
 <mfenced><msub><mi>t</mi><mn>1</mn></msub><msub><mi>t</mi><mn>2</mn></msub></mfenced>
 <mo>=</mo>
 <msubsup><mi>&sigma;</mi><mn>0</mn><mn>2</mn></msubsup>
 <msub><mi>t</mi><mn>2</mn></msub>
 <msup><mi>e</mi><mrow><mo>-</mo><mi>&eta;</mi>
  <mfenced><mrow>
   <msub><mi>t</mi><mn>1</mn></msub><mo>+</mo><msub><mi>t</mi><mn>2</mn></msub>
  </mrow></mfenced>
 </mrow></msup>
</math>
</td>
</tr>
<tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
 <msub><mi>R</mi><mrow><msub><mi>Y</mi><mn>1</mn></msub><msub><mi>Y</mi><mn>1</mn></msub></mrow></msub>
 <mfenced><msub><mi>t</mi><mn>1</mn></msub><msub><mi>t</mi><mn>2</mn></msub></mfenced>
 <mo>=</mo>
 <mfenced><mrow>
  <msubsup><mi>&sigma;</mi><mn>1</mn><mn>2</mn></msubsup>
  <mo>+</mo>
  <msub><mi>t</mi><mn>1</mn></msub>
  <msub><mi>t</mi><mn>2</mn></msub>
  <msubsup><mi>&sigma;</mi><mn>0</mn><mn>2</mn></msubsup>
 </mrow></mfenced>
 <msup><mi>e</mi><mrow><mo>-</mo><mi>&eta;</mi>
  <mfenced><mrow>
   <msub><mi>t</mi><mn>1</mn></msub><mo>+</mo><msub><mi>t</mi><mn>2</mn></msub>
  </mrow></mfenced>
 </mrow></msup>
</math>
</td>
</tr></table>


<p>Let us consider the following first order, not homogeneous
differential equation with the initial value
<math xmlns="http://www.w3.org/1998/Math/MathML"><mi>Y</mi><mfenced><mn>0</mn><mi>&omega;</mi></mfenced>
<mo>=</mo><mn>0</mn></math>:</p>

<table class="equ"><tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mfrac><mi>d</mi><mrow><mi>d</mi><mi>t</mi></mrow></mfrac>
<mi>Y</mi><mfenced><mi>t</mi><mi>&omega;</mi></mfenced>
<mo>+</mo>
<mi>&eta;</mi><mi>Y</mi><mfenced><mi>t</mi><mi>&omega;</mi></mfenced>
<mo>=</mo>
<mi>A</mi><mfenced><mi>&omega;</mi></mfenced>
<mo>+</mo>
<mi>t</mi>
<mi>D</mi><mfenced><mi>&omega;</mi></mfenced>
</math>
</td>
<td class="equnum">
(6.10)
</td>
</tr></table>

<p>On the right side is a linear function in time with random independent
coefficients that are normally distributed with zero mean values and variances
<math xmlns="http://www.w3.org/1998/Math/MathML"><msubsup><mi>&sigma;</mi><mi>A</mi><mn>2</mn></msubsup></math>
and.
<math xmlns="http://www.w3.org/1998/Math/MathML"><msubsup><mi>&sigma;</mi><mi>D</mi><mn>2</mn></msubsup></math>
The realizations have to be computed from the corresponding deterministic equation:</p>

<table class="equ"><tr>
<td class="equ2">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mfrac><mi>d</mi><mrow><mi>d</mi><mi>t</mi></mrow></mfrac>
<mi>y</mi><mfenced><mi>t</mi></mfenced>
<mo>+</mo>
<mi>&eta;</mi><mi>y</mi><mfenced><mi>t</mi></mfenced>
<mo>=</mo>
<mi>a</mi><mo>+</mo><mi>t</mi><mi>d</mi>
</math>
</td>
<td class="equ2">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mi>y</mi><mfenced><mn>0</mn></mfenced>
<mo>=</mo>
<mn>0</mn>
</math>
</td>
<td class="equnum">
(6.11)
</td>
</tr></table>

<p>The solution for a realization is</p>

<table class="equ"><tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mi>y</mi><mfenced><mi>t</mi></mfenced>
<mo>=</mo>
<mfrac><mi>a</mi><mi>&eta;</mi></mfrac>
<mo>-</mo>
<mfrac><mi>d</mi><msup><mi>&eta;</mi><mn>2</mn></msup></mfrac>
<mo>+</mo>
<mi>t</mi><mfrac><mi>d</mi><mi>&eta;</mi></mfrac>
</math>
</td>
<td class="equnum">
(6.12)
</td>
</tr></table>

<p>The solution for the random case (for the family of realizations) is</p>

<table class="equ"><tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mi>Y</mi><mfenced><mi>t</mi><mi>&omega;</mi></mfenced>
<mo>=</mo>
<mfrac><mn>1</mn><mi>&eta;</mi></mfrac>
<mi>A</mi><mfenced><mi>&omega;</mi></mfenced>
<mo>+</mo>
<mfrac><mn>1</mn><mi>&eta;</mi></mfrac>
<mfenced><mrow>
 <mo>-</mo>
 <mfrac><mn>1</mn><mi>&eta;</mi></mfrac>
 <mo>+</mo>
 <mi>t</mi>
</mrow></mfenced>
<mi>D</mi><mfenced><mi>&omega;</mi></mfenced>
</math>
</td>
<td class="equnum">
(6.13)
</td>
</tr></table>

<p>The mean value and the correlation functions are</p>

<table class="equ"><tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
 <msub><mi>m</mi><mi>Y</mi></msub><mfenced><mi>t</mi></mfenced>
 <mo>=</mo>
 <mn>0</mn>
</math>
</td>
<td rowspan="2" class="equnum">
(6.14)
</td>
</tr>
<tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<msub><mi>R</mi><mrow><mi>Y</mi><mi>Y</mi></mrow></msub>
<mfenced><msub><mi>t</mi><mn>1</mn></msub><msub><mi>t</mi><mn>2</mn></msub></mfenced>
<mo>=</mo>
<mfrac><mn>1</mn><msup><mi>&eta;</mi><mn>2</mn></msup></mfrac>
<msubsup><mi>&sigma;</mi><mi>A</mi><mn>2</mn></msubsup>
<mo>+</mo>
<mfrac><mn>1</mn><msup><mi>&eta;</mi><mn>4</mn></msup></mfrac>
<mfenced><mrow>
 <mo>-</mo><mn>1</mn>
 <mo>+</mo>
 <mi>&eta;</mi><msub><mi>t</mi><mn>1</mn></msub>
</mrow></mfenced>
<mfenced><mrow>
 <mo>-</mo><mn>1</mn>
 <mo>+</mo>
 <mi>&eta;</mi><msub><mi>t</mi><mn>2</mn></msub>
</mrow></mfenced>
<msubsup><mi>&sigma;</mi><mi>D</mi><mn>2</mn></msubsup>
</math>
</td>
</tr></table>


<p>The stochastic process is continuous and differentiable.
The second mixed partial derivative is a constant, thus all derivatives exist.</p>

</body>
</html>


