A Python package for simulating Geometric Brownian Motion.
Project description
pygbm
Geometric Brownian Motions simulation exercise from C1 example class
Features
Simulation of GBM Easy Python API Command-line tool Path plotting Save plots to file
Installation
Install pygbm using pip:
$ pip install pygbm
or from source files using:
$ pip install -e /path/to/source
Dependencies
∙Python 3.9+ ∙matplotlib ∙numpy
Usage
∙Example code:
from pygbm.gbm_simulation import GBMSimulator
simulator = GBMSimulator(y0=1.0, mu=0.05, sigma=0.2)
t_values, y_values = simulator.simulate_path(T=1.0, N=100)
simulator.plot_path(t_values, y_values)
∙Baseline example plot see gbm_plot.png
∙For the command-line interface, one should be able to run something like:
pygbm --y0 1.0 --mu 0.05 --sigma 0.2 --T 1.0 --N 100 --output gbm_plot.png, this command should produce a plot of the simulated path as an output.
Documentation
Link to the [document page (to be added)]
Contribution
Contributors via pull requests are welcome.
License
MIT License
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygbm_hej-0.1.0.post2.tar.gz.
File metadata
- Download URL: pygbm_hej-0.1.0.post2.tar.gz
- Upload date:
- Size: 42.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9dbde92fa03f2984c1b69b22955e4323ddf09d6344adedda3ca30b6fa333a97
|
|
| MD5 |
8a960a1243d8b5b9e7a3a50627fe1a57
|
|
| BLAKE2b-256 |
7a28472fd2d0168178710b6b6b901abbf732529ef14aa672006a0df4b57df066
|
File details
Details for the file pygbm_hej-0.1.0.post2-py3-none-any.whl.
File metadata
- Download URL: pygbm_hej-0.1.0.post2-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3aa21e2bbc9e9cac7566c915b996e38f838bba7c94ee988a4772983a4523a9d1
|
|
| MD5 |
f2db09cc562aa426941f7a8ef84b3acf
|
|
| BLAKE2b-256 |
6f848e1b60184d914a0d23b4405edd9ec7fb079699f0f680d1a7a479079043b8
|