Numerical Validation Suite¶
The numerical validation suite in cases/numerical_validation/ independently audits the core mathematical engines of Risk Bridge.
What the Suite Audits¶
- Analytic Gradient Checks: Evaluates closed-form negative log-likelihood gradients against two-point finite-difference approximations across randomized parameter vectors \(\theta\).
- Constraint Jacobian Checks: Verifies that the \(K \times p\) analytic constraint Jacobian matrix \(J(\theta)\) matches finite-difference approximations within \(\le 10^{-6}\).
- Solver Ladder Trajectories: Audits convergence pathways across BFGS,
trust-constr, and SLSQP, logging objective values and iteration counts. - Parameter Recovery: Tests that synthetic data generated from known parameters \(\theta^*\) recovers the true parameters as sample size \(n \to \infty\).
Execution¶
Run the complete suite:
Expected Output¶
The runner generates validation tables under data/numerical_validation/ and reports passing status on all numerical tolerance gates.