<?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>RANDOM SEQUENCES IN MATRIX NOTATION</h2>

<p>Let us write the jointly distributed random variables in
form of a <b>column matrix</b>, (<b>random vector</b>)</p>

<table class="equ"><tr>
<td class="equ3">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mi mathvariant="bold">X</mi>
<mo>=</mo>
<mfenced open="[" close="]">
<mtable>
 <mtr><mtd><msub><mi>x</mi><mn>1</mn></msub></mtd></mtr>
 <mtr><mtd><msub><mi>x</mi><mn>2</mn></msub></mtd></mtr>
 <mtr><mtd><mo>&vellip;</mo></mtd></mtr>
 <mtr><mtd><msub><mi>x</mi><mi>n</mi></msub></mtd></mtr>
</mtable>
</mfenced>
<mo>,</mo>
</math>
</td>
<td class="equ3">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<msup><mi mathvariant="bold">X</mi><mo>T</mo></msup>
<mo>=</mo>
<mfenced open="[" close="]"><mrow>
 <msub><mi>x</mi><mn>1</mn></msub><mo>,</mo>
 <msub><mi>x</mi><mn>2</mn></msub><mo>,</mo>
 <mo>&hellip;</mo><mo>,</mo>
 <msub><mi>x</mi><mi>n</mi></msub>
</mrow></mfenced>
<mo>,</mo>
</math>
</td>
<td class="equ3">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mi>E</mi><mrow><mo>[</mo><mi mathvariant="bold">X</mi><mo>]</mo></mrow>
<mo>=</mo>
<mfenced open="[" close="]">
<mtable>
 <mtr><mtd><mi>E</mi><mo>{</mo><msub><mi>x</mi><mn>1</mn></msub><mo>}</mo></mtd></mtr>
 <mtr><mtd><mi>E</mi><mo>{</mo><msub><mi>x</mi><mn>2</mn></msub><mo>}</mo></mtd></mtr>
 <mtr><mtd><mo>&vellip;</mo></mtd></mtr>
 <mtr><mtd><mi>E</mi><mo>{</mo><msub><mi>x</mi><mi>n</mi></msub><mo>}</mo></mtd></mtr>
</mtable>
</mfenced>
<mo>.</mo>
</math>
</td>
<td class="equnum">
(4.1)
</td>
</tr></table>


<p>Its transpose is a row matrix. The expectation is a column matrix
with elements equal to the expectations of the random numbers 
<math xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>x</mi><mi>k</mi></msub><mo>,</mo>
<mn>1</mn><mo>&le;</mo><mi>k</mi><mo>&le;</mo><mi>n</mi></math>.</p>

<p>The square <math xmlns="http://www.w3.org/1998/Math/MathML"><mo>(</mo><mi>n</mi><mo>&times;</mo><mi>n</mi><mo>)</mo></math>
matrix with elements <math xmlns="http://www.w3.org/1998/Math/MathML"><mi>cov</mi><mo>{</mo>
<msub><mi>x</mi><mi>i</mi></msub><mo>,</mo><msub><mi>x</mi><mi>i</mi></msub><mo>}</mo></math>
is called the <b>covariance matrix</b> of the random vector
<math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="bold">X</mi></math>
and denoted by <math xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi mathvariant="bold">C</mi><mi>X</mi></msub></math></p>

<table class="equ"><tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<msub><mi mathvariant="bold">C</mi><mi>X</mi></msub>
<mo>=</mo>
<mi>E</mi><mfenced open="{" close="}"><mrow>
 <mfenced><mrow><mi mathvariant="bold">X</mi><mo>-</mo><mi>E</mi><mfenced open="{" close="}"><mi mathvariant="bold">X</mi></mfenced></mrow></mfenced>
 <msup>
  <mfenced><mrow><mi mathvariant="bold">X</mi><mo>-</mo><mi>E</mi><mfenced open="{" close="}"><mi mathvariant="bold">X</mi></mfenced></mrow></mfenced>
  <mo>T</mo>
 </msup>
</mrow></mfenced>
<mo>,</mo>
</math>
</td>
<td class="equnum">
(4.2)
</td>
</tr></table>

<p>its elements are</p>

