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 continuous-time stochastic processes $X = (X_t : t\geq 0)$ 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 13 processes:
- Brownian Motion
- Brownian Bridge
- Brownian Excursion
- Brownian Meander
- Geometric Brownian Motion (GBM) process
- Ornstein–Uhlenbeck (OU) process
- Vasicek process
- Cox–Ingersoll–Ross (CIR) process
- Constant Elasticity Variance (CEV) process
- Chan-Karolyi-Longstaff-Sanders (CKLS) process
- Bessel (BES) process
- Squared Bessel (BESQ) process
- Poisson process
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
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-0.4.0.tar.gz
.
File metadata
- Download URL: aleatory-0.4.0.tar.gz
- Upload date:
- Size: 26.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 005dd56507ed28b4854fa9dfc2bc373a7dac484d71ad7c0480b0d53c65145873 |
|
MD5 | b1806ed35b15e0da4400765fee484baf |
|
BLAKE2b-256 | 883d74d7f9381aa956868a4329bae57ce1399d992a3f928ccb8f8eb828ef5d40 |
File details
Details for the file aleatory-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: aleatory-0.4.0-py3-none-any.whl
- Upload date:
- Size: 37.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 046c48694330d3e2193968302a51d2fb6ef32e71223ee7906c749ded98b78cb8 |
|
MD5 | f6cbfab838a01734b47f7d68383d8acb |
|
BLAKE2b-256 | bd1076b36ea5d75cd5166165012ef69f61c9b0a0a6b760db88e2d55ca4a00f44 |