Skip to content

7.7 Ensuring the validity of results

In one sentence

Check your results all the time, in a planned way, both inside the lab and against other labs, and act as soon as the checks say a result may be wrong.

What an assessor looks for

  • A monitoring plan for each method: which checks you run, how often, and what counts as a pass. Typical internal checks are control samples, certified or in-house reference materials, blanks, duplicates, retests of retained samples, intermediate checks on equipment, and comparing results for related properties of the same sample.
  • External checks: a plan for proficiency testing (PT) or interlaboratory comparisons that covers your whole scope over the accreditation cycle. Your accreditation body will have a PT policy that sets the minimum; read it.
  • Evidence the data is used, not just stored. Control charts that are plotted before results go out, reviewed for trends, and signed or otherwise recorded as reviewed.
  • Action when a check fails. Results held back, the cause found, the effect on reported results assessed, and a nonconformity raised where needed (see 7.10).
  • Follow-up of every questionable or unsatisfactory PT result, with a root cause, not only "random error".

How to do it in a small lab

  1. Choose internal checks per method. A sensible starting point for a routine test: one control sample in every batch, a duplicate on one sample in ten, a blank where it applies, and a certified reference material a few times a year to check bias.
  2. Make a control sample. Take a homogeneous batch of a real sample type, split it into portions and store them so they do not change (airtight, cool, dark, as the property needs). Check stability by testing it over time.
  3. Set limits from your own data. Test the control sample about 20 times over several weeks, with different analysts and days, so the spread includes normal day-to-day variation. The mean is the centre line; ±2 SD are warning limits and ±3 SD are action limits. Do not use a manufacturer's specification or a method's precision figure as your limits.
  4. Write the rules down. In the method SOP, say which control-chart rules mean "warning" and which mean "stop and investigate". Westgard rules are a common set (see the table below).
  5. Plot before you release. The analyst plots the control result before the batch results leave the lab. A rejected run means the batch is held.
  6. Review the chart regularly. Once a month, look for slow drifts and shifts that single points do not show. Record the review.
  7. Recalculate limits on purpose, not by habit. Do it once a year or after a known change (new control batch, new instrument), and record why. Recalculating every month lets a drift slowly become the new normal.
  8. Plan PT. List every method in scope, find a PT scheme for each, and set a frequency based on risk: more often for high-volume or high-consequence tests, at least once per accreditation cycle for every method. Where no scheme exists, arrange a comparison with another lab.
  9. Track PT scores over time. Treat |z| between 2 and 3 as a warning to investigate and |z| of 3 or more as a nonconformity. Several z-scores of the same sign, even small ones, point to a bias worth a look.
Rule Meaning Usual action
12s One result beyond ±2 SD Warning: check the other rules
13s One result beyond ±3 SD Reject: likely random error or a gross mistake
22s Two results in a row beyond 2 SD on the same side Reject: systematic error
R4s One result above +2 SD and the next below −2 SD Reject: random error
41s Four results in a row beyond 1 SD on the same side Reject: systematic shift
10x Ten results in a row on the same side of the centre Reject: drift or shift

Worked example

The made-up solid biofuel lab from 7.6 keeps a control sample of wood pellets for its moisture test. It ran the control sample 20 times over four weeks to set limits:

Moisture, %
Centre line (mean) 8.19
Standard deviation 0.10
Warning limits (±2 SD) 7.98 to 8.40
Action limits (±3 SD) 7.88 to 8.50

The next 13 runs:

Run Result, % z Rules broken Status
1 8.15 −0.39 – accept
2 8.27 0.76 – accept
3 8.09 −0.97 – accept
4 8.24 0.47 – accept
5 8.31 1.14 – accept
6 8.33 1.33 – accept
7 8.32 1.23 – accept
8 8.36 1.62 41s reject
9 8.18 −0.11 – accept
10 8.22 0.28 – accept
11 8.12 −0.68 – accept
12 8.42 2.19 12s warning
13 8.20 0.09 – accept

Run 8. No single result was outside the warning limits, so a quick look at the chart would miss it. But runs 5 to 8 were all more than 1 SD above the centre line: a systematic shift. The lab held the batch and investigated:

  • A check with a calibrated thermometer showed the oven shelf used for the samples was at 108 °C instead of 105 °C. At the higher temperature some volatile compounds leave the pellets with the water, so results read high.
  • The oven was adjusted and checked again; run 9 was back near the centre.
  • Effect on results already reported. The shift was about +0.15 %, smaller than the expanded uncertainty of 0.25 %. The lab retested the retained portions from the batches of runs 5 to 8. None of the results changed a pass/fail statement, so no customer needed a corrected report. The lab recorded all of this as a nonconformity (7.10) and added a monthly oven temperature check to its equipment plan (6.4).

