Skip to content

labqc validation report

Result: PASS: 163 of 163 reference cases passed across 52 functions.

labqc version 1.4.0
Git commit 309f0f2 (src has uncommitted changes)
Python 3.13.14 (Windows AMD64)
numpy / scipy / pandas 2.5.4 / 1.18.1 / 3.1.1
Date (UTC) 2026-11-19T07:40:00+00:00

Each case compares a labqc result with a reference value within a stated tolerance. Reference values come from published worked examples, standard tables, the cited formula evaluated by hand, or the definition of a rule; never from labqc itself. Inputs, references and the working for every case are in validation/cases/. Generated by validation/run_validation.py; CI runs it on every push and fails on any failed case.

Source types: hand calculation from the cited formula (85), published example (27), rule definition (35), standard table (16).

comparison

Function Case Output Expected Got Tolerance Result Source
bland_altman bias bias 0.125 0.125 ± 1e-12 pass Bland & Altman, Lancet 1986 (hand calculation from the cited formula)
bland_altman upper limit of agreement upper 0.459734 0.459733725 ± 1e-6 pass Bland & Altman, Lancet 1986 (hand calculation from the cited formula)
bland_altman lower limit of agreement lower -0.209734 -0.209733725 ± 1e-6 pass Bland & Altman, Lancet 1986 (hand calculation from the cited formula)
deming equal error variances, slope slope 1 1 ± 1e-12 pass Deming regression formula; Linnet, Clin. Chem. 1990 (hand calculation from the cited formula)
deming equal error variances, intercept intercept 0 0 ± 1e-12 pass Deming regression formula (hand calculation from the cited formula)
deming exact line, error ratio 4 slope 2 2 ± 1e-12 pass Deming regression formula (hand calculation from the cited formula)
passing_bablok four points, slope slope 1.333333 1.333333333 ± 1e-6 pass Passing & Bablok, J. Clin. Chem. Clin. Biochem. 21 (1983) 709 (hand calculation from the cited formula)
passing_bablok four points, intercept intercept -0.333333 -0.3333333333 ± 1e-6 pass Passing & Bablok 1983 (hand calculation from the cited formula)

conformity

Function Case Output Expected Got Tolerance Result Source
decide simple, value 8.0 outcome pass pass exact pass ILAC G8:09/2019, guard-banded decision rules (rule definition)
decide simple, value 9.5 outcome pass pass exact pass ILAC G8:09/2019, guard-banded decision rules (rule definition)
decide simple, value 11.5 outcome fail fail exact pass ILAC G8:09/2019, guard-banded decision rules (rule definition)
decide guarded, value 8.0 outcome pass pass exact pass ILAC G8:09/2019, guard-banded decision rules (rule definition)
decide guarded, value 9.5 outcome no clear decision no clear decision exact pass ILAC G8:09/2019, guard-banded decision rules (rule definition)
decide guarded, value 11.5 outcome fail fail exact pass ILAC G8:09/2019, guard-banded decision rules (rule definition)
decide non-binary, value 8.0 outcome pass pass exact pass ILAC G8:09/2019, guard-banded decision rules (rule definition)
decide non-binary, value 9.5 outcome conditional pass conditional pass exact pass ILAC G8:09/2019, guard-banded decision rules (rule definition)
decide non-binary, value 11.5 outcome fail fail exact pass ILAC G8:09/2019, guard-banded decision rules (rule definition)
decide non-binary, value 10.4 outcome conditional fail conditional fail exact pass ILAC G8:09/2019, guard-banded decision rules (rule definition)
decide simple, value 10.4 outcome fail fail exact pass ILAC G8:09/2019, guard-banded decision rules (rule definition)
decide guarded, acceptance limit acceptance_upper 5.6 5.6 ± 1e-12 pass ILAC G8:09/2019, guard-banded decision rules (hand calculation from the cited formula)
decide probability carried with the decision probability 0.9452 0.9452007083 ± 0.0001 pass JCGM 106:2012 (conformity assessment), 7.2-7.3; standard normal table (standard table)
guard_band w = U w 2 2 ± 1e-12 pass ILAC G8:09/2019, guard-banded decision rules (hand calculation from the cited formula)
guard_band w = 1.5 U w 3 3 ± 1e-12 pass ILAC G8:09/2019, guard-banded decision rules (hand calculation from the cited formula)
probability_of_conformance one-sided, one u below the upper limit p 0.8413 0.8413447461 ± 0.0001 pass JCGM 106:2012 (conformity assessment), 7.2-7.3; standard normal table (standard table)
probability_of_conformance two-sided, two u from each limit p 0.9545 0.9544997361 ± 0.0001 pass JCGM 106:2012 (conformity assessment), 7.2-7.3; standard normal table (standard table)
probability_of_conformance on the limit p 0.5 0.5 ± 1e-12 pass JCGM 106:2012 (conformity assessment), 7.2-7.3 (hand calculation from the cited formula)
probability_of_conformance t-distribution, 4 dof p 0.975 0.9749886108 ± 0.0001 pass JCGM 106:2012 (conformity assessment), 7.2-7.3; JCGM 100:2008 Table G.2 (standard table)