<table class="equ"><tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mi mathvariant="bold">X</mi>
<mo>=</mo>
<mfenced open="[" close="]">
<mtable>
 <mtr>
  <mtd><mi>var</mi><mo>{</mo><msub><mi>x</mi><mn>1</mn></msub><mo>}</mo></mtd>
  <mtd><mi>cov</mi><mo>{</mo><msub><mi>x</mi><mn>1</mn></msub><mo>,</mo><msub><mi>x</mi><mn>2</mn></msub><mo>}</mo></mtd>
  <mtd><mi>&ctdot;</mi></mtd>
  <mtd><mi>cov</mi><mo>{</mo><msub><mi>x</mi><mn>1</mn></msub><mo>,</mo><msub><mi>x</mi><mi>n</mi></msub><mo>}</mo></mtd>
 </mtr>
 <mtr>
  <mtd><mi>cov</mi><mo>{</mo><msub><mi>x</mi><mn>2</mn></msub><mo>,</mo><msub><mi>x</mi><mn>1</mn></msub><mo>}</mo></mtd>
  <mtd><mi>var</mi><mo>{</mo><msub><mi>x</mi><mn>2</mn></msub><mo>}</mo></mtd>
  <mtd><mi>&ctdot;</mi></mtd>
  <mtd><mi>cov</mi><mo>{</mo><msub><mi>x</mi><mn>2</mn></msub><mo>,</mo><msub><mi>x</mi><mi>n</mi></msub><mo>}</mo></mtd>
 </mtr>
 <mtr>
  <mtd><mo>&vellip;</mo></mtd>
  <mtd><mo>&vellip;</mo></mtd>
  <mtd><mi>&dtdot;</mi></mtd>
  <mtd><mo>&vellip;</mo></mtd>
 </mtr>
 <mtr>
  <mtd><mi>cov</mi><mo>{</mo><msub><mi>x</mi><mi>n</mi></msub><mo>,</mo><msub><mi>x</mi><mn>1</mn></msub><mo>}</mo></mtd>
  <mtd><mi>cov</mi><mo>{</mo><msub><mi>x</mi><mi>n</mi></msub><mo>,</mo><msub><mi>x</mi><mn>2</mn></msub><mo>}</mo></mtd>
  <mtd><mi>&ctdot;</mi></mtd>
  <mtd><mi>var</mi><mo>{</mo><msub><mi>x</mi><mi>n</mi></msub><mo>}</mo></mtd>
 </mtr>
</mtable>
</mfenced>
<mo>.</mo>
</math>
</td>
<td class="equnum">
(4.3)
</td>
</tr></table>

<p>The covariance matrix is <b>symmetric</b>. For a symmetric
square matrix the eigenvalues are real and the eigenvectors are
orthogonal. A matrix <math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="bold">A</mi></math>
is said to be positive definite if 
<math xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi mathvariant="bold">X</mi><mo>T</mo></msup>
<mi mathvariant="bold">A</mi><mi mathvariant="bold">X</mi></math>
for all vectors <math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="bold">X</mi><mo>&ne;</mo>
<mn mathvariant="bold">0</mn></math>. It is easy to see that the matrix
<math xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi mathvariant="bold">C</mi><mi>X</mi></msub></math>
has to be positive definite. If the values of the elements of the covariance
matrix are estimated from observation it is necessary to transform the
matrix to a symmetric form and change the terms so that all the eigenvalues
are positive.</p>

<p>In matrix notation the density function of a <b><i>n</i> jointly normally distributed random variables</b>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<msup><mi mathvariant="bold">X</mi><mo>T</mo></msup><mo>=</mo>
<mfenced open="[" close="]">
<mrow>
 <msub><mi>x</mi><mn>1</mn></msub><mo>,</mo>
 <msub><mi>x</mi><mn>2</mn></msub><mo>,</mo>
 <mo>&hellip;</mo><mo>,</mo>
 <msub><mi>x</mi><mi>n</mi></msub>
</mrow></mfenced>
</math> is</p>

<table class="equ"><tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<msub>
 <mi>p</mi><mrow><msub><mi>x</mi><mn>1</mn></msub><mo>,</mo>
 <mo>&hellip;</mo><mo>,</mo>
 <msub><mi>x</mi><mi>m</mi></msub></mrow>