Run 12. One result just above +2 SD with no other rule broken: a warning. The analyst checked the other rules, released the batch and noted it on the chart. One warning in about 20 runs is what you expect by chance.

PT round. In the same quarter the lab took part in a PT round for moisture in pellets. Its result was 7.95 %, the assigned value 7.80 %, and the standard deviation for proficiency assessment 0.20 %:

\[ z = \frac{7.95 - 7.80}{0.20} = 0.75 \]

That is satisfactory (|z| ≤ 2). The lab adds it to its PT history, which also feeds the bias term in its uncertainty budget.

The same checks in labqc

from labqc.control_charts import limits_from_data, westgard
from labqc.proficiency import z_score, classify

baseline = [8.21, 8.05, 8.33, 8.17, 8.28, 8.02, 8.24, 8.11, 8.36, 8.19,
            8.30, 8.08, 8.20, 8.13, 8.27, 8.04, 8.25, 8.15, 8.34, 8.10]
limits = limits_from_data(baseline)
print(f"{limits.centre:.2f} {limits.sd:.2f}")                                  # 8.19 0.10
print(f"{limits.centre - 2 * limits.sd:.2f} {limits.centre + 2 * limits.sd:.2f}")  # 7.98 8.40
print(f"{limits.centre - 3 * limits.sd:.2f} {limits.centre + 3 * limits.sd:.2f}")  # 7.88 8.50

runs = [8.15, 8.27, 8.09, 8.24, 8.31, 8.33, 8.32, 8.36,
        8.18, 8.22, 8.12, 8.42, 8.20]
chart = westgard(runs, limits)               # one row per run: z, each rule, status
rules = ["1_2s", "1_3s", "2_2s", "R_4s", "4_1s", "10_x"]
for i, row in chart.iterrows():
    if row["status"] != "accept":
        print(f"run {i + 1}:", ", ".join(r for r in rules if row[r]), row["status"])
# run 8: 4_1s reject
# run 12: 1_2s warning

z = z_score(7.95, assigned=7.80, sigma_pt=0.20)
print(z, classify(z))                        # 0.75 satisfactory
Run it without labqc (numpy and scipy only)

The same checks in plain Python. It tests only the two rules that fire in this example (41s and 12s); a real chart should check all six in the table above.

import numpy as np

baseline = np.array([8.21, 8.05, 8.33, 8.17, 8.28, 8.02, 8.24, 8.11, 8.36, 8.19,
                     8.30, 8.08, 8.20, 8.13, 8.27, 8.04, 8.25, 8.15, 8.34, 8.10])
centre, sd = baseline.mean(), baseline.std(ddof=1)
print(f"centre {centre:.2f}, SD {sd:.2f}")                    # centre 8.19, SD 0.10
print(f"warning {centre - 2 * sd:.2f} to {centre + 2 * sd:.2f}, "
      f"action {centre - 3 * sd:.2f} to {centre + 3 * sd:.2f}")
# warning 7.98 to 8.40, action 7.88 to 8.50

runs = np.array([8.15, 8.27, 8.09, 8.24, 8.31, 8.33, 8.32, 8.36,
                 8.18, 8.22, 8.12, 8.42, 8.20])
z = (runs - centre) / sd
print(" ".join(f"{v:.2f}" for v in z))
# -0.39 0.76 -0.97 0.47 1.14 1.33 1.23 1.62 -0.11 0.28 -0.68 2.19 0.09

for i in range(len(z)):
    last4 = z[max(0, i - 3): i + 1]
    if len(last4) == 4 and (np.all(last4 > 1) or np.all(last4 < -1)):  # 4_1s
        print(f"run {i + 1}: 4_1s, reject")
    elif abs(z[i]) > 2:                                                 # 1_2s
        print(f"run {i + 1}: 1_2s, warning")
# run 8: 4_1s, reject
# run 12: 1_2s, warning

z_pt = (7.95 - 7.80) / 0.20                # (lab - assigned) / SD for proficiency assessment
print(f"PT z = {z_pt:.2f}")                # PT z = 0.75

Common findings

  • QC data recorded but never reviewed. Charts exist, but nobody looked for trends, and there is no record of a review.
  • Results released after a failed control, with no record of why.
  • Limits that are not the lab's own: taken from a kit insert or a method's precision data, or recalculated so often that a drift became the centre line.
  • A PT plan that leaves gaps: methods in scope with no PT or comparison in the cycle, or no plan at all, only a list of past rounds.
  • Questionable PT results not followed up, or closed as "random error" without any investigation.
  • No evidence the control sample is stable over the period it is used.
  • No link to reported results. When a check fails, the lab fixes the instrument but does not ask which reported results were affected.

Templates

All templates: templates library.

Tools