control_charts

Function Case Output Expected Got Tolerance Result Source
cusum C+ at observation 29 c_plus_29 5.28 5.28 ± 0.005 pass Montgomery, Introduction to Statistical Quality Control, tabular CUSUM example (published example)
cusum first signal first_signal_observation 29 29 exact pass Montgomery, Introduction to Statistical Quality Control, tabular CUSUM example (published example)
ewma first EWMA value ewma_1 9.945 9.945 ± 1e-09 (rel) pass Montgomery, Introduction to Statistical Quality Control, EWMA example (published example)
ewma first UCL ucl_1 10.27 10.27 ± 0.005 pass Montgomery, Introduction to Statistical Quality Control, EWMA example (published example)
ewma steady-state UCL ucl_last 10.61886568 10.61886568 ± 1e-09 (rel) pass Montgomery, Introduction to Statistical Quality Control, EWMA control limits (hand calculation from the cited formula)
limits_from_data moving range SD sd 1.773049645 1.773049645 ± 1e-09 (rel) pass Montgomery, Introduction to Statistical Quality Control, individuals chart (d2 = 1.128 for n = 2) (hand calculation from the cited formula)
limits_from_data sample SD sd 1.58113883 1.58113883 ± 1e-09 (rel) pass sample standard deviation (n - 1) (hand calculation from the cited formula)
limits_from_data centre centre 11 11 ± 1e-09 (rel) pass mean of the baseline (hand calculation from the cited formula)
westgard 1_2s warning only rules_at_last [1_2s] [1_2s] exact pass Westgard et al., Clin. Chem. 27 (1981) 493; westgard.com 'Westgard Rules' (rule definition)
westgard 1_3s rules_at_last [1_2s, 1_3s] [1_2s, 1_3s] exact pass Westgard et al., Clin. Chem. 27 (1981) 493; westgard.com 'Westgard Rules' (rule definition)
westgard 2_2s same side rules_at_last [1_2s, 2_2s] [1_2s, 2_2s] exact pass Westgard et al., Clin. Chem. 27 (1981) 493; westgard.com 'Westgard Rules' (rule definition)
westgard 2_2s not on opposite sides rules_at_last [1_2s, R_4s] [1_2s, R_4s] exact pass Westgard et al., Clin. Chem. 27 (1981) 493; westgard.com 'Westgard Rules' (rule definition)
westgard R_4s rules_at_last [1_2s, R_4s] [1_2s, R_4s] exact pass Westgard et al., Clin. Chem. 27 (1981) 493; westgard.com 'Westgard Rules' (rule definition)
westgard 4_1s rules_at_last [4_1s] [4_1s] exact pass Westgard et al., Clin. Chem. 27 (1981) 493; westgard.com 'Westgard Rules' (rule definition)
westgard 10_x rules_at_last [10_x] [10_x] exact pass Westgard et al., Clin. Chem. 27 (1981) 493; westgard.com 'Westgard Rules' (rule definition)
westgard 9 on one side is not 10_x rules_at_last none none exact pass Westgard et al., Clin. Chem. 27 (1981) 493; westgard.com 'Westgard Rules' (rule definition)
westgard_levels 2_2s across two levels 2_2s_at_last True True exact pass Westgard et al., Clin. Chem. 27 (1981) 493; westgard.com 'Westgard Rules' (rule definition)
westgard_levels R_4s across two levels R_4s_at_last True True exact pass Westgard et al., Clin. Chem. 27 (1981) 493; westgard.com 'Westgard Rules' (rule definition)
westgard_levels 4_1s over two runs x two levels 4_1s_at_last True True exact pass Westgard et al., Clin. Chem. 27 (1981) 493; westgard.com 'Westgard Rules' (rule definition)
westgard_levels 10_x over five runs x two levels 10_x_at_last True True exact pass Westgard et al., Clin. Chem. 27 (1981) 493; westgard.com 'Westgard Rules' (rule definition)
westgard_levels 2of3_2s with three levels 2of3_2s_at_last True True exact pass Westgard et al., Clin. Chem. 27 (1981) 493; westgard.com 'Westgard Rules' (rule definition)
westgard_levels 3_1s with three levels 3_1s_at_last True True exact pass Westgard et al., Clin. Chem. 27 (1981) 493; westgard.com 'Westgard Rules' (rule definition)

