quantdata.dysanos.tangent_levy.pricing#

Generic Fourier pricing for finite-grid Tangent Lévy densities.

class quantdata.dysanos.tangent_levy.pricing.PreparedFourierPricer(log_strikes, u, kernel, simpson_weights)[source]#

Bases: object

Precomputed equation (2.36) quadrature for a fixed strike vector.

classmethod create(log_strikes, *, config=PricingConfig(integration_upper=160.0, integration_points=1281, strike_chunk_size=256))[source]#

Build the fixed phase and Simpson weights once for calibration.

price(characteristic_function)[source]#

Evaluate calls using a new characteristic function.

quantdata.dysanos.tangent_levy.pricing.fourier_call_prices(log_strikes, characteristic_function, *, config=PricingConfig(integration_upper=160.0, integration_points=1281, strike_chunk_size=256))[source]#

Price normalized calls with equation (2.36) of the paper.

characteristic_function(z) must return E[exp(i z log(S_T/S_t))] for complex z. Spot, rates, and dividends are normalized to one, zero, and zero respectively.

quantdata.dysanos.tangent_levy.pricing.density_characteristic_function(*, tau, jump_x, average_density)[source]#

Return the characteristic function induced by a finite-grid density.

The density is the maturity-average density eta from equation (2.15), not the forward density kappa. Integrals are deterministic trapezoidal quadrature over jump_x; mass outside the grid is intentionally zero.

quantdata.dysanos.tangent_levy.pricing.density_call_prices(*, tau, log_strikes, jump_x, average_density, config=PricingConfig(integration_upper=160.0, integration_points=1281, strike_chunk_size=256))[source]#

Price normalized calls for an arbitrary finite-grid average density.

quantdata.dysanos.tangent_levy.pricing.average_density_from_forward(*, tau, forward_density)[source]#

Integrate forward kappa into maturity-average eta.

Parameters:
  • tau (ndarray) – Increasing maturity grid starting at zero, shape (T,).

  • forward_density (ndarray) – Array with trailing shape (T, X). Leading axes, such as paths, are retained.