Single-Bucket Pricing under Equal Scaled Layer Widths (SLW): Closed-Form Spectral Method
Implement and test the equal-SLW spectral pricing method for barrier and no-touch options on a single time bucket. The method computes the eigen-decomposition of a fixed (N-1)×(N-1) matrix B of hitting probabilities between neighboring interfaces, yielding closed-form eigenvalues and eigenfunctions. The killed Green's function is assembled from the eigen-expansion and used to price double no-touch, knock-out Call, and knock-out Put options.
Single-Bucket Pricing under General Scaled Layer Widths: Eigenvalue Counting and Bisection
Implement and test the general-SLW spectral method for barrier and no-touch options on a single time bucket. Unlike the equal-SLW case, the interface matrix depends nonlinearly on the spectral parameter. Eigenvalues are located exactly by a counting formula (Theorem 9, Wittrick-Williams principle) using bisection, and eigenfunctions are propagated by transfer matrices.
Laplace-Transform Pricing Method via Talbot Contour Inversion
Implement the Laplace-transform method for pricing barrier and no-touch options on a single time bucket. The method solves the symmetric tridiagonal system Eq. (27) at nodes of an optimized Talbot contour, integrates the layer solutions against the payoff in closed form, and sums the contour quadrature. This method has approximately constant cost across maturities.
Tiled Local Volatility: Multi-Bucket Pricing with Eigenbasis Re-expansion
Implement and test the multi-bucket extension to volatility that is piecewise constant in both price and time (tiled local volatility). Consecutive time buckets are connected by a transfer matrix that re-expands the solution from the eigenbasis of one bucket into that of the next. The method covers terminal payoffs (Calls, Puts, double no-touch) and running rewards (accruals, corridor variance).
Law of the Corridor Accrual: Occupation-Time Distribution via Layer-Dependent Killing
Implement and test the computation of the full law of the corridor accrual fraction alpha = A_T/T on a single time bucket. Layer-dependent killing rates preserve the tridiagonal structure, yielding transforms of the occupation-time distribution. Time inversion (Talbot) followed by Fourier inversion in the accrual variable recovers the subprobability measure, which prices nonlinear accrual payoffs (digital, capped, accrual Call). Endpoint singularities are removed to accelerate convergence.
Greeks and Layer Vegas: Spectral Sensitivities via Complex-Step Differentiation
Implement and test the computation of Greeks (delta, gamma, theta) and layer vegas for barrier and no-touch options on a single time bucket. Delta, gamma, and theta follow from the eigen-series in closed form. Layer vegas follow from a Hellmann-Feynman formula for eigenvalues and term-by-term differentiation, evaluated by complex-step differentiation.
Calibration of Layer Volatilities to Vanilla Quotes
Implement and test the calibration of N layer volatilities to N synthetic vanilla quotes using Newton's method with the spectral vega Jacobian. The calibration demonstrates that the model reprices its calibration instruments to rounding error using the same kernel for prices and derivatives.
Crank-Nicolson FD Benchmark: Fitted and Naive Schemes for Barrier Options
Implement the Crank-Nicolson finite-difference reference schemes for barrier option pricing under layered local volatility. Two schemes are tested: the 'fitted' scheme with a node on every volatility interface using the harmonic mean of varsigma^2 weighted by cell widths, and the 'naive' uniform-grid scheme that samples varsigma at the nodes. Both are compared against the spectral reference values.