</msub>
<mfenced>
 <msub><mi>x</mi><mn>1</mn></msub>
 <mo>&hellip;</mo>
 <msub><mi>x</mi><mi>m</mi></msub>
</mfenced>
<mo>=</mo>
<mrow>
<msqrt>
 <mfrac>
  <msup><mfenced><mrow><mn>2</mn><mi>&pi;</mi></mrow></mfenced><mi>n</mi></msup>
  <mrow><mo>|</mo><msub><mi mathvariant="bold">C</mi><mi>X</mi></msub><mo>|</mo></mrow>
 </mfrac>
</msqrt>
<mrow>
 <mi>exp</mi><mfenced open="[" close="]"><mrow>
 <mo>-</mo><mfrac><mn>1</mn><mn>2</mn></mfrac>
 <msup><mfenced><mrow><mi mathvariant="bold">X</mi><mo>-</mo><mi>E</mi><mo>{</mo><mi mathvariant="bold">X</mi><mo>}</mo></mrow></mfenced><mo>T</mo></msup>
 <msubsup><mi mathvariant="bold">C</mi><mi>X</mi><mrow><mo>-</mo><mn>1</mn></mrow></msubsup>
 <mfenced><mrow><mi mathvariant="bold">X</mi><mo>-</mo><mi>E</mi><mo>{</mo><mi mathvariant="bold">X</mi><mo>}</mo></mrow></mfenced>
</mrow></mfenced>
</mrow>
</mrow>
</math>
</td>
<td class="equnum">
(4.4)
</td>
</tr></table>

<p>where <math xmlns="http://www.w3.org/1998/Math/MathML"><mo>|</mo><msub><mi mathvariant="bold">C</mi><mi>X</mi></msub><mo>|</mo></math>
denotes the determinant and 
<math xmlns="http://www.w3.org/1998/Math/MathML"><msubsup><mi mathvariant="bold">C</mi><mi>X</mi><mrow><mo>-</mo><mn>1</mn></mrow></msubsup></math>
the inverse of the covariance matrix.</p>

<p>Let us now look at some simple examples of Gaussian random sequences</p>

<p>Example 4.1. Let us consider the simple case the expectation is a zero column
matrix and the covariance matrix is proportional to the unit matrix 
<math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="bold">I</mi></math>,
<math xmlns="http://www.w3.org/1998/Math/MathML"><mrow><msub><mi mathvariant="bold">C</mi><mi>X</mi></msub><mo>=</mo>
<msup><mi>&sigma;</mi><mn>2</mn></msup><mi mathvariant="bold">I</mi></mrow></math>. Thus it
is a diagonal matrix. When substituted into the expression for jointly
normally distributed random variables it follows that the elements of the
sequence are mutually independent. It follows that
<math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="bold">X</mi><mo>=</mo>
<mi>&sigma;</mi><mi mathvariant="bold">U</mi></math> or in elements
<math xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>x</mi><mi>k</mi></msub><mo>=</mo>
<mi>&sigma;</mi><msub><mi>u</mi><mi>k</mi></msub><mo>,</mo>
<mn>1</mn><mo>&le;</mo><mi>k</mi><mo>&le;</mo><mi>n</mi></math> where
<math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="bold">U</mi></math>
is a <b>Gaussian white noise sequence</b> all elements have the same variance
<math xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>&sigma;</mi><mn>2</mn></msup></math>.</p>

<p>&nbsp;</p>

<p>Example 4.2. Let us consider the random sequence defined by the
following difference equation and initial value</p>

<p>The covariance matrix has the following form</p>

<table class="equ"><tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mtable>
<mtr>
 <mtd columnalign="left">
  <mi>X</mi><mrow><mo>(</mo><mn>0</mn><mo>)</mo></mrow><mo>=</mo><mn>0</mn><mo>,</mo>
 </mtd>
</mtr>
<mtr>
 <mtd columnalign="left">
  <mi>X</mi><mo>(</mo><mi>s</mi><mo>)</mo><mo>-</mo><mi>X</mi><mo>(</mo><mi>s</mi><mo>-</mo><mn>1</mn><mo>)</mo>
  <mo>=</mo>
  <mi>&sigma;</mi><mi>u</mi><mo>(</mo><mi>s</mi><mo>)</mo><mo>,</mo>
  <mn>1</mn><mo>&le;</mo><mi>s</mi><mo>&le;</mo><mi>n</mi>
 </mtd>
