LibraryWorkspaceDataHub

© 2026 QCA · by Lime Fintech · About QCA · Market data from Massive

PrivacyTermsCookiesDisclaimer
HomeLibrary
DataHub
  1. Library
  2. Report

Direct Inversion for Chi-Square Sampling, the Squared Bessel Process, and Applications

Open repository
Oct 21, 2026
Computational Finance

Verdict: Partially Reproduced

OverviewExperiments

Executive Summary

Status
Partially Reproduced
Confidence
Medium

Executive Summary

  • Status: PARTIALLY REPRODUCED
  • Confidence: MEDIUM
  • Key Insight: The repository reproduces the main qualitative findings for experiments 2–5 in several places—especially exact-transition CIR pricing beating FTE on bias and showing strong efficiency—but the core numerical approximation experiment (exp_1) is not successfully reproduced at the paper’s advertised O(10−8)O(10^{-8})O(10−8) level across all regions, and some later experiments are scaled down or use surrogate settings relative to the paper.

Results Comparison

Experiment 1 — Offline construction and validation of the 2D Chebyshev inverse central chi-square sampler

MetricPaper / ExpectedReproducedDiffStatus
Target approximation accuracyO(10−8)O(10^{-8})O(10−8) over published intervalsRegion 1 often very accurate; Regions 2–3 have max abs err ≈0.56\approx 0.56≈0.56–0.63 on all intervalsMaterial failure in middle/tail regionsNot matched
Published truncation orders sufficient?Yes, approximately reproducibletruncation_check: all intervals marked INSUFFICIENTMaterialNot matched
Clenshaw vs direct summationNear machine precision1.42e-14 max discrepancyExcellentMatched
Derivative agreement wrt δ\deltaδExpected close FD agreement[0.1,0.2]: mean rel err 1.7%, max 5.1%; [0.001,0.002]: mean 7.1%, max 27.6%; [0.01,0.02]: catastrophicMixed to poorPartially matched
Coefficient generation/runtimeNot central, but feasible0.0234 sFineMatched

Experiment 2 — Accuracy and efficiency of central/non-central chi-square direct inversion sampling

Central benchmark

MetricPaper / ExpectedReproducedDiffStatus
Direct inversion faster than Ahrens-Dieter at δ=0.1\delta=0.1δ=0.1Yes0.169s vs 0.124sWrong rankingNot matched
Direct inversion faster at δ=0.01\delta=0.01δ=0.01Yes0.186s vs 0.136sWrong rankingNot matched
Direct inversion faster at δ=0.001\delta=0.001δ=0.001Yes0.201s vs 0.468sCorrect rankingMatched
Mean accuracy, direct methodShould match theory, bias dominated by MC noiseMeans close: 0.09987 vs 0.1; 0.009929 vs 0.01; 0.000962 vs 0.001SmallMatched
Variance accuracy, direct methodShould match theory0.198831 vs 0.2; 0.019547 vs 0.02; 0.001982 vs 0.002SmallMatched

Non-central moments

MetricPaper / ExpectedReproducedDiffStatus
Low/high λ\lambdaλ cases both stableYesHigh-λ\lambdaλ cases excellent; low-λ\lambdaλ, tiny-δ\deltaδ higher-order moments degradePartialPartially matched
Relative errors dominated by MC noiseExpected smallFor λ≈16\lambda\approx 16λ≈16: moment-10 errors ~0.77% to 4.47%; for low λ\lambdaλ: moment-10 errors 22%–46%Large high-order deterioration in hard casesPartially matched

Experiment 3 — Exact-transition Monte Carlo pricing of European and Asian CIR puts

European put

MetricPaperReproducedDiffStatus
Benchmark priceexact via CIR law0.0693146——
Direct inversion relative error3.12×10−33.12\times10^{-3}3.12×10−35.36e-4 for “Exact (ncx2)” MC estimatorBetterMatched / better
QE-M relative error3.85×10−33.85\times10^{-3}3.85×10−33.11e-3 at h=1/4Very closeMatched
FTE relative error6.14×10−36.14\times10^{-3}6.14×10−30.308 at h=1/4, worse at coarser hFar worseNot matched quantitatively
Direct inversion CPU0.42 s0.0057 sMuch faster, but with only 100k pathsNot directly comparable

Asian put, yearly M=10M=10M=10

MetricPaper / ExpectedReproducedDiffStatus
Exact/direct price around 0.0464~0.04640.046340Essentially exactMatched
QE-M close to exactYes0.04635–0.04706GoodMatched
FTE biased highYes0.0573–0.0741Clear high biasMatched

Asian put, quarterly M=40M=40M=40

MetricPaper / ExpectedReproducedDiffStatus
Exact/direct price around 0.0444~0.04440.044494Very closeMatched
QE-M close to exactYes0.04443–0.04457ExcellentMatched
FTE biased highYes0.04775–0.05487Clear high biasMatched

Experiment 4 — Multi-asset CIR basket option pricing

