Repository navigation
Releases
v0.16.0 — statistical engine corrections
Statistical engine corrections from an internal audit, plus the first GUI release with a data grid and the outlier module.
Some results change in this release. Read "Changes to results" before comparing with v0.15.x outputs.
Changes to results
UCL recommendation — now the ProUCL 5.2 decision flowcharts (Technical Guide, Appendix C, Figures C-1..C-5)
- Goodness of fit for the decision is run at the flowchart levels: normal at 1%, gamma at 5%, lognormal at 10% ("approximately" = one of the two tests passes).
- Order: normal → (n < 10: no recommendation) → gamma → lognormal → Student's t / KM (t). Before, gamma was tested first and lognormal was never tested.
- Lognormal branch added (H-UCL by n and sd of the logged data); nonparametric data now get Student's t (TG 2.5.2.4) instead of bootstrap-t or no recommendation.
- Recommendations are given only for 95% UCLs, as in ProUCL (User Guide); at other levels every UCL is still listed.
- Checked against live ProUCL 5.2 sheets: silver (n = 56) → Student's t 32.259308 (identical); silver without the outlier (n = 55) → H-UCL (same method; our H is exact, ProUCL interpolates Land's tables); TG Example 2-2 → adjusted gamma 74.27 (TG Table 2-6).
- Example: roughly symmetric data (Shapiro-Wilk p = 0.999) were recommended "gamma adjusted 12.1575"; now Student's t 11.9667.
- The
gofcolumn of theuclsummary now reports the decision branch: normal / gamma / lognormal / nonparametric / undetermined. - The branches with nondetects follow the flowcharts; confirmation on live ProUCL runs is in progress.
Adjusted gamma UCL
- Computed only at 90%, 95% and 99% confidence, the levels ProUCL supports (TG 2.4). At 97.5%, v0.15.x used the 95% table row (β 0.0395 > α) and returned the 95% value as the "adjusted" UCL.
- Beyond n = 40 the adjusted level β is interpolated in 1/n towards α, as ProUCL does: 0.0457143 at n = 56 (live ProUCL, identical). It is now computed for every n (labelled "use when n<50").
Lilliefors critical value on the ucl sheet: at 95% confidence it used the 10% level (1 − 0.95 rounding): TG Example 2-2, 0.158844 → 0.173584 (the value gof already printed). At 99% it used the 5% level.
Bootstrap: the generator is now the standard xoshiro256** (verified on the reference vector), so the streams can be reproduced from the printed seed by any implementation. All bootstrap UCLs change within seed noise; TG Example 2-2 at seed 381: standard 60.44, percentile 60.86, BCA 62.24, bootstrap-t 65.63, Hall 62.98.
New
- UCLs with nondetects: gamma UCLs on KM estimates (TG 4.6.2; Oahu: 1.246 approximate, 1.27 adjusted, as TG Table 4-4) and the KM H-UCL with the exact H.
- GUI: document model, data grid, outlier module (long-layout files without nondetects), Save / Save As. Known limits: nondetect columns cannot be designated yet, and saving a data document keeps 6 significant digits — both fixed in an upcoming release; use the CLI for production work.
Fixes
- A series that cannot be analysed (all values identical, more than 5000 detects) no longer stops
ucl,btvorgof: it gets a summary row with the reason and the batch goes on. - Shapiro-Wilk is performed up to n = 2000 as in ProUCL; larger series are judged by Lilliefors alone (
gofprinted "not normal" without testing above 5000). - KM bootstrap: resamples made only of nondetects are redrawn; before, they made every nondetect UCL of small series disappear.
gofreports "n/a" instead of "not normal"/"not gamma" when a test could not be run.
Documentation
- README: corrected the Dixon row of "Beyond ProUCL" and the GUI scope; note on decimal commas in the packed format.
Tests: 194 (was 153), all embedded data, all run on CI.