Skip to content

QC Mean, SD and CV Calculator

Paste a control's results and get its mean, standard deviation, coefficient of variation and the ±1, 2 and 3 SD limits the Westgard rules use, for up to three levels at once. Use it to set limits on a new control lot or to close out a month of QC, with last month's lot-to-date figures carried forward. It prints as a one-page QC summary for the binder; to keep these figures in software instead, compare lab QC software.

Frosted-glass render of a long rack of twenty square cuvettes with slightly varying eosin fill levels and two more cuvettes at the end
A1
A rack of control vials whose fill levels vary a little from one to the next.

Bench sheet

  • Summary ofa new lot
  • SD divides byn − 1
  • Level 1 results20
  • Level 1 CV0.75 %
  • Level 2 results20
  • Level 2 CV0.86 %
Limits are the mean ± 1, 2 and 3 SD. CV is the SD as a percentage of the mean.

How to use it

The tool covers the two times a bench works these numbers out by hand.

  1. A new control lot. Run the new lot alongside the old one and paste its results, one per line, a column per level. Westgard's rule of thumb is at least 20 measurements over at least 10 working days, and preferably 20 working days, before you set limits. With fewer than 20 the tool says so and the limits are provisional.
  2. A monthly summary. Paste the month's results for each level. To carry the lot forward, enter last month's lot-to-date n, mean and SD: the tool adds this month to them and gives the lot-to-date statistics, which Westgard calls “a better representation of long term test performance” than one month alone.
  3. Print the summary for the QC binder (it carries a reviewed-by line), or copy it as tab-separated text into a spreadsheet. Then draw the limits on a Levey-Jennings chart.

Everything runs in this browser tab. Nothing you paste is sent to AssayDeck or stored.

What it calculates

For each control level, from its n results x₁ … xₙ:

mean = Σx ÷ nSD = √( Σ(x − mean)² ÷ (n − 1) )CV = SD ÷ mean × 100limits = mean ± 1 SD, ± 2 SD, ± 3 SD

The SD divides by n − 1. That is the sample standard deviation, the one Westgard's QC calculations lesson and Bio-Rad's statistics workbook both use, and the one QC software reports: twenty control results are a sample of everything the method will ever produce, not the whole population. In Excel that is STDEV.S, which “assumes that its arguments are a sample of the population”; STDEV.P treats the results as the entire population, divides by n, and comes out slightly smaller, more so when n is small.

Means and limits show one more decimal place than your results, and the SD two more. Westgard advises carrying extra figures and rounding at the end, after the limits are worked out.

For the lot to date, the previous summary and this period are pooled as if every result had been kept: Westgard totals the n, Σx and Σx² of each month, and the tool does the same algebra from the n, mean and SD you enter.

Note
A level's mean and SD are only as good as the lot behind them. Start a new set when the control lot changes: CLIA asks for them “for each batch and lot number” (§ 493.1256(d)(10)(i)).

What the coefficient of variation means

The coefficient of variation (CV) is the standard deviation written as a percentage of the mean. An SD on its own is in the test's units, and it tends to grow as the concentration grows, so SDs at different levels or on different methods cannot be compared directly. The CV can.

Bio-Rad's workbook gives the classic case. One glucose method has an SD of 4.8, another 4.0, so the second looks more precise. But their means are 120 and 100, and 4.8 ÷ 120 and 4.0 ÷ 100 are both 4 %: they are equally precise.

Outside the lab the idea is the same. A CV of 2 % says the results scatter by about 2 % of their average; a CV of 20 % says they scatter ten times as widely.

Takeaway

Compare like with like: a level 1 CV with another level 1 CV, the same lot, the same instrument. Bio-Rad makes the same point about matching levels.

Worked example

Bio-Rad's Basic Statistics in Laboratory Quality Control workbook works one control level by hand: a normal potassium control run once a day for a week, November 1 to 7, with results 4.0, 4.1, 4.0, 4.2, 4.1, 4.1 and 4.2 mmol/L. The button above the result loads those seven numbers. The “This tool” columns below are computed by the calculator's own code when the page is built.

Worked example: Bio-Rad's seven level 1 potassium results, the workbook's figures and this tool's, in mmol/L
StatisticBio-Rad workbookThis toolThis tool, rounded to 0.1
Sum of results28.728.7–
n77–
Mean4.14.104.1
SD (n − 1)0.082 (0.1 rounded)0.0820.1
CVNot worked1.99 %–
±1s range4.0 to 4.24.02 to 4.184.0 to 4.2
±2s range3.9 to 4.33.94 to 4.263.9 to 4.3
±3s range3.8 to 4.43.86 to 4.343.8 to 4.4

The mean and SD agree. The limits differ only because the workbook rounds the mean and SD to the nearest tenth before drawing them (potassium is reported to tenths, it explains); rounded the same way, the tool gives the workbook's 4.0 to 4.2, 3.9 to 4.3 and 3.8 to 4.4. Westgard's lesson checks the rest: the mean of 100, 105 and 98 is 303 ÷ 3 = 101, and a cholesterol control with a mean of 200 mg/dL and an SD of 4 has 2s limits of 192 and 208 and 3s limits of 188 and 212.

Seven results are a teaching set. They are fine for one week's review and too few to set a lot's limits.

Is my CV good enough?

There is no single number. Bio-Rad's workbook lists where to look for the precision to expect: the assay reagent insert or instrument manual, interlaboratory comparison programs, proficiency surveys, published method evaluations, and regulatory proficiency limits such as CLIA's.

The CLIA limit gives a sense of scale. Proficiency testing accepts a potassium result within ±0.3 mmol/L of the target (§ 493.931). The default level 1 control here has an SD under 0.03 mmol/L, so its random error uses a small part of that allowance. If the SD were a third of the limit, the ordinary ±3 SD scatter alone would fill it, with nothing left for bias. The sigma metric calculator puts that margin into one number.

Peer programs put a number on it. Your CV divided by the peer group's CV is the CV ratio; in Bio-Rad's guidance “Ratios greater than 1.5 indicate a need to investigate the cause of imprecision and any ratio greater than 2.0 indicates need for troubleshooting and corrective action”. The QC peer programs compared page sets out who offers that data.

Takeaway

Watch the trend more than the number: Bio-Rad's example is a level 1 SD that doubles from one week to the next, “a serious loss of precision” that sends you to reagents, maintenance and calibration. The calibration verification calculator covers the last of those.

What 42 CFR 493 says

CLIA does not name a formula or a CV target. It requires the numbers this tool produces and leaves the acceptability criteria to the lab:

  • Statistical parameters “(for example, mean and standard deviation) for each batch and lot number of control materials must be defined and available” (§ 493.1256(d)(10)(i)).
  • An assayed control's stated value may be used if it is for your method and instrument “and is verified by the laboratory” ((d)(10)(ii)); an unassayed control's parameters “must be established over time by the laboratory” ((d)(10)(iii)).
  • Each quantitative procedure needs two control materials of different concentrations at least once each day patient specimens are assayed (§ 493.1256(d)(3)), unless the lab follows an approved individualized quality control plan; see how often to run QC.
  • QC records are kept “for at least 2 years” (§ 493.1105(a)(3)), so keep each monthly summary with its charts.

The laboratory must document all control procedures performed.

42 CFR § 493.1256(g)

Takeaway

Write down how your lab sets limits for a new lot and when it moves to lot-to-date figures. That written rule is the criterion an inspector reads your statistics against.

Related on AssayDeck