ANISE can also be used to solve stochastic equations with colored noise. Such equations are widely used in physics and also find important applications in biophysics (e.g. Hodgkin-Huxley and FitzHugh-Nagumo models of neurons) and for volatility models in finance. Here we consider a few rare models that have exact solutions which we can use to test the accuracy of ANISE.
1.   Ornstein-Uhlenbeck Inefficient Market Model
Consider an Ornstein-Uhlenbeck model

with colored noise volatility
such that
![]()
Here

and so the second equation must be integrated from some large negative time to time zero before the simulation of the price
can begin. The exact solution is
![]()
We have chosen
. The base ten logarithm of the error in this quantity, averaged over 1000 realizations, is shown in the figure. The requested tolerance was
1 x 10-12.
2.   Non-Markovian Quantum State Diffusion
Consider the wave equation for a spin-1/2 interacting with a bath of bosons
![]()
where zt represents a complex colored noise with
where
is the environment correlation function. It is easy to show that
where
is a complex Wiener process. Hence by adding an extra equation
![]()
we can treat the problem as a set of SDEs.
Choose
,
, and
. The noise is integrated from a time -10 until time 0 after which we integrate the noise and dynamics together until a time of 50. The exact solution of the wave equation is
![]()
from which we may compute the expectation
![]()
The base ten logarithm of the error in this quantity, averaged over 1000 realizations, is shown in the figure. The requested tolerance was 1 x 10-12.
3.  System Subject to Additive and Multiplicative Noise
Consider an overdamped linear system with additive and multiplicative noise and a sinusoidal external field
![]()
Suppose first that the noises are Gaussian but uncorrelated so that the correlation functions are
![\begin{eqnarray}
M[\xi_t \xi_s]&=&\gamma_1e^{-\gamma_1\vert t-s\vert}\nonumber \...
...gamma_2\vert t-s\vert}\nonumber \\
M[\xi_t \eta_s]&=&0.\nonumber
\end{eqnarray}](C_img20.png)
Then it follows that
and
where
and
are independent Wiener processes.
Thus we obtain a set of stochastic differential equations

which we can solve along with the equation for
. The exact solution for this problem is
![]()
We chose
,
, a = 1 and b = 2. The base ten logarithm of the numerical error ANISE makes in calculating this quantity, averaged over 1000 realizations, is shown in the figure. The requested tolerance was
1 x 10-12.
* Innovative Stochastic Algorithms *
  Top