stochastic-abm

A Rust library for simulating various stochastic processes, including Arithmetic Brownian Motion and more

1 unstable release

0.1.0 Sep 9, 2024

#410 in Simulation

Download history 112/week @ 2024-09-09 21/week @ 2024-09-16 13/week @ 2024-09-23 25/week @ 2024-09-30

171 downloads per month

MIT license

6KB

Arithmetic Brownian Motion (ABM) in Rust

This Rust crate provides an implementation of the Arithmetic Brownian Motion (ABM) model, a simple stochastic process used to simulate the price movement of assets over time.

Overview

The Arithmetic Brownian Motion (ABM) is defined by the stochastic differential equation:

dS = μ * dt + σ * dW

Where:
- `S` is the asset price,
- `μ` is the drift (mean or trend),
- `σ` is the volatility (standard deviation of returns),
- `dW` is the Wiener process increment (Brownian motion),
- `dt` is the time increment.

ABM is commonly used in finance for modeling asset prices, though it has limitations such as not enforcing positivity of the asset price.

Dependencies

~310KB