Verification report#
Every accuracy claim in this documentation rests on a check in the test suite. Each check compares a computed quantity with an exact solution, an independent method or a statistical expectation, against a tolerance whose reason is stated; a check passes when the measured value is at most the tolerance. This table is generated by running those tests for each build of the documentation; nothing in it is typed by hand.
21 of 21 checks pass; 1 more reported without a threshold, for ertkit 0.1.2.dev1 with Python 3.12.3 and numpy 2.5.4.
Check |
Measured |
Tolerance |
Result |
Why this tolerance |
|---|---|---|---|---|
max relative error of the J0 filter on the Lipschitz integral (a/r up to 2000) |
3.39e-09 |
1e-08 |
pass |
the layered-earth kernel is a sum of such terms; 1e-8 leaves two orders of magnitude for the 1e-6 gate on two-layer models |
max relative error of apparent resistivity over a half-space |
3.89e-15 |
1e-06 |
pass |
computed without subtracting the half-space, so this tests that the filter weights integrate a constant kernel; the design gate is 1e-6 |
max relative error in V, two-layer earths, contrast 1e-4 to 1e4, r/h 0.1 to 100 |
7.29e-08 |
1e-06 |
pass |
design gate of section 3.5: well below any measurement error |
max relative error in Schlumberger rho_a with MN/AB = 0.2 |
1.36e-07 |
1e-06 |
pass |
design gate of section 3.5; differencing the potentials must not amplify the filter error |
max relative error in Schlumberger rho_a with MN/AB = 0.02 |
5.21e-07 |
1e-06 |
pass |
design gate of section 3.5; differencing the potentials must not amplify the filter error |
two-layer limits: largest error in the deviation of rho_a from its limit, relative to that deviation (AB/2 = h/100, 1000 h and 10000 h) |
0.000315 |
0.001 |
pass |
the deviation itself must be right to 0.1%, not only small |
max relative difference between complex-step and central-difference derivatives of rho_a with respect to every resistivity and thickness |
7.33e-08 |
1e-06 |
pass |
central differences at their optimal step are accurate to about 1e-7; the complex-step derivative is exact to round-off |
three-layer design example: largest parameter error in standard deviations |
1.47 |
3 |
pass |
each log parameter should lie within 3 linearized standard deviations |
three-layer design example: Mahalanobis distance of the estimate from the truth |
3.66 |
18 |
pass |
the 99.7% quantile of chi-squared with 5 degrees of freedom |
weathered basement: largest parameter error in standard deviations |
1.53 |
3 |
pass |
each log parameter should lie within 3 linearized standard deviations |
weathered basement: Mahalanobis distance of the estimate from the truth |
4.66 |
18 |
pass |
the 99.7% quantile of chi-squared with 5 degrees of freedom |
honest uncertainty: |mean chi2 - (N - p)| |
0.57 |
0.643 |
pass |
three standard errors of the mean of a chi-squared variable with N - p degrees of freedom |
honest uncertainty: largest |coverage of 1-sd intervals - 0.683| over parameters |
0.021 |
0.0441 |
pass |
three binomial standard errors for 1000 draws |
honest uncertainty: |joint coverage of the 68.3% region - 0.683| |
0.011 |
0.0441 |
pass |
three binomial standard errors for 1000 draws |
Occam: |final chi2 - target| / target |
5.09e-10 |
0.01 |
pass |
mu is found by root finding on chi2(mu) = target (N_d, or 1.1 times the smallest misfit when N_d is out of reach), so the final misfit must match it closely |
Occam: N_d - chi2 after raising mu by 10% (must be negative) |
-0.328 |
0 |
pass |
mu is the largest regularization weight with chi2 = N_d, so a smoother model must fit worse than the target |
DOI: depth of investigation / detectable depth of the true model |
0.618 |
1.25 |
pass |
the data cannot see a 0.2-decade change below the detectable depth (chi2 change below 9), so a depth of investigation much deeper would claim resolution the data do not have |
DOI: detectable depth of the true model / depth of investigation |
1.62 |
4 |
pass |
a depth of investigation far shallower than the detectable depth would discard structure the data do resolve |
DOI: 1 - rescaled index of the second deepest layer |
0.0304 |
0.1 |
pass |
the deepest layers are controlled by the reference models (the bottom layer is 1 by construction, so the next one is checked) |
four-layer lateritic profile (KH): largest parameter error in standard deviations |
1.14 |
3 |
pass |
each log parameter should lie within 3 linearized standard deviations |
four-layer lateritic profile (KH): Mahalanobis distance of the estimate from the truth |
13.6 |
21.6 |
pass |
the 99.7% quantile of chi-squared with 7 degrees of freedom |
equivalence-affected four-layer model: lowest coverage of 1-sd intervals (reported only; 0.683 if the linearization held) |
0.543 |
none |
reported |
reported without a threshold (design 3.5, item 6): linearized intervals are not reliable under equivalence |
The checks follow the acceptance criteria in section 3.5 of the design document. The comparison with pyGIMLi and SimPEG (item 9) needs those packages and runs in a separate weekly workflow, so it is not in this table. To run the checks yourself:
uv run pytest -m verification --verification-report=verification.json