SPDE Monte Carlo Simulator
A Python package for simulating various stochastic partial differential equations commonly used in financial modeling. https://huggingface.co/time-series-foundation-models/Lag-Llama
Features
- Geometric Brownian Motion (GBM)
- Heston Model
- Cox-Ingersoll-Ross (CIR) Model
- Ornstein-Uhlenbeck (OU) Process
- Merton Jump Diffusion (MJD) Model
Installation
poetry install
Usage
from spde_mc_simulator import SPDEMCSimulator
# Initialize simulator
simulator = SPDEMCSimulator(
symbol='AAPL',
start_date='2022-01-01',
end_date='2022-03-01',
dt=1,
num_paths=1000,
eq='gbm'
)
# Run simulation
simulator.download_data()
simulator.set_parameters()
simulator.simulate()
simulator.plot_simulation()
Models
Geometric Brownian Motion (GBM)
Standard model for stock price movements assuming log-normal distribution.
Heston Model
Stochastic volatility model that captures volatility clustering.
Cox-Ingersoll-Ross (CIR)
Mean-reverting square-root process, commonly used for interest rates.
Ornstein-Uhlenbeck (OU)
Mean-reverting process useful for modeling mean-reverting financial quantities.
Merton Jump Diffusion (MJD)
Extends GBM with jump components to capture sudden price movements.
License
MIT
Metadata
Release files for awt-quant 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| awt_quant-0.1.0.tar.gz | 29.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| awt_quant-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 75.5 kB
Release files / awt_quant-0.1.0.tar.gz
| Download URL | awt_quant-0.1.0.tar.gz |
|---|---|
| Size | 29.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61a99ce365344326a0d89e29dd1d95083482a388eee255e77bc7f811d7cda5e0
|
|
BLAKE2b-256 checksum How to use checksums |
9c938331ba0822f2862d1976c088cac29326387605611c54f07348d7cb153027
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.12.3 Linux/5.15.167.4-microsoft-standard-WSL2
|
Release files / awt_quant-0.1.0-py3-none-any.whl
| Download URL | awt_quant-0.1.0-py3-none-any.whl |
|---|---|
| Size | 45.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
765004f280888a4d50158d5eab1e61a9b3a230a972bf2328259be466cc4b11f9
|
|
BLAKE2b-256 checksum How to use checksums |
ed81840f7e3ce92de6dcd9854995ed62cf81583d3dced2c460def89419e04d7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.12.3 Linux/5.15.167.4-microsoft-standard-WSL2
|