</mtr>
</mtable>
</math>
</td>
</tr></table>

<p>It means the sequence has independent increments with equal
<math xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>&sigma;</mi><mn>2</mn></msup></math> variances.</p>

<p>The covariance matrix has the following form</p>
<table class="equ"><tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<msub><mi mathvariant="bold">C</mi><mi>X</mi></msub>
<mo>=</mo>
<msup><mi>&sigma;</mi><mn>2</mn></msup>
<mfenced open="[" close="]"><mrow>
<mtable>
 <mtr><mtd><mn>1</mn></mtd><mtd><mn>1</mn></mtd><mtd><mn>1</mn></mtd><mtd><mn>1</mn></mtd><mtd><mo>&ctdot;</mo></mtd><mtd><mn>1</mn></mtd></mtr>
 <mtr><mtd><mn>1</mn></mtd><mtd><mn>2</mn></mtd><mtd><mn>2</mn></mtd><mtd><mn>2</mn></mtd><mtd><mo>&ctdot;</mo></mtd><mtd><mn>2</mn></mtd></mtr>
 <mtr><mtd><mn>1</mn></mtd><mtd><mn>2</mn></mtd><mtd><mn>3</mn></mtd><mtd><mn>3</mn></mtd><mtd><mo>&ctdot;</mo></mtd><mtd><mn>3</mn></mtd></mtr>
 <mtr><mtd><mn>1</mn></mtd><mtd><mn>2</mn></mtd><mtd><mn>3</mn></mtd><mtd><mn>4</mn></mtd><mtd><mo>&ctdot;</mo></mtd><mtd><mn>4</mn></mtd></mtr>
 <mtr><mtd><mo>&vellip;</mo></mtd><mtd><mo>&vellip;</mo></mtd><mtd><mo>&vellip;</mo></mtd><mtd><mo>&vellip;</mo></mtd><mtd><mi>&dtdot;</mi></mtd><mtd><mo>&vellip;</mo></mtd></mtr>
 <mtr><mtd><mn>1</mn></mtd><mtd><mn>2</mn></mtd><mtd><mn>3</mn></mtd><mtd><mn>4</mn></mtd><mtd><mo>&ctdot;</mo></mtd><mtd><mi>n</mi></mtd></mtr>
</mtable>
</mrow></mfenced>
<mo>.</mo>
</math>
</td>
</tr></table>

<p>It is easy to verify that the elements of the covariance matrix
are given by the following expression</p>

<p>The covariance matrix has the following form</p>

<table class="equ"><tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mrow><mi>c</mi><mo>(</mo><mi>i</mi><mo>,</mo><mi>j</mi><mo>)</mo></mrow>
<mo>=</mo>
<mrow>
 <msup><mi>&sigma;</mi><mn>2</mn></msup>
 <mrow><mi>min</mi><mo>(</mo><mi>i</mi><mo>,</mo><mi>j</mi><mo>)</mo></mrow>
</mrow>
<mo>.</mo>
</math>
</td>
</tr></table>

<p>&nbsp;</p>

<p>Let us generalize the results of Example 4.2 to the case of 
not unit intervals but of length <math xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>&Delta;</mo><mi>t</mi></mrow></math>.
This results in a change in the notation of the coefficient
<math xmlns="http://www.w3.org/1998/Math/MathML"><mrow><msup><mi>&sigma;</mi><mn>2</mn></msup><mo>&rarr;</mo><msup><mi>&sigma;</mi><mn>2</mn></msup><mo>&Delta;</mo><mi>t</mi></mrow></math>.
This leads to the following form of the difference equation:</p>

<table class="equ"><tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mfenced open="[" close="]"><mrow>
 <mi>X</mi><mo>(</mo><mi>s</mi><mo>)</mo>
 <mo>-</mo>
 <mi>X</mi><mo>(</mo><mi>s</mi><mo>-</mo><mn>1</mn><mo>)</mo>
