Stochastic Processes Simulation and Visualisation
Project description
aleatory
Overview
The aleatory (/ˈeɪliətəri/) Python library provides functionality for simulating and visualising stochastic processes. More precisely, it introduces objects representing a number of stochastic processes and provides methods to:
- generate realizations/trajectories from each process —over discrete time sets
- create visualisations to illustrate the processes properties and behaviour
Currently, aleatory supports the following stochastic processes in one dimension:
- Arithmetic Brownian Motion (see Brownian Motion)
- Bessel process
- Brownian Bridge
- Brownian Excursion
- Brownian Meander
- Brownian Motion
- Constant Elasticity Variance (CEV) process
- Cox–Ingersoll–Ross (CIR) process
- Chan-Karolyi-Longstaff-Sanders (CKLS) process
- Fractional Brownian Motion process
- Galton-Watson process with Poisson branching
- Gamma process
- General Random Walk
- Geometric Brownian Motion
- Hawkes process
- Inverse Gaussian process
- Inhomogeneous Poisson process
- Mixed Poisson process
- Ornstein–Uhlenbeck (OU) process
- Poisson process
- Random Walk
- Squared Bessel processes
- Vasicek process
- Variance-Gamma process
From v1.1.1 aleatory supports the following 2-d stochastic processes:
Installation
Aleatory is available on pypi and can be installed as follows
pip install aleatory
Dependencies
Aleatory relies heavily on
numpy
for random number generationscipy
andstatsmodels
for support for a number of one-dimensional distributions.matplotlib
for creating visualisations
Compatibility
Aleatory is tested on Python versions 3.8, 3.9, 3.10, and 3.11
Quick-Start
Aleatory allows you to create fancy visualisations from different stochastic processes in an easy and concise way.
For example, the following code
from aleatory.processes import BrownianMotion
brownian = BrownianMotion()
brownian.draw(n=100, N=100, colormap="cool", figsize=(12,9))
generates a chart like this:
For more examples visit the Quick-Start Guide.
If you like this project, please give it a star! ⭐️
Thanks for Visiting! ✨
Connect with me via:
- 👾 Personal Website
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file aleatory-1.1.1.tar.gz
.
File metadata
- Download URL: aleatory-1.1.1.tar.gz
- Upload date:
- Size: 63.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
70dc8b624014693138df08cedd0283440eb51914d94f0a710e23c9f1b585e098
|
|
MD5 |
2956333e4a52ed70420c23573a00ed9a
|
|
BLAKE2b-256 |
a2b459ab517388a154e4ed368374c36e563967dadd5868fb11dbe51f72b871e6
|
File details
Details for the file aleatory-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: aleatory-1.1.1-py3-none-any.whl
- Upload date:
- Size: 87.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
33d0f141e38618f561d542b5428ec10a7b6f1c1b98838db1f4992a614279a887
|
|
MD5 |
6c3d0a0740156ce98af8dc508ed3dc11
|
|
BLAKE2b-256 |
7cde5c05824503490e8305f69e5df767686cac963f8f1e96c84b65c73d3e9985
|