High-performance Merton Jump-Diffusion engine for tail-risk modeling.
Project description
Jump-Engine ⚡️ High-Performance Merton Jump-Diffusion (MJD) Framework
jump-engine is a hardware-accelerated stochastic simulation library designed to model discontinuous asset price paths ("Black Swans") and price path-dependent derivatives. Optimized for Apple Silicon (MPS) and NVIDIA (CUDA) via PyTorch.
- The "So What?" (Quantitative Rationale) Standard Geometric Brownian Motion (GBM) assumes price continuity (Gaussian returns). However, real-world markets exhibit Leptokurtosis (Fat Tails) and Discontinuities (Jumps) during geopolitical shocks or liquidity crises.
jump-engine allows researchers to:
Quantify Tail Risk: Simulate 1M+ paths to calculate Value-at-Risk (VaR) and Expected Shortfall (CVaR) in milliseconds.
Price Gap Risk: Value OTM options correctly by incorporating the Poisson-Normal jump component.
Hardware Efficiency: Achieve 50x-100x throughput increases over CPU-based NumPy implementations by leveraging GPU tensor cores.
- Installation
git clone https://github.com/armouredbeast/jump-engine.git
cd jump-engine
pip install -r requirements.txt
- Quick Start: Pricing a "Crisis" Scenario
from jump_engine.nucleus.sde import MertonJumpDiffusion
from jump_engine.pricing.simulation import JumpPricer
# Configure a high-volatility, jump-heavy regime
model = MertonJumpDiffusion(
mu=0.05, # Risk-free rate
sigma=0.20, # Diffusion Vol
lamb=2.0, # 2 Jumps per year (expected)
mu_j=-0.15, # Average jump is a -15% crash
sigma_j=0.10, # Jump size volatility
device='mps' # Accelerated on ArmouredBeast GPU
)
pricer = JumpPricer(model)
price, stderr = pricer.price_european(S0=100, K=100, T=1.0, steps=252, n_paths=1_000_000)
print(f"Jump-Adjusted Option Price: {price:.4f} (±{stderr:.4f})")
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 quant_jump_engine-0.1.1.tar.gz.
File metadata
- Download URL: quant_jump_engine-0.1.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dedbd0442316b573369636ff29dabe068018b844a60cfeff96de503d97f7ad9f
|
|
| MD5 |
f73becbc47bdbca9aab3ea904c1362ce
|
|
| BLAKE2b-256 |
d49b4044ea60916ff9a3cd7b0c0586a432452b1c8cb9a8b8110680248065f62c
|
File details
Details for the file quant_jump_engine-0.1.1-py3-none-any.whl.
File metadata
- Download URL: quant_jump_engine-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
272a19bb700d178f3eb013d0c9f6c76d61aa6f41994d0d3439c2ad5403581b94
|
|
| MD5 |
22dfa8ce9a7108d45bbd7fef461f0c4f
|
|
| BLAKE2b-256 |
51c4534fd133daf52ffe111dccee0069b1f3947f5e55d76fd98d192bf0177304
|