SD vs SEM vs 95% CI: How to Choose Error Bars for Lab Data

Use standard deviation (SD) to describe how far individual readings scatter around their mean. Use the standard error of the mean (SEM) to express the estimated precision of an average. When readers need a plausible range for the population mean under a stated statistical model, show a confidence interval, such as a 95% t interval. Label the bars explicitly and identify what you counted as an independent observation.

Three intervals around the same meanIllustration: mean 10, sample SD 2, four independent observationsMean ± SDMean ± SEM95% t interval68101214Measurement units
Figure 1. Illustrative values. The three bars have different meanings even though their centres are the same.

What does each measure answer?

Choose the summary based on the question
SummaryQuestion it answersHow to label it
Sample SDHow variable are individual observations?Mean ± SD
Estimated SEMHow precisely did we estimate the mean?Mean ± SEM
95% t intervalWhat range for the population mean does this method produce at the stated confidence level?Mean and 95% CI

SD and SEM are expressed in the same units as the measurement, so the scale alone gives no clue which one you are looking at. A bar labelled only “error” is ambiguous. A narrow SEM can occur when a study has many independent observations even if those observations vary widely. That same dataset can have wide SD bars. The useful question is whether the figure is meant to show individual variation or precision of a group summary.

Worked example 1. Calculate all three summaries

Consider four independent illustrative measurements of 8, 8, 11 and 13 units. Their mean is 10. The deviations from 10 are −2, −2, +1 and +3, whose squares add to 18. Divide 18 by 3, the sample size minus one, to obtain a sample variance of 6. Taking its square root gives a sample SD of about 2.45 units. The observed values span 5 units from minimum to maximum. That observed range is a different statistic from the SD.

For independent observations in this simple setting, the estimated SEM is sample SD divided by the square root of the sample size. With four observations, the SEM is about 2.45 divided by 2, or 1.225 units. A two-sided 95% t interval uses a multiplier of approximately 3.182 with three degrees of freedom. The half-width is about 3.90 units, and the interval runs from about 6.10 to 13.90. Keep the unrounded SD or SEM until the last step to avoid carrying rounding differences through the calculation. NIST confidence limits for the mean

The figure uses a separate illustrative summary with SD 2 to make the endpoints easy to read. Its SEM is 1 and its 95% t half-width is approximately 3.18. This is why a bar of one SEM on either side of the mean cannot be labelled a 95% confidence interval. The appropriate multiplier also changes with the degrees of freedom. A constant shortcut such as multiplying by two is particularly misleading in a very small sample.

Worked example 2. What changes when you collect more independent observations?

Suppose two teaching datasets each have a sample SD of 6 units. The first contains 9 independent readings and the second contains 36. Their estimated SEMs are 6 ÷ 3 = 2 and 6 ÷ 6 = 1. Both groups show the same absolute spread in this example. The second mean has the smaller estimated standard error because it uses more observations. Quadrupling the number of independent readings halves the SEM when the SD stays fixed.

Check what “more readings” means in your study. Measuring one object repeatedly can improve the precision with which you describe that object. It does not supply a corresponding number of independent objects. If your conclusion is about variation between specimens, rows representing repeated measurements of one specimen need to stay linked to that specimen. Calculate a justified specimen-level summary or use a model that accounts for the repeated measurements. Simply putting every row into an independent-observation formula can lead to intervals that are too narrow for the intended question.

How do you choose bars for a lab figure?

For a figure about the spread of observations, show the points where practical and add a labelled SD summary if it helps. For a figure about estimated means, consider a confidence interval and report how it was calculated. With paired observations, show the pairs or their differences when that is the comparison of interest. Separate error bars on the two group means do not represent the uncertainty of the paired difference.

Do not decide significance from the overlap of bars without knowing what they represent and how the data were collected. If the scientific question is about the difference between means, estimate the difference directly and report an interval for it using a method appropriate to the design. A confidence interval for a single mean also does not describe where 95% of individual results are expected to fall. The intended target of the interval belongs in the caption. NIST reference for differences between means

What should you check before reporting an interval?

The simple t interval used above assumes an appropriate independent sample and is exact for normally distributed observations. Inspect the individual points for strong asymmetry or outliers, especially with small samples. A result can also be precisely estimated and still be biased by the measurement or sampling process. Check calibration and study design separately from the computation of the bars. For a modest dataset, an individual-value plot can show features that a lone average and interval will hide.

A complete caption identifies the central statistic, the type of bar, the sample size and the unit of replication. For the worked example, you could write “Mean of four independent observations with two-sided 95% t confidence interval, displayed in measurement units.” If there were four specimens each read three times, distinguish the number of specimens from the number of instrument readings. Keep the raw values and calculation alongside the figure so someone else can verify the result.

Related guide: when relative variation is better expressed as %CV · BMB-UOG tools catalogue

How do you check the calculation in a spreadsheet?

For four numeric readings in B2 through B5, use =AVERAGE(B2:B5) for the mean, =STDEV.S(B2:B5) for the sample SD, and =STDEV.S(B2:B5)/SQRT(COUNT(B2:B5)) for the SEM. Check that the count matches the independent units included in your summary, especially if one row is blank or stored as text. With one numeric value, a sample SD cannot be estimated. A software error in that case is a prompt to check the data, not a value to replace with zero.

For a two-sided 95% interval in this example, multiply the SEM by T.INV.2T(0.05,3) in a spreadsheet that supports that function. The second argument is the degrees of freedom. Subtract the result from the mean for the lower endpoint and add it for the upper endpoint. Use the result to cross-check the graph and write its endpoints explicitly in any supporting table. If the graph exports percentages instead of original measurement units, transform the endpoints consistently or label the graph in its original scale.

 

Post a Comment

0 Comments