</mrow></mfenced>
<mo>=</mo>
<mi>&sigma;</mi>
<msqrt><mo>&Delta;</mo><mi>t</mi></msqrt>
<mi>u</mi><mo>(</mo><mn>0</mn><mo>)</mo>
<mo>,</mo>
</math>
</td>
<td class="equnum">
(4.5)
</td>
</tr></table>

<p>and the expression for the element of the covariance matrix becomes</p>

<p>The covariance matrix has the following form</p>

<table class="equ"><tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mi>c</mi><mo>(</mo><mi>i</mi><mo>,</mo><mi>j</mi><mo>)</mo>
<mo>=</mo>
<msup><mi>&sigma;</mi><mn>2</mn></msup>
<mi>min</mi><mo>(</mo><mi>i</mi><mo>&Delta;</mo><mi>t</mi><mo>,</mo><mi>j</mi><mo>&Delta;</mo><mi>t</mi><mo>)</mo>
<mo>=</mo>
<msup><mi>&sigma;</mi><mn>2</mn></msup>
<mi>min</mi><mo>(</mo><msub><mi>t</mi><mi>i</mi></msub><mo>,</mo><msub><mi>t</mi><mi>j</mi></msub><mo>)</mo>
<mo>.</mo>
</math>
</td>
<td class="equnum">
(4.6)
</td>
</tr></table>

<p>This random difference equation may be used to study the case when
<math xmlns="http://www.w3.org/1998/Math/MathML"><mo>&Delta;</mo><mi>t</mi><mo>&rarr;</mo><mn>0</mn></math>.
The result is that the sequence tends to a continuous function with
no derivative in any point.</p>

<p>&nbsp;</p>

<p>Example 4.3. Let us consider the random sequence defined by the
following difference equation and initial value</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>A</mi><mn>0</mn></msub><mo>(</mo><mn>0</mn><mo>)</mo>
  <mo>=</mo>
  <msub><mi>&sigma;</mi><mn>0</mn></msub><mi>u</mi><mo>(</mo><mn>0</mn><mo>)</mo><mo>,</mo>
 </mtd>
</mtr>
<mtr>
 <mtd columnalign="left">
  <msub><mi>A</mi><mn>0</mn></msub><mo>(</mo><mi>s</mi><mo>)</mo>
  <mo>=</mo>
  <mi>&gamma;</mi><msub><mi>A</mi><mn>0</mn></msub><mo>(</mo><mi>s</mi><mo>-</mo><mn>1</mn><mo>)</mo>
  <mo>+</mo>
  <mi>&beta;</mi><msub><mi>&sigma;</mi><mn>0</mn></msub><mi>u</mi><mo>(</mo><mi>s</mi><mo>)</mo><mo>,</mo>
  <mn>1</mn><mo>&le;</mo><mi>s</mi><mo>&le;</mo><mi>n</mi><mo>-</mo><mn>1</mn>
 </mtd>
</mtr>
</mtable>
</math>
</td>
</tr></table>

<p>where <math xmlns="http://www.w3.org/1998/Math/MathML"><mi>u</mi><mo>(</mo><mi>s</mi><mo>)</mo></math>
is an element of a white noise sequence and the condition that the elements
<math xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>A</mi><mn>0</mn></msub><mo>(</mo><mn>0</mn><mo>)</mo></math>
and <math xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>A</mi><mn>0</mn></msub><mo>(</mo><mn>1</mn><mo>)</mo></math>
have equal variances has to be satisfied. The condition yields the relation</p>

<table class="equ"><tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<msubsup><mi>&sigma;</mi><mn>0</mn><mn>2</mn></msubsup>
<mo>=</mo>
<msup><mi>&gamma;</mi><mn>2</mn></msup>
<msubsup><mi>&sigma;</mi><mn>0</mn><mn>2</mn></msubsup>
<mo>+</mo>
<msup><mi>&beta;</mi><mn>2</mn></msup>
<msubsup><mi>&sigma;</mi><mn>0</mn><mn>2</mn></msubsup>
<mo>&Implies;</mo>
<mi>&beta;</mi><mo>=</mo>
<msqrt><msup><mrow><mn>1</mn><mo>-</mo><mi>&gamma;</mi></mrow><mn>2</mn></msup></msqrt>
</math>
</td>
</tr></table>

