This repository provides a high-performance framework for the calibration of a three-factor stochastic model, combining Heston's stochastic volatility with the Hull-White short-rate process. The system utilizes a Deep Neural Network (DNN) to solve the inverse problem of mapping observed European option price surfaces to the latent physical parameters of the underlying Stochastic Differential Equations (SDEs).
The model simulates the joint evolution of the asset price
The correlation structure is defined by
The system employs a parallelized Monte Carlo engine optimized for high-core count environments (50 cores). It utilizes Python's native multiprocessing to generate
Data generation implements a chunked, disk-backed caching strategy using compressed .npz archives. Normalization is performed in-place to minimize RAM residency, allowing for large-scale training on restricted-memory systems.
The model's ability to invert the SDE is validated through high-density calibration plots. By mapping normalized prices back to the physical parameters, the network achieves high
Figure 1: High-density scatter plots of True vs. Predicted parameters. The convergence of points along the identity line demonstrates successful neural inversion.
The engine produces a full 3D Implied Volatility Surface, allowing for the analysis of the volatility smile and term structure. Furthermore, the system computes the Vega manifold (
Figure 2: (Left) Calibrated 3D IV Surface. (Center) Vega Risk Manifold. (Right) Risk-weighted error heatmap, quantifying the impact of residuals in basis points (bps).