emissions

Function Case Output Expected Got Tolerance Result Source
correct_emission CO 310 ppm at 12.8 % O2 mg_m3_ref 521.3110303 521.3110303 ± 1e-09 (rel) pass molar volume 22.414 L/mol at 273.15 K, 101.325 kPa; molar mass from IUPAC atomic weights; O2 correction as above (hand calculation from the cited formula)
correct_emission % of limit percent_of_limit 104.2622061 104.2622061 ± 1e-09 (rel) pass 100 x C / limit (hand calculation from the cited formula)
corrected_uncertainty u of 500 mg/m3 at 13 % O2 u_c 22.25761872 22.25761872 ± 1e-06 (rel) pass JCGM 100:2008 (GUM) 5.1.2 eq. (10) on the O2 correction (hand calculation from the cited formula)
mg_m3_to_ppm CO 125 mg/m3 ppm 100.0267762 100.0267762 ± 1e-09 (rel) pass molar volume 22.414 L/mol at 273.15 K, 101.325 kPa; molar mass from IUPAC atomic weights (hand calculation from the cited formula)
percent_of_limit 50 of 200 percent 25 25 ± 1e-09 (rel) pass 100 x C / limit (hand calculation from the cited formula)
ppm_to_mg_m3 CO 100 ppm mg_m3 124.9665388 124.9665388 ± 1e-09 (rel) pass molar volume 22.414 L/mol at 273.15 K, 101.325 kPa; molar mass from IUPAC atomic weights (hand calculation from the cited formula)
ppm_to_mg_m3 NO2 50 ppm mg_m3 102.6278219 102.6278219 ± 1e-09 (rel) pass molar volume 22.414 L/mol at 273.15 K, 101.325 kPa; molar mass from IUPAC atomic weights; NOx as NO2 (hand calculation from the cited formula)
to_reference_o2 500 at 13 % to 10 % c_ref 689.8734177 689.8734177 ± 1e-09 (rel) pass O2 reference correction (EN 303-5 practice): C (20.9 - O2_ref) / (20.9 - O2_meas), 20.9 % O2 in dry air (hand calculation from the cited formula)
to_temperature_pressure 150 degC, 100 kPa mg_m3_std 156.9675041 156.9675041 ± 1e-09 (rel) pass ideal gas law to 273.15 K, 101.325 kPa (hand calculation from the cited formula)
wet_to_dry 10 % water dry 100 100 ± 1e-09 (rel) pass dry basis: C_wet / (1 - h_w) (hand calculation from the cited formula)

equipment

Function Case Output Expected Got Tolerance Result Source
drift drift per year drift_per_year 0.02 0.02 ± 1e-12 pass least-squares line of error against time (hand calculation from the cited formula)
drift time to the tolerance t_reach_years 3.5 3.5 ± 1e-9 pass labqc interval rule (module docstring) (hand calculation from the cited formula)
drift suggestion suggestion shorten shorten exact pass labqc interval rule (module docstring) (hand calculation from the cited formula)