<p>It is easy to verify that the covariance matrix has the following form</p>

<p>The covariance matrix has the following form</p>

<table class="equ"><tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<msub><mi mathvariant="bold">C</mi><mi>X</mi></msub>
<mo>=</mo>
<msup><mi>&sigma;</mi><mn>2</mn></msup>
<mfenced open="[" close="]"><mrow>
<mtable>
 <mtr>  <mtd><mn>1</mn></mtd>  <mtd><mi>&gamma;</mi></mtd>  <mtd><msup><mi>&gamma;</mi><mn>2</mn></msup></mtd>  <mtd><msup><mi>&gamma;</mi><mn>3</mn></msup></mtd>  <mtd><mo>&ctdot;</mo></mtd>  <mtd><msup><mi>&gamma;</mi><mrow><mi>n</mi><mo>-</mo><mn>1</mn></mrow></msup></mtd>  </mtr>
 <mtr>  <mtd><mi>&gamma;</mi></mtd>  <mtd><mn>1</mn></mtd>  <mtd><mi>&gamma;</mi></mtd>  <mtd><msup><mi>&gamma;</mi><mn>2</mn></msup></mtd>  <mtd><mo>&ctdot;</mo></mtd>  <mtd><msup><mi>&gamma;</mi><mrow><mi>n</mi><mo>-</mo><mn>2</mn></mrow></msup></mtd>  </mtr>
 <mtr>  <mtd><msup><mi>&gamma;</mi><mn>2</mn></msup></mtd>  <mtd><mi>&gamma;</mi></mtd>  <mtd><mn>1</mn></mtd>  <mtd><mi>&gamma;</mi></mtd>  <mtd><mo>&ctdot;</mo></mtd>  <mtd><msup><mi>&gamma;</mi><mrow><mi>n</mi><mo>-</mo><mn>3</mn></mrow></msup></mtd>  </mtr>
 <mtr>  <mtd><msup><mi>&gamma;</mi><mn>2</mn></msup></mtd>  <mtd><msup><mi>&gamma;</mi><mn>2</mn></msup></mtd>  <mtd><mi>&gamma;</mi></mtd>  <mtd><mn>1</mn></mtd>  <mtd><mo>&ctdot;</mo></mtd>  <mtd><msup><mi>&gamma;</mi><mrow><mi>n</mi><mo>-</mo><mn>4</mn></mrow></msup></mtd>  </mtr>
 <mtr>  <mtd><mo>&vellip;</mo></mtd>  <mtd><mo>&vellip;</mo></mtd>  <mtd><mo>&vellip;</mo></mtd>  <mtd><mo>&vellip;</mo></mtd>  <mtd><mo>&dtdot;</mo></mtd>  <mtd><mo>&vellip;</mo></mtd>  </mtr>
 <mtr>  <mtd><msup><mi>&gamma;</mi><mrow><mi>n</mi><mo>-</mo><mn>1</mn></mrow></msup></mtd>  <mtd><msup><mi>&gamma;</mi><mrow><mi>n</mi><mo>-</mo><mn>2</mn></mrow></msup></mtd>  <mtd><msup><mi>&gamma;</mi><mrow><mi>n</mi><mo>-</mo><mn>3</mn></mrow></msup></mtd>  <mtd><msup><mi>&gamma;</mi><mrow><mi>n</mi><mo>-</mo><mn>4</mn></mrow></msup></mtd>  <mtd><mo>&ctdot;</mo></mtd>  <mtd><mn>1</mn></mtd>  </mtr>
</mtable>
</mrow></mfenced>
<mo>.</mo>
</math>
</td>
</tr></table>

<p>It is easy to verify that the general expressions for the
elements of the covariance matrix are</p>

<table class="equ"><tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<msub><mi>c</mi><mrow><mi>i</mi><mi>j</mi></mrow></msub>
<mo>=</mo>
<msup><mi>&gamma;</mi><mrow><mo>|</mo><mi>i</mi><mo>-</mo><mi>j</mi><mo>|</mo></mrow></msup>
<msubsup><mi>&sigma;</mi><mn>0</mn><mn>2</mn></msubsup>
</math>
</td>
</tr></table>