MetricPaperReproducedDiffStatus
Case 1 basket price~0.06900.04522LargeNot matched
Case 2 basket price~0.06920.03726LargeNot matched
Case 3 basket price~0.06760.05121LargeNot matched
Case 4 basket price~0.06790.04512LargeNot matched
Exact vs FTE qualitative orderingExact lower bias; FTE biasedFTE systematically above exactQualitatively consistentPartially matched
Exact vs QE-M closenessExpected exact-transition strongQE-M very close to exactGoodMatched qualitatively

Experiment 5 — CIR calibration with analytical sensitivities and LM

European calibration

MetricPaperReproducedDiffStatus
Mean $\delta^+ - \delta^*$4.99×10−44.99\times10^{-4}4.99×10−40.0009
Mean $b^+ - b^*$9.56×10−39.56\times10^{-3}9.56×10−30.0551
Mean $c^+ - c^*$1.92×10−21.92\times10^{-2}1.92×10−20.0582
Final residual≤10−4\le 10^{-4}≤10−40.0001 meanComparableMatched
Avg iterations8.24.63FasterDifferent but acceptable
Convergence rateHigh100%StrongMatched / better

Asian calibration

MetricPaperReproducedDiffStatus
Trials10020ReducedMaterial deviation
Mean $\delta^+ - \delta^*$9.99×10−49.99\times10^{-4}9.99×10−40.0179
Mean $b^+ - b^*$1.39×10−21.39\times10^{-2}1.39×10−20.0509
Mean $c^+ - c^*$1.23×10−21.23\times10^{-2}1.23×10−20.0852
Final residual3.99×10−43.99\times10^{-4}3.99×10−40.0030Worse by ~7.5xNot matched
Avg iterations14.418.4HigherNot matched
Convergence rateExpected stable100%GoodPartially matched

Summary

The repository does reproduce several of the paper’s qualitative conclusions, especially:

  • exact-transition CIR pricing is much less biased than FTE,
  • QE-M is much closer to exact than FTE,
  • exact monitoring-date simulation works well for Asian options,
  • LM calibration can be made to converge robustly on synthetic data.

However, the reproduction is not full because:

  1. Exp_1 fails on its primary target: the advertised 2D Chebyshev inverse approximation is not uniformly accurate in the critical middle/tail regions, and the published truncation orders are explicitly flagged as insufficient.
  2. Exp_2 only partially matches the claimed efficiency advantage over Ahrens-Dieter.
  3. Exp_4 basket prices are materially different from the paper’s reported values.
  4. Exp_5 calibration quality, especially Asian, is materially worse than paper benchmarks and uses fewer trials.

Statistical & Economic Significance

Statistical validity

  • For pricing experiments, standard errors are small enough to make the main comparisons meaningful:
    • European exact MC StdErr: ~1.08e-4
    • Asian exact StdErr: ~1.03e-4 to 1.08e-4
    • Basket StdErr: ~1.16e-4 to 1.19e-4
  • These standard errors are tiny relative to the large FTE biases, so the conclusion that FTE is materially biased upward is statistically clear.
  • QE-M deviations from exact are typically within a few standard errors for Asian options and modest for European options, so the conclusion that QE-M is close to exact is also statistically credible.

Economic significance

  • The pricing discrepancies are economically material:
    • European FTE: 30.8% relative error even at h=1/4.
    • Asian FTE: several cents of overpricing on option values around 4–5 cents, which is huge in relative terms.
  • The exact/direct-transition method has clear practical value in such low-dimension CIR problems.

Calibration significance

  • European calibration residuals are very low, suggesting the optimizer fits prices well, but parameter recovery for bbb and ccc is noticeably worse than in the paper. That indicates parameter non-identifiability / tradeoff may be present despite low residuals.
  • Asian calibration errors are materially larger; with only 20 trials and fewer paths, those results are not strong enough to claim close reproduction of the paper’s calibration quality.

Discrepancies

  • Core inverse approximation accuracy is poor in Regions 2 and 3
    Exp_1 shows max absolute errors around 0.56–0.63 in middle/tail regions across all δ\deltaδ-intervals, far from 10−810^{-8}10−8. This is the largest red flag and likely propagates into any implementation that truly depends on the offline approximant.

  • Published truncation orders were not reproduced All three intervals are marked INSUFFICIENT, with max truncation-check errors around 0.319–0.345. This directly contradicts one of the paper’s central numerical claims.

  • Efficiency comparison in exp_2 is only partly reproduced Direct inversion loses to Ahrens-Dieter for δ=0.1\delta=0.1δ=0.1 and 0.010.010.01, only winning at 0.0010.0010.001. This may reflect Python/Numba implementation effects, different vectorization, or a stronger Ahrens-Dieter implementation than in the original environment.

  • Higher-order non-central moments deteriorate in hard low-λ\lambdaλ, tiny-δ\deltaδ cases Moment errors blow up for orders 7–10 in the hardest settings. That may still be partly due to Monte Carlo variance of high-order powers, but the magnitude is larger than the paper’s idealized claim.

  • Basket experiment is not quantitatively comparable to the paper RESULTS.md explicitly notes that the parameter cases are “representative” and “Table 5 not reproduced verbatim.” That alone explains why prices 0.037–0.051 do not match paper prices around 0.068–0.069.

  • Asian calibration is downscaled Only 20 trials and 5000 paths were used, versus the intended 100 trials and much stronger accuracy targets. The file itself states this was reduced “for tractability,” so the mismatch is expected.


