stochastic_rk, an Octave code which implements Runge-Kutta integration methods for stochastic differential equations (SDE).
The computer code and data files described and made available on this web page are distributed under the MIT license.
stochastic_rk is available in a C version and a C++ version and a Fortran77 version and a Fortran90 version and a MATLAB version and an Octave version.
black_scholes, an Octave code which implements some simple approaches to the Black-Scholes option valuation theory;
cnoise, an Octave code which generates samples of noise obeying a 1/f^alpha power law, by Miroslav Stoyanov.
colored_noise, an Octave code which generates samples of noise obeying a 1/f^alpha power law.
feynman_kac_2d, an Octave code which demonstrates the use of the Feynman-Kac algorithm for solving certain partial differential equations.
ornstein_uhlenbeck, an Octave code which approximates solutions of the Ornstein-Uhlenbeck stochastic differential equation (SDE) using the Euler method and the Euler-Maruyama method.
pce_legendre, an Octave code which assembles the system matrix associated with a polynomal chaos expansion of a 2d stochastic PDE, using Legendre polynomials;
pce_ode_hermite, an Octave code which sets up a simple scalar ODE for exponential decay with an uncertain decay rate, using a polynomial chaos expansion in terms of Hermite polynomials.
pink_noise, an Octave code which computes a pink noise signal obeying a 1/f power law.
sde, an Octave code which illustrates the properties of stochastic differential equations (SDE), and common algorithms for their analysis, by Desmond Higham;
stochastic_diffusion, an Octave code which implements several versions of a stochastic diffusivity coefficient.
stochastic_gradient_nd_noise, an Octave code which solves an optimal control problem involving a functional over a system with stochastic noise.