outliers

Function Case Output Expected Got Tolerance Result Source
cochran five duplicate pairs statistic 0.897507 0.8975069252 ± 1e-6 pass ISO 5725-2, 7.3 (Grubbs and Cochran tests) (hand calculation from the cited formula)
grubbs largest value statistic 1.697056 1.697056275 ± 1e-6 pass ISO 5725-2, 7.3 (Grubbs and Cochran tests) (hand calculation from the cited formula)
grubbs largest value, label label ok ok exact pass ISO 5725-2, 7.3 (Grubbs and Cochran tests) (hand calculation from the cited formula)
grubbs_critical n = 4, 5 % critical 1.481 1.48125 ± 0.0006 pass ISO 5725-2 Table 5 (Grubbs, one outlier) (standard table)
grubbs_critical n = 4, 1 % critical 1.496 1.49625 ± 0.0006 pass ISO 5725-2 Table 5 (Grubbs, one outlier) (standard table)
grubbs_critical n = 5, 5 % critical 1.715 1.715037312 ± 0.0006 pass ISO 5725-2 Table 5 (Grubbs, one outlier) (standard table)
grubbs_critical n = 5, 1 % critical 1.764 1.763678479 ± 0.0006 pass ISO 5725-2 Table 5 (Grubbs, one outlier) (standard table)
grubbs_critical n = 10, 5 % critical 2.29 2.289954084 ± 0.0006 pass ISO 5725-2 Table 5 (Grubbs, one outlier) (standard table)
grubbs_critical n = 10, 1 % critical 2.482 2.48208325 ± 0.0006 pass ISO 5725-2 Table 5 (Grubbs, one outlier) (standard table)
grubbs_two two largest statistic 0.028571 0.02857142857 ± 1e-6 pass ISO 5725-2, 7.3 (Grubbs and Cochran tests) (hand calculation from the cited formula)

proficiency

Function Case Output Expected Got Tolerance Result Source
classify z = 1.9 label satisfactory satisfactory exact pass ISO 13528:2022 9.4.2 and 9.7.2 (action and warning signals) (rule definition)
classify z = 2.0 label satisfactory satisfactory exact pass ISO 13528:2022 9.4.2 and 9.7.2 (action and warning signals) (rule definition)
classify z = -2.5 label questionable questionable exact pass ISO 13528:2022 9.4.2 and 9.7.2 (action and warning signals) (rule definition)
classify z = 3.0 label unsatisfactory unsatisfactory exact pass ISO 13528:2022 9.4.2 and 9.7.2 (action and warning signals) (rule definition)
classify z = -3.5 label unsatisfactory unsatisfactory exact pass ISO 13528:2022 9.4.2 and 9.7.2 (action and warning signals) (rule definition)
classify en = 0.9 label satisfactory satisfactory exact pass ISO 13528:2022 9.4.2 and 9.7.2 (action and warning signals) (rule definition)
classify en = 1.0 label satisfactory satisfactory exact pass ISO 13528:2022 9.4.2 and 9.7.2 (action and warning signals) (rule definition)
classify en = -1.2 label unsatisfactory unsatisfactory exact pass ISO 13528:2022 9.4.2 and 9.7.2 (action and warning signals) (rule definition)
en_number En en 0.6 0.6 ± 1e-09 (rel) pass ISO 13528:2022 9.7 (E_n) (hand calculation from the cited formula)
pt_history two |z| > 2 in a row two_beyond_2_rounds [4] [4] exact pass two successive questionable signals (2_2s idea applied to PT rounds) (rule definition)
pt_history nine on one side trend_9_rounds [13] [13] exact pass Nelson, J. Qual. Technol. 16 (1984) 237, rule 2 (rule definition)
z_score z z 2 2 ± 1e-09 (rel) pass ISO 13528:2022 9.4 (z = (x - x_pt) / sigma_pt) (hand calculation from the cited formula)
zeta_score zeta zeta 1.2 1.2 ± 1e-09 (rel) pass ISO 13528:2022 9.6 (zeta) (hand calculation from the cited formula)

