standarddeviationcalculator.net

Updated

Reporting lab measurements as mean ± SD

A calculator will happily tell you that your replicates averaged 48.975 mg/L with a standard deviation of 0.36936238 mg/L. Neither number should go in a report like that. This post covers how to turn raw replicate statistics into a line a reader can trust: rounding, %RSD, n, and when the ± should be something other than the SD.

1234567848.248.448.648.84949.249.449.649.8 replicate number chloride (mg/L)

┄ mean ± 1 SD (± 0.37 mg/L)   ━ mean, 48.98 mg/L

6 of the 8 readings sit inside the ± 1 SD band; the band's width, not the instrument's 0.1 mg/L resolution, is what decides how many digits the mean deserves.

The worked example: eight replicate determinations

Suppose an analyst measures the chloride concentration of one water sample eight times. The numbers are hypothetical, recorded to 0.1 mg/L: 48.7, 49.3, 48.9, 49.6, 48.4, 49.1, 49.0, 48.8.

x (mg/L)x − x̄(x − x̄)²
48.7−0.2750.075625
49.30.3250.105625
48.9−0.0750.005625
49.60.6250.390625
48.4−0.5750.330625
49.10.1250.015625
49.00.0250.000625
48.8−0.1750.030625
Σ = 391.800.955

x̄ = 391.8 / 8 = 48.975 mg/L s = √[0.955 / (8 − 1)] = √0.136429 = 0.36936 mg/L %RSD = 100 × 0.36936 / 48.975 = 0.754%

That is the arithmetic, and you can check it in the mean and standard deviation calculator. The sample SD (n − 1) is the right one here, because eight determinations are a sample of what the method could produce. Keep every digit through the calculation; rounding happens once, at the end.

Try it: RSD calculator

The eight chloride readings are already filled in below; replace them with your own replicates to get the mean, sample SD and %RSD in one step.

Separate numbers with commas, spaces or new lines, or paste a spreadsheet column. Decimals and negatives are fine; write 10:3 for a value that occurs 3 times.

Try:
Calculation type

Not sure which? How to choose sample or population

Relative standard deviation

0.754186%

The standard deviation (0.3694) is 0.754% of the mean (48.98). Because it has no units, this figure can be compared across datasets measured on different scales.

Count (n)
8
Mean (x̄)
48.975
Standard deviation (s)
0.369362
Variance (s²)
0.136429
Minimum
48.4
Q1 (25%)
48.775
Median
48.95
Q3 (75%)
49.15
Maximum
49.6
Range
1.2
More statistics (5)
Standard error
0.130589
Coefficient of variation
0.00754186
Sum (Σx)
391.8
Sum of squares, Σ(x − x̄)²
0.955
IQR (Q3 − Q1)
0.375

Data distribution

48 48.5 49 49.5 50 mean 48.98 −1 SD +1 SD 48.7 — 0.745 SD below the mean49.3 — 0.88 SD above the mean48.9 — 0.203 SD below the mean49.6 — 1.69 SD above the mean48.4 — 1.56 SD below the mean49.1 — 0.338 SD above the mean49 — 0.0677 SD above the mean48.8 — 0.474 SD below the mean Value

Shaded bands mark ±1, ±2 and ±3 SD from the mean. 6 of 8 values (75%) fall within ±1 SD.

Chart as text

Mean 48.975, sample standard deviation s = 0.369362, from 8 values between 48.4 and 49.6.

  • Within ±1 SD (48.61 to 49.34): 6 of 8 values (75%). About 68% for normal data.
  • Within ±2 SD: 8 (100%). About 95% for normal data.
  • Within ±3 SD: 8 (100%). About 99.7% for normal data.
Show the working, step by step

Open the full relative standard deviation calculator for more on %RSD and the coefficient of variation.

Round the SD first, then the mean to match

The standard deviation of eight readings is only a rough estimate of the method's true spread. With n = 8, a second batch of eight could easily give an SD 30% higher or lower. So the third and later significant figures of s are noise. The usual rule:

1. Round s to 1 or 2 significant figures. 2. Round x̄ to the same decimal place as the rounded s.

