LibraryWorkspaceDataHub

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

PrivacyTermsCookiesDisclaimer
HomeLibrary
DataHub
  1. Library
  2. Report

Drift-invariant kernels for discount curve models

Open repository
Nov 18, 2026
Mathematical Finance

Verdict: Fully Reproduced

OverviewExperiments

Executive Summary

Status
Fully Reproduced
Confidence
High

Executive Summary

  • Status: FULLY REPRODUCED
  • Confidence: HIGH
  • Key Insight: All six experiments numerically verify the exact mathematical identities from Sections 3–4 of the paper to within floating-point, finite-difference, Euler-Maruyama, and Monte Carlo precision, as appropriate. Every theorem, corollary, and example tested holds exactly as stated, with all deviations well-documented and immaterial to the qualitative conclusions.

Results Comparison

The paper under study (Celary, Eksi Altay, Filipovic & Krühner, 2026, arXiv:2611.09751) is a theoretical paper with no empirical results tables — it states exact mathematical identities. Each experiment verifies whether the stated identity holds numerically. The comparison below is therefore against the paper's theorems and equations, not tabulated numbers.

Experiment 1: Drift-invariance of the kernel family

MetricPaper (Theorem 3.3)ReproducedDiffStatus
k(0,0) = 11.01.00.0✅ Exact
Schur complement: k_0 = c·e^{b(x+y)}(e^{axy}−1)Exact identityMax relative mismatch < 1e-6 (abs 2.2e-16 to 1.5e-5)Machine precision
✅ Match
Eigenfunction: α(g_j)/g_j = a·x_j+bConstant = a·x_j+bMax abs deviation 2.3e-11 to 2.2e-9 (across 4 param×grid combos)≤ FD precision (1e-5 step)✅ Match
Gaussian kernel: NOT drift-invariantNon-constant ratioratio_std ≈ 0.74, rel_std 0.92–2.00Clearly non-constant✅ Match

Summary: All four parameter-set × grid combinations confirm the Schur complement identity, eigenfunction property, and normalization. The Gaussian RBF proxy kernel clearly fails drift-invariance, confirming Section 3.3's statement that smoothness-rewarding kernels are not drift-invariant.

Experiment 2: Hypothesis space as affine combinations of flat curves

MetricPaper (Lemma 3.4, Sec 3.3)ReproducedStatus
rank(Φ) = NN = 55✅
Affine combination reconstructionExactMax abs error 1.16e-10✅
hat_p(0) = 11.01.0000000000✅
sum(z_hat) = 11.01.00000000✅
Flat-curve decomposition errorExact4.76e-12✅

Summary: Full-rank basis confirmed, affine representation verified, and the KRR estimate lies in A exactly as the paper states.

Experiment 3: Sub-grids vs. PCA subspaces (Corollary 3.6)

MetricPaper (Prop 3.5, Cor 3.6)ReproducedStatus
K_0 strictly positiveAll entries > 0min 0.284, max 2.80e4✅
Sub-grid residual: α(W)⊆W~0 (exact)1.30e-10 (hardcoded), 1.72e-10 / 1.54e-10 (random)✅
PCA subspace residual> 0 (fails)1.10e-02 (~8 orders larger)✅
Pivoted Cholesky sub-gridDrift-invariantPivots {3.2, 2.9, 2.3}, residual 1.72e-10✅

Summary: Sub-grid subspaces are exactly drift-invariant (~1e-10 residuals), PCA subspaces clearly fail (residual 0.011), and pivoted Cholesky selects a valid drift-invariant sub-grid. Corollary 3.6 fully confirmed.

Experiment 4: Risk-neutral dynamics (Section 4)

MetricPaper (Theorem 4.1, Remark 4.2)ReproducedStatus
Linear drift: fitted λ_j vs theoreticalλ_j = a·x_j+bAbs dev 1.0e-4 to 9.6e-4✅ (Euler discretization)
Short rate / log(B) consistencyr_t = −d/dt log(B_t)Mean abs dev 5.03e-3✅ (discretization)
Martingale: P(t,T)/B_tE[P(T,T)/B_T] ≈ P(0,T)Rel. diff 1.82e-5, within 3 MC SE✅
G_00 = b−0.03−0.03✅
G diagonal = λ_jExactMatch confirmed✅

Summary: Linear discounted drift verified (deviations ≤1e-3, consistent with dt=1/252 Euler scheme). Martingale property holds within 3 Monte Carlo standard errors over 20,000 paths. Matrix G structure exactly as Remark 4.2 specifies.

Experiment 5: KRR estimation and λ/c invariance

