#stochastic #process #monte-carlo #random

bin+lib stochastic-rs

A Rust library for stochastic processes

28 releases (5 breaking)

new 0.6.1 Jul 26, 2024
0.5.6 Jul 25, 2024
0.4.2 Feb 22, 2024
0.3.3 Oct 28, 2023
0.1.1 May 28, 2023

#39 in Simulation

Download history 112/week @ 2024-06-21 5/week @ 2024-06-28 11/week @ 2024-07-05 333/week @ 2024-07-19

350 downloads per month

MIT license

67KB
1K SLoC

Crates.io Crates.io

Stochastic-rs

A Rust library for stochastic processes and models. The main goal to provide a simple and easy to use high performance library for stochastic processes and models. This library is still in development and breaking changes may occur. 🚧

Documentation is available at stochastic-rs.

Implementations

Stochastic processes

  • Gaussian noise
  • Brownian motion
  • Correlated Brownian motion
  • Geometric Brownian motion
  • Cox-Ingersoll-Ross process
  • Ornstein-Uhlenbeck process
  • Jacobi process

Jumps and Levy processes (unstable)

  • Poisson process
  • Compound Poisson process
  • Fractional Ornstein-Uhlenbeck process with jumps
  • Levy jump diffusion
  • Inverse Gaussian
  • Normal Inverse Gaussian
  • Variance Gamma

Stochastic models

  • Heston model
  • Merton model
  • Bates model
  • Vasicek model
  • SABR model (unstable)
  • Duffie-Kan model (unstable)

Fractional Stochastic processes

  • Fractional Gaussian noise
  • Fractional Brownian motion
  • Correlated Fractional Brownian motion
  • Fractional Geometric Brownian motion
  • Fractional Ornstein-Uhlenbeck process
  • Fractional Cox-Ingersoll-Ross process
  • Fractional Jacobi process

Features

  • Rough Heston model
  • Bergomi model
  • Rough Bergomi model
  • Hull-White model
  • Barndorff-Nielsen & Shephard model
  • Alpha-stable models
  • CGMY model
  • CIR model
  • Multi-factor CIR model
  • BGM model
  • Wu-Zhang model
  • Affine model
  • Heath-Jarrow-Morton model & Multi-factor Heath-Jarrow-Morton model

Future work

  • Add more tests
  • Add more examples
  • Full documentation

Dependencies

~15–24MB
~287K SLoC