topdown

Function Case Output Expected Got Tolerance Result Source
combine_topdown 3-4-5 u_c 5 5 ± 1e-12 pass Nordtest TR 537 (ed. 4, 2017), u(Rw) and u(bias) formulas (hand calculation from the cited formula)
combine_topdown 3-4-5, U with k = 2 U 10 10 ± 1e-12 pass Nordtest TR 537 (ed. 4, 2017), u(Rw) and u(bias) formulas (hand calculation from the cited formula)
s_r_duplicates duplicates, SD form s_r 1 1 ± 1e-12 pass Nordtest TR 537 (ed. 4, 2017), u(Rw) and u(bias) formulas; ISO 5725-2 pairs (hand calculation from the cited formula)
s_r_duplicates duplicates, range form s_r 1.182033 1.182033097 ± 1e-6 pass Nordtest TR 537 (ed. 4, 2017), u(Rw) and u(bias) formulas; d2 = 1.128 for pairs (hand calculation from the cited formula)
u_bias_crm three CRM results u_bias 0.214087 0.2140872096 ± 1e-6 pass Nordtest TR 537 (ed. 4, 2017), u(Rw) and u(bias) formulas (hand calculation from the cited formula)
u_bias_crm three CRM results, mean bias bias 0.2 0.2 ± 1e-9 pass Nordtest TR 537 (ed. 4, 2017), u(Rw) and u(bias) formulas (hand calculation from the cited formula)
u_bias_pt three PT rounds, RMS bias bias 0.331662 0.331662479 ± 1e-6 pass Nordtest TR 537 (ed. 4, 2017), u(Rw) and u(bias) formulas (hand calculation from the cited formula)
u_bias_pt three PT rounds, u(Cref) u_ref 0.2 0.2 ± 1e-12 pass Nordtest TR 537 (ed. 4, 2017), u(Rw) and u(bias) formulas (hand calculation from the cited formula)
u_bias_pt three PT rounds, u(bias) u_bias 0.387298 0.3872983346 ± 1e-6 pass Nordtest TR 537 (ed. 4, 2017), u(Rw) and u(bias) formulas (hand calculation from the cited formula)
u_bias_pt two rounds, relative u_bias 4.092676 4.092676386 ± 1e-6 pass Nordtest TR 537 (ed. 4, 2017), u(Rw) and u(bias) formulas (hand calculation from the cited formula)
u_rw control series u_rw 1.290994 1.290994449 ± 1e-6 pass Nordtest TR 537 (ed. 4, 2017), u(Rw) and u(bias) formulas (hand calculation from the cited formula)
u_rw control series, relative u_rw 51.63978 51.63977795 ± 1e-5 pass Nordtest TR 537 (ed. 4, 2017), u(Rw) and u(bias) formulas (hand calculation from the cited formula)
u_rw control series plus duplicates u_rw 1.632993 1.632993162 ± 1e-6 pass Nordtest TR 537 (ed. 4, 2017), u(Rw) and u(bias) formulas (hand calculation from the cited formula)

uncertainty

