Computes a robust consensus value and a robust standard deviation from the results of several laboratories, then scores each laboratory with the E_n statistic.
How to use
- Paste one laboratory per line:
Labno, u, value1, value2, ... (comma, semicolon, tab or space separated; dot as decimal mark). u is the laboratory's expanded uncertainty U(x_i). A header line such as Labno,u,data1 is optional.
- Enter the coverage factor K (default 2).
- Run. Results show x_pt (robust mean), s_pt (robust SD), U(x_pt), and E_n for each laboratory. A CSV is also produced.
At least 2 laboratories are required. If a laboratory has several values, its mean is used as x_i.
- Pairwise differences d between values of different laboratories; p = number of laboratories.
- H(x) = 2 · #{d ≤ x} / (p(p−1)); G(x_i) = ½ (H(x_i) + H(x_{i−1})).
- Q-method: q = 0.25 + 0.75·H(0); s_pt = G⁻¹(q) / (√2 · Φ⁻¹(0.625 + 0.375·H(0))).
- x_pt: Hampel estimator, the root of Σ ψ((x_i − x)/s_pt) = 0 closest to the median of the laboratory means (ψ with breakpoints 1.5, 3, 4.5).
- U(x_pt) = 1.25 · s_pt / √p · K.
- E_n = (x_i − x_pt) / √(U(x_i)² + U(x_pt)²).
FAQ
How do I read E_n? |E_n| ≤ 1 is commonly taken as satisfactory; |E_n| > 1 is flagged as a warning.
Why "undefined robust standard deviation"? Too many identical values across laboratories make the Q-method undefined.
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.