Methodology Issues

Important deviations

  1. Exp_1 appears numerically incomplete as a reproduction of the paper’s core method.

    • Clenshaw implementation is validated, but the approximation itself is not.
    • The failure is localized in transformed regions where the paper’s method is supposed to matter most.
  2. Exp_3 “Exact” pricing seems implemented via exact ncx2 transition law rather than explicitly through the approximated inversion sampler.

    • This is fine for validating exact-transition pricing logic, but it weakens the claim that the paper’s approximate inverse sampler itself is what drives the success.
  3. Exp_4 does not use the paper’s exact Table 5 cases.

    • Therefore the basket-price comparison cannot be judged as a strict reproduction.
  4. Exp_5 is scaled down materially for Asian calibration.

    • Fewer trials and fewer paths make comparisons with the paper weak.

Reliability

Stable / credible parts

  • Exp_3 pricing results are internally consistent and highly credible.
  • Exp_5 European calibration convergence is robust: 100% convergence over 100 trials.
  • Clenshaw recurrence validation in exp_1 is excellent.

Red flags

  • Exp_1’s tail/middle-region approximation errors are too large to support a claim of successful reproduction of the core numerical algorithm.
  • Exp_4 KS statistics are enormous (~0.5 to ~0.68, p=0), indicating the benchmark marginal distributions differ strongly from exact; this supports the qualitative bias story, but also highlights the need for careful interpretation.
  • Basket cases are not paper-identical.
  • Some results in RESULTS.md are duplicated/repeated, suggesting the repo’s reporting layer may be somewhat ad hoc.

Overall confidence in the qualitative conclusions is medium; confidence in a strict reproduction of the paper’s main numerical method is low.


Charts / Images

Experiment 1

Experiment 1 accuracy by region

Experiment 1 region 1 error vs delta

Experiment 2

Experiment 2 non-central moment errors

Experiment 3

Experiment 3 convergence

Experiment 4

Experiment 4 marginal check

Experiment 5

Experiment 5 European calibration convergence

Experiment 5 Asian calibration convergence


Verdict

Final Decision: PARTIALLY REPRODUCED

Why

  • Reproduced well: the CIR pricing experiments (especially exp_3) and the general message that exact-transition methods outperform FTE and are competitive with or better than QE-M.
  • Only partially reproduced: sampler efficiency and non-central moment accuracy (exp_2), due to mixed timing and harder-case degradation.
  • Not reproduced quantitatively: the core 2D Chebyshev inverse approximation accuracy/truncation claims (exp_1), the exact basket table values (exp_4), and the paper-level Asian calibration accuracy (exp_5).

If judged by the paper’s main numerical method, this is close to NOT REPRODUCED. If judged by the broader downstream CIR pricing conclusions, it is PARTIALLY REPRODUCED.

Experiments

Offline construction and validation of the two-dimensional Chebyshev inverse central chi-square sampler

Implement and validate the paper’s core numerical method: a three-region, two-dimensional Chebyshev approximation of the inverse central chi-square CDF F_delta^{-1}(u), where both the degrees of freedom delta and transformed probability variable are approximation variables. This experiment is an independent numerical analysis task focused on coefficient generation, series evaluation, approximation accuracy, derivative construction with respect to delta, and reproduction of published approximation orders and coefficient tables.

Accuracy and efficiency of central and non-central chi-square direct inversion sampling

Evaluate the online sampling performance and distributional accuracy of the direct inversion method for central and non-central chi-square random variables, with emphasis on very small degrees of freedom delta and the piecewise algorithm for non-centrality lambda above and below 10. This experiment independently validates the sampler itself without involving CIR pricing or calibration.

Exact-transition Monte Carlo pricing of European and Asian CIR put options using direct inversion versus discretization schemes

Test the practical impact of the direct inversion sampler on CIR option pricing by comparing exact-transition Monte Carlo based on squared-Bessel/non-central-chi-square simulation against standard time-discretization methods: Full Truncation Euler and QE-M. This experiment covers both a path-independent European put and a path-dependent Asian put under the same CIR parameter set, using exact monitoring-date transitions for the direct inversion method.

Multi-asset CIR basket option pricing with direct inversion and common-random-number coupling

Evaluate direct inversion for pricing a basket put on multiple CIR-type assets under the exact-transition framework, reproducing the paper’s five-dimensional basket experiment and testing the coupling strategy that reuses central chi-square randomness across assets with the same delta. This is an independent multi-asset pricing experiment focused on terminal-time simulation and variance-efficient coupling.

CIR calibration to synthetic option prices using analytical sensitivities and Levenberg-Marquardt

Calibrate CIR model parameters to synthetic option prices generated by the CIR model itself, using the direct inversion framework and analytical sensitivities derived from the inverse sampler and transition-density score functions. This experiment independently tests the usefulness of analytical derivatives for robust and efficient Levenberg-Marquardt calibration on both European put and Asian option datasets.

Original paperRun QCA on your paper