stochastic-abm 0.1.0

A Rust library for simulating various stochastic processes, including Arithmetic Brownian Motion and more.
Documentation
  • Coverage
  • 36.36%
    4 out of 11 items documented0 out of 3 items with examples
  • Size
  • Source code size: 9.4 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.53 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 19s Average build duration of successful builds.
  • all releases: 19s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • nzengi/stochastic-abm
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nzengi

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.