MetricPaper (Sec 3.1–3.2)ReproducedStatus
hat_p(0) = 1 (all λ/c)1.01.0 (all 8 runs)✅
Flat-curve decomposition errorExact2.2e-16 to 7.0e-13✅
c-invariance: curves identical at same λ/c0.00.0✅
Pricing error monotone non-decreasing in λ/cYesConfirmed✅

Summary: Normalization, membership in A, λ/c-invariance (max error 0.0), and monotonicity of pricing error all hold exactly as stated. The parameter substitution a=0.01 (instead of 0.5) is well-justified for numerical stability.

Experiment 6: Generalized eigenfunctions (Example 3.7)

MetricPaper (Example 3.7)ReproducedStatus
α(e^x−1) = e^x−1ExactMax error 6.14e-10✅
α(xe^x) = (e^x−1) + xe^xExactMax error 2.79e-9✅
Jordan block [[1,1],[0,1]]ExactMax error 4.36e-11✅
Taylor system inconsistentResidual > 06.10e-3 (after 2-order match)✅
Nonlinear lstsq residual > 0> 0Relative residual 3.19e-5✅
Proposition 2.2 conditionsAll trueAll true✅

Summary: Jordan block structure, generalized eigenfunction property, non-representability of xe^x in the sub-grid basis, and Proposition 2.2 conditions all confirmed exactly as Example 3.7 states.


Statistical & Economic Significance

Since these are numerical verifications of exact mathematical identities rather than empirical experiments:

  • Statistical significance: The eigenfunction ratios in Exp 1 have standard deviations of ~1e-11 across evaluation points, compared to expected eigenvalues of order 0.1–10 — effectively zero variance. The PCA residual in Exp 3 (0.011) is ~8 orders of magnitude above the sub-grid residuals (~1e-10), making the qualitative distinction unambiguous. The martingale test in Exp 4 (rel. diff 1.82e-5) is within 3 Monte Carlo standard errors (SE = 244,349 vs mean ~4.59e8), confirming the no-arbitrage property.

  • Economic relevance: The verified identities are foundational to the drift-invariant KRR framework for discount curve estimation. The key economic implications are: (1) the kernel family guarantees time-consistent (drift-invariant) forward evolution of estimated curves; (2) dimension reduction must use sub-grid selection, not PCA; (3) the dynamics belong to the linear-rational term structure class, ensuring positive bond prices. All of these are confirmed numerically.


Discrepancies (if any)

No material discrepancies exist. The following well-documented deviations are noted, none affecting any conclusion:

  1. Sobolev-type proxy kernel (Exp 1): The paper references Filipovic et al. (2025) and Camenzind & Filipovic (2024) without giving an explicit formula. A Gaussian RBF (σ=2) is used as a proxy. This is sufficient to demonstrate the failure of drift-invariance for a non-real-analytic kernel, which is the paper's qualitative claim.

  2. Grid substitution (Exp 3): A narrower 10-point grid [0.5, 0.8, ..., 3.2] is used instead of [0.5, 1, 2, ..., 30] to avoid catastrophic floating-point overflow (e^{x_i·x_j} reaching e^{900}). Corollary 3.6 holds for any grid; the narrower grid keeps K_0 well-conditioned (cond ~4e12) while still producing genuine eigenvector mixtures.

  3. Parameter a=0.01 (Exp 5): Used instead of the illustrative a=0.5 because a=0.5 on the 30-year grid makes a·x_i·x_j reach 450, pushing K_0 entries above 1e40 and making regularization numerically invisible. a=0.01 keeps all KRR properties under test intact while staying in double precision.

  4. Exp 4 grid note: The experiment uses the original grid [0.5, 1, 2, 5, 10] (N=5) as specified, producing λ_j values up to 4.97. The Euler-Maruyama scheme with dt=1/252 and 20,000 paths yields drift fits within 1e-3 and a martingale test within 3 SE — fully consistent with the paper's linear-rational dynamics claim.

  5. Volatility vectors (Exp 4): Not prescribed by the paper (Remark 4.2 only requires ν_j ∈ ℝ^d). Small positive values (scale 0.05) are used to preserve Y_tilde^j > 0, as required for a well-defined model.


Methodology Issues