Function Case Output Expected Got Tolerance Result Source
combine root sum of squares u_c 5 5 ± 1e-09 (rel) pass JCGM 100:2008 (GUM) 5.1.2 eq. (10) (hand calculation from the cited formula)
combine expanded with k = 2 U 10 10 ± 1e-09 (rel) pass JCGM 100:2008 (GUM) 6.2.1 (hand calculation from the cited formula)
combine k from v_eff = 16 k 2.12 2.119905299 ± 0.005 pass JCGM 100:2008 (GUM) G.4.1 and Table G.2 (standard table)
combine fully correlated, r = +1 u_c 7 7 ± 1e-09 (rel) pass JCGM 100:2008 (GUM) 5.2.2 note 1 (hand calculation from the cited formula)
combine fully anti-correlated, r = -1 u_c 1 1 ± 1e-09 (rel) pass JCGM 100:2008 (GUM) 5.2.2 eq. (16) (hand calculation from the cited formula)
compare_with_monte_carlo endpoints within delta, low d_low 0.03 0.03 ± 1e-9 pass JCGM 101:2008 (GUM Supplement 1) 8.2 (hand calculation from the cited formula)
compare_with_monte_carlo endpoints within delta, high d_high 0.02 0.02 ± 1e-9 pass JCGM 101:2008 (GUM Supplement 1) 8.2 (hand calculation from the cited formula)
compare_with_monte_carlo endpoints within delta, tolerance delta 0.05 0.05 ± 1e-12 pass JCGM 101:2008 (GUM Supplement 1) 7.9.2 (hand calculation from the cited formula)
compare_with_monte_carlo endpoints within delta, verdict agrees True True exact pass JCGM 101:2008 (GUM Supplement 1) 8.2 (hand calculation from the cited formula)
compare_with_monte_carlo one endpoint outside delta, verdict agrees False False exact pass JCGM 101:2008 (GUM Supplement 1) 8.2 (hand calculation from the cited formula)
coverage_factor t, dof 4, p 0.95 k 2.78 2.776445105 ± 0.005 pass JCGM 100:2008 (GUM) Table G.2 (Student's t) (standard table)
coverage_factor t, dof 10, p 0.95 k 2.23 2.228138852 ± 0.005 pass JCGM 100:2008 (GUM) Table G.2 (Student's t) (standard table)
coverage_factor t, dof 16, p 0.95 k 2.12 2.119905299 ± 0.005 pass JCGM 100:2008 (GUM) Table G.2 (Student's t) (standard table)
coverage_factor t, dof inf, p 0.95 k 1.96 1.959963985 ± 0.005 pass JCGM 100:2008 (GUM) Table G.2 (Student's t) (standard table)
coverage_factor t, dof 16, p 0.99 k 2.92 2.920781622 ± 0.005 pass JCGM 100:2008 (GUM) Table G.2 (Student's t) (standard table)
monte_carlo additive model, normal inputs, u(y) u 2 1.999848556 ± 0.01 (rel) pass JCGM 101:2008 (GUM Supplement 1) 9.2.2 (published example)
monte_carlo additive model, normal inputs, high end high 3.92 3.931762253 ± 0.02 pass JCGM 101:2008 (GUM Supplement 1) 9.2.2 (published example)
monte_carlo additive model, normal inputs, low end low -3.92 -3.902102733 ± 0.02 pass JCGM 101:2008 (GUM Supplement 1) 9.2.2 (published example)
monte_carlo additive model, rectangular inputs, u(y) u 2 2.001066722 ± 0.01 (rel) pass JCGM 101:2008 (GUM Supplement 1) 9.2.3 (published example)
monte_carlo additive model, rectangular inputs, high end high 3.88 3.88137084 ± 0.02 pass JCGM 101:2008 (GUM Supplement 1) 9.2.3 (published example)
monte_carlo additive model, rectangular inputs, low end low -3.88 -3.877360435 ± 0.02 pass JCGM 101:2008 (GUM Supplement 1) 9.2.3 (published example)
monte_carlo_budget additive model as a budget, normal inputs, u(y) u 2 1.999848556 ± 0.01 (rel) pass JCGM 101:2008 (GUM Supplement 1) 9.2.2 (published example)
monte_carlo_budget additive model as a budget, normal inputs, high end high 3.92 3.931762253 ± 0.02 pass JCGM 101:2008 (GUM Supplement 1) 9.2.2 (published example)
monte_carlo_budget additive model as a budget, normal inputs, low end low -3.92 -3.902102733 ± 0.02 pass JCGM 101:2008 (GUM Supplement 1) 9.2.2 (published example)
monte_carlo_budget result value shifts the interval high 103.92 103.9317623 ± 0.02 pass JCGM 101:2008 (GUM Supplement 1) 9.2.2 (hand calculation from the cited formula)
numerical_tolerance u = 2.0, two digits delta 0.05 0.05 ± 1e-12 pass JCGM 101:2008 (GUM Supplement 1) 7.9.2 (hand calculation from the cited formula)
numerical_tolerance u = 0.0191, two digits delta 0.0005 0.0005 ± 1e-12 pass JCGM 101:2008 (GUM Supplement 1) 7.9.2 (hand calculation from the cited formula)
numerical_tolerance u = 0.0191, one digit delta 0.005 0.005 ± 1e-12 pass JCGM 101:2008 (GUM Supplement 1) 7.9.2 (hand calculation from the cited formula)
numerical_tolerance u = 0.0996 rounds up a decade delta 0.005 0.005 ± 1e-12 pass JCGM 101:2008 (GUM Supplement 1) 7.9.2 (hand calculation from the cited formula)
propagate y = a b u_c 0.6403124237 0.6403124237 ± 1e-06 (rel) pass JCGM 100:2008 (GUM) 5.1.2 eq. (10), 5.1.3 (hand calculation from the cited formula)
standard_uncertainty rectangular u 0.05773502692 0.05773502692 ± 1e-09 (rel) pass JCGM 100:2008 (GUM) 4.3.7 (hand calculation from the cited formula)
standard_uncertainty triangular u 0.2449489743 0.2449489743 ± 1e-09 (rel) pass JCGM 100:2008 (GUM) 4.3.9 (hand calculation from the cited formula)
standard_uncertainty normal, expanded with k = 2 u 0.1 0.1 ± 1e-09 (rel) pass JCGM 100:2008 (GUM) 4.3.3 (hand calculation from the cited formula)
standard_uncertainty u-shaped (arcsine) u 0.07071067812 0.07071067812 ± 1e-09 (rel) pass JCGM 101:2008 (GUM Supplement 1), arcsine distribution (hand calculation from the cited formula)
type_a three readings, u u 0.5773502692 0.5773502692 ± 1e-09 (rel) pass JCGM 100:2008 (GUM) 4.2.3 (hand calculation from the cited formula)
type_a three readings, dof dof 2 2 ± 0 pass JCGM 100:2008 (GUM) 4.2.3 / G.3.3 (hand calculation from the cited formula)
welch_satterthwaite u = 1 (4 dof) and u = 1 (inf) v_eff 16 16 ± 1e-09 (rel) pass JCGM 100:2008 (GUM) G.4.1 eq. (G.2b) (hand calculation from the cited formula)

validation

Function Case Output Expected Got Tolerance Result Source
intermediate_precision MS between ms_between 62 62 ± 1e-09 (rel) pass Miller & Miller, Statistics and Chemometrics for Analytical Chemistry, one-way ANOVA example (published example)
intermediate_precision MS within ms_within 3 3 ± 1e-09 (rel) pass Miller & Miller, Statistics and Chemometrics for Analytical Chemistry, one-way ANOVA example (published example)
intermediate_precision repeatability SD sd_repeatability 1.732050808 1.732050808 ± 1e-09 (rel) pass ISO 5725-2 7.4 (s_r^2 = MS_within) (hand calculation from the cited formula)
intermediate_precision between-group SD sd_between 4.434711565 4.434711565 ± 1e-09 (rel) pass ISO 5725-2 7.4 ((MS_between - MS_within) / n) (hand calculation from the cited formula)
inverse_prediction y0 = 2.9, x0 x0 0.72 0.7160037003 ± 0.005 pass Miller & Miller, Statistics and Chemometrics for Analytical Chemistry, calibration example (published example)
inverse_prediction y0 = 2.9, u_x0 u_x0 0.26 0.264569771 ± 0.005 pass Miller & Miller, Statistics and Chemometrics for Analytical Chemistry, calibration example (published example)
inverse_prediction y0 = 13.5, x0 x0 6.21 6.207215541 ± 0.005 pass Miller & Miller, Statistics and Chemometrics for Analytical Chemistry, calibration example (published example)
inverse_prediction y0 = 13.5, u_x0 u_x0 0.24 0.2397542227 ± 0.005 pass Miller & Miller, Statistics and Chemometrics for Analytical Chemistry, calibration example (published example)
inverse_prediction y0 = 23.0, x0 x0 11.13 11.12858464 ± 0.005 pass Miller & Miller, Statistics and Chemometrics for Analytical Chemistry, calibration example (published example)
inverse_prediction y0 = 23.0, u_x0 u_x0 0.26 0.2631932593 ± 0.005 pass Miller & Miller, Statistics and Chemometrics for Analytical Chemistry, calibration example (published example)
lack_of_fit F statistic f 1.5 1.5 ± 1e-09 (rel) pass Miller & Miller, Statistics and Chemometrics for Analytical Chemistry, lack-of-fit F-test (ANOVA of residuals) (hand calculation from the cited formula)
lack_of_fit dof lack of fit dof_lack_of_fit 1 1 ± 0 pass m - 2 levels (hand calculation from the cited formula)
lack_of_fit dof pure error dof_pure_error 3 3 ± 0 pass N - m (hand calculation from the cited formula)
linearity unweighted slope slope 0.0725 0.07254285714 ± 5e-05 pass Miller & Miller, Statistics and Chemometrics for Analytical Chemistry, weighted regression example (published example)
linearity unweighted intercept intercept 0.0133 0.01328571429 ± 5e-05 pass Miller & Miller, Statistics and Chemometrics for Analytical Chemistry, weighted regression example (published example)
linearity weighted (1/s^2) slope slope 0.0738 0.07375996624 ± 5e-05 pass Miller & Miller, Statistics and Chemometrics for Analytical Chemistry, weighted regression example (published example)
linearity weighted (1/s^2) intercept intercept 0.0091 0.009083907773 ± 5e-05 pass Miller & Miller, Statistics and Chemometrics for Analytical Chemistry, weighted regression example (published example)
linearity exact line, 1/x weights slope 2 2 ± 1e-09 (rel) pass Least squares (any weighting fits exact points) (hand calculation from the cited formula)
lod_loq LOD from blank SD lod 0.33 0.33 ± 1e-09 (rel) pass ICH Q2(R1) 6.3 (3.3 sigma / S) (hand calculation from the cited formula)
lod_loq LOQ from blank SD loq 1 1 ± 1e-09 (rel) pass ICH Q2(R1) 7.3 (10 sigma / S) (hand calculation from the cited formula)
precision mean mean 10.5 10.5 ± 1e-09 (rel) pass Eurachem guide, precision (hand calculation from the cited formula)
precision sd sd 1 1 ± 1e-09 (rel) pass Eurachem guide, precision (hand calculation from the cited formula)
precision rsd_percent rsd_percent 9.523809524 9.523809524 ± 1e-09 (rel) pass Eurachem guide, precision (hand calculation from the cited formula)
recovery spike recovery percent 95 95 ± 1e-09 (rel) pass Eurachem guide, recovery (hand calculation from the cited formula)
trueness t statistic t 0.14 0.1404109132 ± 0.005 pass Miller & Miller, Statistics and Chemometrics for Analytical Chemistry, comparison of a mean with a known value (published example)
trueness mean mean 50.06 50.06 ± 1e-09 (rel) pass Miller & Miller, Statistics and Chemometrics for Analytical Chemistry, comparison of a mean with a known value (published example)
trueness expanded uncertainty of the bias U_bias 0.943610089 0.943610089 ± 1e-09 (rel) pass ERM Application Note 1 (U_bias = 2 sqrt(u_m^2 + u_CRM^2)) (hand calculation from the cited formula)
trueness passes passed True True exact pass ERM Application Note 1 (|bias| <= U_bias) (hand calculation from the cited formula)

Not validated by reference cases

Function Reason
uncertainty.components_from_table input parsing; covered by unit tests
uncertainty.correlation_matrix input checking; correlated results validated via combine
emissions.register_gas configuration; conversions validated via ppm_to_mg_m3
report.* records and file output, no calculation; covered by unit tests
proficiency.robust_mean_sd no citable reference case yet: see TO_CHECK.md
outliers.grubbs_two_critical simulated critical values; compared with ISO 5725-2 in the unit tests and TO_CHECK.md
outliers.cochran_critical F-distribution formula; table comparison in TO_CHECK.md
control_charts.qc_overview groups results and reads westgard's last row; westgard and limits_from_data are validated, the grouping is covered by unit tests

Open questions about sources (clause numbers, editions, cases still to add) are listed in validation/TO_CHECK.md.

Sources to check

The open questions about sources are kept in validation/TO_CHECK.md.