Here s = 0.36936 becomes 0.37 (two significant figures). Its last digit is in the hundredths place, so the mean is rounded to hundredths: 48.975 becomes 48.98. The result is 48.98 ± 0.37 mg/L. If your lab uses one significant figure for the SD, the same data gives 49.0 ± 0.4 mg/L. Both are defensible; what is not defensible is 48.975 ± 0.36936, or the mismatched 48.975 ± 0.4, whose mean claims a precision the SD says it does not have.

Written asVerdict
48.975 ± 0.36936 mg/LToo many digits in both
48.975 ± 0.37 mg/LMean has a digit the SD cannot support
49 ± 0.37 mg/LMean rounded more coarsely than its SD
48.98 ± 0.37 mg/L (n = 8)Good: two significant figures in the SD
49.0 ± 0.4 mg/L (n = 8)Good: one significant figure in the SD

Notice the mean is quoted to 0.01 mg/L even though each reading was recorded to 0.1. That is fine: averaging eight readings pins the centre down better than any one of them. The size of the spread sets the last digit, not the resolution of the instrument.

Add %RSD, and always add n

The %RSD (relative standard deviation, the same thing as the coefficient of variation expressed as a percentage) puts precision on a scale that does not depend on the concentration. Here it is 0.754%, reported as 0.75%. Method validation criteria are usually written as a maximum %RSD, which is why labs report it alongside the SD. The RSD calculator gives it directly. Round %RSD to two significant figures for the same reason as the SD: it inherits the SD's uncertainty.

n belongs in every line. "48.98 ± 0.37 mg/L" from 3 replicates and from 30 replicates are very different statements, and a reader cannot recover n from the SD. A complete line looks like this:

Chloride: 48.98 ± 0.37 mg/L (mean ± SD, n = 8; RSD 0.75%)

When the ± should be a standard error or a confidence interval

Mean ± SD describes the scatter of individual determinations: the repeatability of the method. Often the reader wants something else, namely how well you know the concentration of this sample. That calls for the standard error of the mean or a 95% confidence interval.

StatisticFormulaValueReported
SDs0.369448.98 ± 0.37
Standard errors / √n0.130648.98 ± 0.13
95% CI half-widtht(0.975, 7) × s / √n = 2.365 × 0.13060.308848.98 ± 0.31

The three lines look alike and mean different things. The SD will not shrink if you run more replicates; the SE and the confidence interval will. The t value of 2.365 is for 7 degrees of freedom; with small n it is noticeably bigger than 1.96. Label which one you used, every time. The standard error calculator and the confidence interval calculator work both out from the raw values.

Before you report: three checks

Look at the values, not only the summary. With eight numbers a quick sort shows whether one reading sits far from the rest. Here the extremes are 48.4 and 49.6, each within 1.7 SD of the mean, so nothing stands out. If a reading does stand out, test it (the outlier calculator covers the common rules) and record any exclusion with its reason. Quietly dropping the awkward replicate makes the SD look better than the method is.

Check the %RSD against the method's acceptance limit. If the limit is 2% and you got 0.75%, the replicate set passes; if you got 3%, report the result but flag it.

Keep units and the replicate type straight. "Eight injections of one extract" measures instrument repeatability. "Eight separate extractions" also captures sample preparation, and will usually have a larger SD. Say which kind of replicate the SD describes, because the two answer different questions about the method. The broader difference between describing spread and describing a mean is covered in standard deviation vs mean.

Common questions

How many significant figures should a standard deviation have?

One or two. The SD of a small set of replicates is itself uncertain, so digits beyond the second carry no information. A common convention is two significant figures when the leading digit is 1 or 2 (0.14, 2.3) and one otherwise, but two throughout is also widely accepted. Round the mean to the same decimal place as the rounded SD.

Can I report the mean with more decimal places than the individual readings?

Yes, within reason. The mean of eight readings is more precise than any single reading, so a mean of 48.98 from readings recorded to 0.1 mg/L is fine. What sets the last digit is the size of the SD (or SE), not the resolution of the instrument.

Should I use the sample or population standard deviation for replicates?

The sample SD, with n − 1 in the denominator. Your replicates are a sample from all the measurements the method could produce, and you want to estimate that method's spread. Spreadsheet functions STDEV.S (Excel) and sd() (R) both give the sample version.