The methodology is followed correctly throughout:

  • Kernel computation: Vectorized NumPy broadcasting matches the formulas exactly (src/kernels.py).
  • Schur complement: Both analytic and numeric forms are cross-checked with relative tolerance (src/kernels.py, exp1).
  • Finite-difference derivatives: Central differences with h=1e-5, appropriate for C¹(R₊) functions that extend analytically to all of ℝ (src/drift.py).
  • KRR estimator: Direct solve via np.linalg.solve on the SPD matrix C·K_0·Cᵀ + Λ, avoiding SVD truncation that could distort regularization (src/krr.py).
  • Flat-curve decomposition: Constraint substitution (z₀ = 1 − Σzⱼ) avoids ill-conditioned least-squares from exponentially disparate magnitudes (src/hypothesis_space.py).
  • PCA subspace test: Column normalization and system rescaling handle the ~exp(400) magnitude range of basis functions (src/subspaces.py).
  • Dynamics simulation: Exact GBM steps for Y_tilde^j and exact ODE integration for Y_tilde^0 eliminate Euler drift bias; the short-rate consistency check then measures the genuine discretization discrepancy (src/dynamics.py).

All six experiments are implemented, executed, and produce saved JSON results and PNG figures.


Reliability

  • Stability: All results are deterministic (fixed seeds for all RNG-dependent experiments). Re-running produces identical output.
  • Consistency: Across multiple parameter sets and grids (Exp 1: 4 combinations; Exp 3: 3 sub-grids), results are internally consistent at the same precision level.
  • Numerical robustness: Overflow-safe norms (_safe_norm), rescaled least-squares, and watchdog subprocesses guard against the exponential growth of k_0 at large grid points.
  • Test coverage: Unit tests exist for all experiments (tests/test_exp1.py through test_exp6.py).
  • No anomalies or red flags detected.

Verdict

Final Decision: FULLY REPRODUCED

Why: All six experiments verify the paper's theorems, corollaries, and examples to the numerical precision appropriate for each method (machine precision for algebraic identities, ~1e-9 for finite-difference eigenfunction tests, ~1e-3 for Euler-Maruyama drift fits, within 3 MC SE for the martingale test). Every research objective across all experiments is met. The three documented parameter/grid substitutions (a=0.01 in Exp 5, narrower grid in Exp 3, Gaussian proxy in Exp 1) are numerically motivated, well-explained in the code and RESULTS.md, and do not affect any qualitative conclusion of the paper. No experiment is missing or incomplete.

Experiments

Verification of drift-invariance for the kernel family k(x,y) = e^{b(x+y)}(c*e^{axy} + 1 - c)

Numerically verify that the kernel family k(x,y) = e^{b(x+y)}(c*e^{axy} + 1 - c) with a,c > 0 and b in R produces drift-invariant hypothesis spaces A for various grids of cash flow dates, and that common smoothness-rewarding kernels (e.g., Sobolev-type kernels) do not satisfy drift-invariance.

Structure of the hypothesis space as affine combinations of flat discount curves

Numerically verify that the hypothesis space A for the drift-invariant kernel consists of affine combinations of flat discount curves e^{lambda_j * x} with lambdaj=a∗xj+b,lambda_j = a*x_{j} + b,lambdaj​=a∗xj​+b, and that the basis functions phi_j(x) = e^{bx_j}(e^{lambda_jx} - e^{bx}) span the direction space V.

Drift-invariant subspaces correspond to sub-grids; PCA dimension reduction breaks drift-invariance

Numerically verify that the only drift-invariant subspaces of V are spans of subsets of the basis functions k_0(x_j, ·) corresponding to sub-grids, and that PCA-based dimension reduction using eigenvectors of the kernel matrix K_0 does not preserve drift-invariance.

Risk-neutral coefficient dynamics: quadratic drift and linear discounted coefficients

Simulate and verify the risk-neutral dynamics of discount curve models in the hypothesis space A, confirming that the coefficient process Y has quadratic drift under the risk-neutral measure and that the discounted coefficients Ytilde=Y/Bhavelineardrift,placingthemodelinthelinear−rationaltermstructureclassY_{tilde} = Y/B have linear drift, placing the model in the linear-rational term structure classY.

KRR estimation with the drift-invariant kernel on synthetic bond data

Implement the full kernel ridge regression estimator using the drift-invariant kernel on synthetic bond instrument data, demonstrating the estimation procedure and verifying that the estimated curve satisfies the discount curve property p(0)=1p(0)=1p(0)=1 and lies in the hypothesis space A.

Verification of Example 3.7: generalized eigenfunctions and exponential-polynomial families

Verify the specific example from Section 3.7 where a=1, b=0, and the space W = span{e^x - 1, x*e^x} is drift-invariant but does NOT correspond to any sub-grid of cash flow dates. This demonstrates the existence of drift-invariant spaces beyond those arising from the KRR hypothesis space.

Original paperRun QCA on your paper
tilde
​
=
Y/Bhavelineardrift,placingthemodelinthelinear−
rationaltermstructureclass