Crates.io | stochastic-abm |
lib.rs | stochastic-abm |
version | 0.1.0 |
source | src |
created_at | 2024-09-09 08:52:41.763064 |
updated_at | 2024-09-09 08:52:41.763064 |
description | A Rust library for simulating various stochastic processes, including Arithmetic Brownian Motion and more. |
homepage | https://github.com/nzengi/stochastic-abm |
repository | https://github.com/nzengi/stochastic-abm |
max_upload_size | |
id | 1369027 |
size | 6,552 |
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.
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.