Computes a robust standard deviation (Q method) and a robust mean (Hampel estimator) from laboratory results, e.g. for proficiency testing. Outliers have little influence on both values.
How to use
- Enter one laboratory per line.
- Separate the values of a laboratory with spaces, commas, semicolons or tabs (dot as decimal separator).
- At least 2 laboratories are required. Blank lines and empty/
NaN cells are ignored.
- Run the tool to get the Robust Mean and Robust Standard Deviation.
- Pairwise absolute differences between values of different laboratories;
p = number of laboratories.
H1(x) = 2·#{differences ≤ x} / (p(p−1)), and G1 is the average of H1 at consecutive distinct differences.
q = 0.25 + 0.75·H1(0), s* = G1⁻¹(q) / (√2 · Φ⁻¹(0.625 + 0.375·H1(0))).
- Hampel estimator: nodes
mean_i ± 1.5, 3, 4.5·s*; solve Σ ψ((mean_i − x)/s*) = 0 by linear interpolation, and take the solution nearest to the median of the laboratory means. ψ is the Hampel three-part redescending function (1.5, 3, 4.5).
FAQ
Can laboratories have different numbers of values? Yes.
The result says robust SD is 0. Most results are identical; the mean falls back to the laboratory mean nearest to the median.
Why a "Too many identical values" error? The Q method needs 0.625 + 0.375·H1(0) ≤ 1; too many duplicated values between laboratories break this.
Credit and license. Original method and script by Mughni Yumashar (mughnimail@gmail.com). Non-commercial use requires credit to the author; commercial use requires the author's consent.