<p>The covariance matrix has same values on all diagonals. The values depend
upon the distances of the points <math xmlns="http://www.w3.org/1998/Math/MathML"><mo>|</mo><mi>i</mi><mo>-</mo><mi>j</mi><mo>|</mo></math>.</p>

<p>&nbsp;</p>

<p>Let us generalize the results of the Example 4.3 by introduction
of the following change of notation in parameters in
the expressions for the elements of the covariance matrix
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mi>&gamma;</mi>
<mo>=</mo>
 <msup>
 <mi>e</mi>
 <mrow><mo>-</mo><mi>&eta;</mi><mo>&Delta;</mo><mi>t</mi></mrow>
</msup>
</math>. It follows
</p>

<table class="equ"><tr>
<td class="equ">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<msub><mi>c</mi><mrow><mi>i</mi><mi>j</mi></mrow></msub>
<mo>=</mo>
<msubsup><mi>&sigma;</mi><mn>0</mn><mn>2</mn></msubsup>
<msup><mrow>
 <mo>[</mo><mrow>
  <msup>
   <mi>e</mi>
   <mrow><mo>-</mo><mi>&eta;</mi><mo>&Delta;</mo><mi>t</mi></mrow>
  </msup>
 </mrow><mo>]</mo></mrow>
 <mrow><mo>|</mo><mi>i</mi><mo>-</mo><mi>j</mi><mo>|</mo></mrow>
</msup>
<mo>.</mo>
</math>
</td>
<td class="equnum">
(4.7)
</td>
</tr></table>

<p>In the new notations the random difference equation becomes</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>A</mi><mn>0</mn></msub><mo>(</mo><mn>0</mn><mo>)</mo>
  <mo>=</mo>
  <msub><mi>&sigma;</mi><mn>0</mn></msub><mi>u</mi><mo>(</mo><mn>0</mn><mo>)</mo><mo>,</mo>
 </mtd>
</mtr>
<mtr>
 <mtd columnalign="left">
  <msub><mi>A</mi><mn>0</mn></msub><mo>(</mo><mi>s</mi><mo>)</mo>
  <mo>=</mo>
  <msup><mi>e</mi><mrow><mo>-</mo><mi>&eta;</mi><mo>&Delta;</mo><mi>t</mi></mrow></msup>
  <msub><mi>A</mi><mn>0</mn></msub><mo>(</mo><mi>s</mi><mo>-</mo><mn>1</mn><mo>)</mo>
  <mo>+</mo>
  <msqrt><mn>1</mn><mo>-</mo><msup><mi>e</mi><mrow><mo>-</mo><mn>2</mn><mi>&eta;</mi><mo>&Delta;</mo><mi>t</mi></mrow></msup></msqrt>
  <msub><mi>&sigma;</mi><mn>0</mn></msub><mi>u</mi><mo>(</mo><mi>s</mi><mo>)</mo><mo>,</mo>
  <mn>1</mn><mo>&le;</mo><mi>s</mi><mo>&le;</mo><mi>n</mi><mo>-</mo><mn>1</mn>
  <mo>.</mo>
 </mtd>
</mtr>
</mtable>
</math>
</td>
<td class="equnum">
(4.8)
</td>
</tr></table>


<p>This form is suitable to study the influence of the value of
<math xmlns="http://www.w3.org/1998/Math/MathML"><mo>&Delta;</mo><mi>t</mi></math>
on the behaviour of the solution. The final result is: when
<math xmlns="http://www.w3.org/1998/Math/MathML"><mo>&Delta;</mo><mi>t</mi><mo>&rarr;</mo><mn>0</mn></math>
the difference equation tends to an It&ocirc; random differential equation
with a solution that is a continuous function with no derivative at any point.</p>

<h3>Numerical examples</h3>

<p><b>Example 1</b><br />

The script file <tt>pwsema04</tt> gives examples of simple random
sequences: 1) White Gaussian Sequence, 2) Brownian Motion Sequence,
3) not differentiable stationary process.</p>

<p><b>Download</b><br />
Scilab: <a href="pwsema04.sci"><tt>pwsema04.sci</tt></a><br />
Octave/Matlab: <a href="pwsema04.m"><tt>pwsema04.m</tt></a>
</p>


</body>
</html>


