Applied Mathematics for Science
CoreStatistics: sampling & confidence

Samples, Error Bars & Confidence

A sample is a small window on a whole population. Learn why samples wobble, how error bars show that wobble, and when two groups really differ.

Why this matters

You almost never measure everyone. A drug trial tests a few hundred patients, not the whole country; a lab counts a few dozen cells, not every cell in the dish. From that small sample you have to guess the truth about the whole population, and every sample wobbles a little just by chance (that wobble is sampling error). The whole point of statistics is to say how much you should trust the guess. Bigger, truly random samples wobble less, so they give tighter estimates. The standard error (SE) puts a number on the wobble of a sample mean, error bars draw that wobble on a graph, and a confidence interval (CI) states the plausible range for the real value. Epidemiologists use these ideas to say whether a disease rate really rose or just jumped around by chance. Biostatisticians build the confidence intervals that decide if a new drug beat the placebo. Lab scientists check whether two error bars overlap before claiming a treatment changed anything. Doctors reading a study look at the CI to see if a result is strong or shaky before changing how they treat patients. Learn this and you stop being fooled by a difference that is really just noise.

Standards this builds
  • Common Core · HSS-IC.B.4Use data from a sample survey to estimate a population mean, and understand that different samples give different estimates (this spread is the margin of error the sample carries).
  • Common Core · HSS-IC.B.6Evaluate reports based on data: judge whether a claimed difference between two groups is supported once the uncertainty in each estimate is taken into account.
  • Common Core · HSS-ID.A.4Use the mean and standard deviation of a data set, and the normal model, to estimate what fraction of values fall in a given range (the basis of the 68-95-99.7 rule).
  • Ohio · Ohio HS S.IC.4Estimate a population value from a random sample and describe how much the estimate could vary from one sample to the next.
  • NGSS · SEP-4Analyzing and Interpreting Data: consider the limitations of a data set, including sample size and measurement error, when deciding what the data actually show.
Builds on (2 levels back)inferred · high confidence
  • Find the mean (average) of a data set: A sample mean is the estimate everything here is built on, so students must be able to compute an average first.
  • Read standard deviation as spread: Standard error is standard deviation divided by the square root of the sample size, so students need what standard deviation measures.
  • Take a square root of a whole number: The SE formula divides by the square root of n, so students must evaluate roots like the square root of 36 or 225.

Prerequisites are inferred: pending teacher review.

Re-learn the skill with worked practice and clear examples.

Put a number on the wobble. The standard error (SE) equals the standard deviation divided by the square root of the sample size, and it tells you how precise the sample mean is. Draw it as error bars, and use it to build a confidence interval: mean give or take about two standard errors is a 95% range for the true value.

Step 1: Compute the standard error
SE = standard deviation divided by the square root of n (the sample size). If the standard deviation is 12 and n is 36, then the square root of 36 is 6, so SE = 12 divided by 6 = 2. A bigger n makes the bottom of the fraction bigger, so SE shrinks and the estimate gets more precise.
The formula SE equals standard deviation over the square root of n, worked out as 12 over 6 equals 2
Step 2: Draw the error bars
On a graph, put the sample mean at the top of the bar, then draw a line reaching one SE above and one SE below. A short error bar means a precise estimate; a long error bar means a shaky one. The length comes straight from the SE you computed.
Step 3: Build a 95% confidence interval
A 95% confidence interval is roughly the mean plus or minus two standard errors. This uses the normal-model idea that about 95% of the time the sample mean lands within two SE of the truth. If the mean is 50 and SE is 2, the interval runs from 50 minus 4 to 50 plus 4, that is 46 to 54.
Practice

A sample of 36 patients has a standard deviation of 12 beats per minute. What is the standard error of the mean? (SE = standard deviation divided by the square root of n)

Reviewed
  1. A.0.33 beats per minute
  2. B.2 beats per minute
  3. C.6 beats per minute
  4. D.72 beats per minute
Show the worked solution ▾

Answer: B. 2 beats per minute

  1. Step 1: Find the square root of n: The sample size n is 36, and the square root of 36 is 6.
  2. Step 2: Divide: SE = 12 divided by 6 = 2 beats per minute.

Why it's right: SE = 12 divided by the square root of 36 = 12 divided by 6 = 2 beats per minute.

Why the others miss:
  • A: This divides 12 by 36 instead of by the square root of 36.
  • C: This is the square root of n itself, not the standard error.
  • D: This multiplies 12 by 6 instead of dividing.

Aligned to Ohio HS S.IC.4: compute standard error · reading level ~grade 9

The graph compares two experiments. In each experiment, which pair of groups shows a difference you can more confidently call real?

Reviewed
Left panel: groups A and B whose error bars overlap. Right panel: groups C and D whose error bars are clearly separated with a gap between them.
  1. A.Groups A and B, because their error bars overlap
  2. B.Groups C and D, because their error bars are separated
  3. C.Both pairs equally, because all bars are drawn
  4. D.Neither pair, because you cannot tell from error bars
Show the worked solution ▾

Answer: B. Groups C and D, because their error bars are separated

  1. Step 1: Look at A and B: Their error bars overlap, so the true values could be the same; the gap between the bar tops might just be noise.
  2. Step 2: Look at C and D: Their error bars do not overlap; there is a clear gap. That makes it more likely the two groups truly differ, not just by chance.

Why it's right: Clearly separated error bars (C and D) point to a real difference, while overlapping bars (A and B) mean the difference might just be sampling noise.

Why the others miss:
  • A: Overlapping bars weaken, not strengthen, a claim of a real difference.
  • C: Being drawn does not make a difference real; overlap is what matters.
  • D: Error bars are exactly the tool used to judge whether a difference is real.

Aligned to Common Core HSS-IC.B.6: judge a difference from uncertainty · reading level ~grade 9

A sample mean is 50 beats per minute with a standard error of 2. Using mean give or take about two standard errors, what is an approximate 95% confidence interval for the true mean?

Reviewed
  1. A.49 to 51
  2. B.48 to 52
  3. C.46 to 54
  4. D.42 to 58
Show the worked solution ▾

Answer: C. 46 to 54

  1. Step 1: Find two standard errors: Two times the standard error is 2 times 2, which is 4.
  2. Step 2: Add and subtract from the mean: 50 minus 4 is 46, and 50 plus 4 is 54, so the interval is 46 to 54.

Why it's right: A 95% CI is about mean plus or minus two SE: 50 minus 4 to 50 plus 4 gives 46 to 54.

Why the others miss:
  • A: This uses one half of an SE, not two full SE.
  • B: This uses only one SE (plus or minus 2), which is roughly a 68% interval, not 95%.
  • D: This uses four SE (plus or minus 8), which is wider than the 95% interval.

Aligned to Ohio HS S.IC.4: build a confidence interval · reading level ~grade 9

Where you'd see this
  • A student computes SE from a lab's standard deviation and sample size, then draws matching error bars on the class graph.
  • A lab group reports a result as 50 plus or minus 4 (a 46 to 54 confidence interval) instead of a bare number.
  • A reader sees two treatment bars whose error bars overlap and decides the study has not proven a difference.
Video library
Watch: why sample means vary and what SE measures
Sampling distribution of the sample mean | Probability and Statistics | Khan Academy
Khan Academy · 10:52
Watch: what a confidence interval really says
Confidence Intervals: Crash Course Statistics #20
CrashCourse · 13:02
Extension: reading error bars on a lab graph
Standard Error
Bozeman Science · 7:05
Guided notes

Fill these in as you work through the lesson.

Big idea: A sample is a small window on a whole population, samples wobble by chance (sampling error), and the standard error, error bars, and confidence interval tell you how much to trust the sample's estimate and whether two groups truly differ.
Key terms: write the meaning
  • Sampling error (the natural wobble between samples):  
  • Standard error (SE) (standard deviation over the square root of n):  
  • Confidence interval (CI) (mean plus or minus about two SE):  
  • Overlapping error bars (difference might just be noise):  
The rule

The standard error equals the standard deviation divided by the square root of  ; a 95% confidence interval is about the mean plus or minus   standard errors; if two groups' error bars  , the difference might just be noise.

Check yourself
  1. In your own words, why do two random samples from the same population give slightly different means? 
  2. A sample has standard deviation 12 and n = 36. Show that SE = 2, then give the 95% confidence interval if the mean is 50. 
  3. Two bars have overlapping error bars. What can and cannot you conclude about the difference between the groups? 
Work one example

A sample of 36 has a standard deviation of 12 and a mean of 50. First SE = 12 divided by the square root of 36 = 12 divided by 6 = ____. Then a 95% confidence interval is 50 plus or minus two SE, which is 50 plus or minus ____ , giving ____ to ____.

 
Illustrated glossary

The vocabulary of this topic, shown in the way you will meet it.

Population vs sample
The population is the whole group you want to know about; the sample is the smaller part of it you actually measure.
A large circle labeled Population with many dots, and a small circle labeled Sample holding a few of those dots, with an arrow showing a sample drawn from the population
In context: A researcher wants the average resting heart rate of all ninth graders (the population), so she measures 40 of them (the sample) and uses that to estimate the whole.
Sampling error
The natural amount an estimate from a sample differs from the true population value, just because you measured only part of the group.
In context: Two different classes each sample 40 people and get average heart rates of 71 and 73; neither is wrong, the gap is sampling error from measuring different people.
Standard error (SE)
A number that measures how much a sample mean would bounce around if you took the sample over and over; smaller SE means a more precise estimate.
In context: With a standard deviation of 12 and a sample of 36 people, the standard error is 12 divided by the square root of 36, which is 2 beats per minute.
Error bar
A short line drawn above and below a bar or point on a graph to show the uncertainty (often one standard error) in that value.
A bar reaching a height of 50 with a red error bar extending up to 52 and down to 48, labeled as one standard error
In context: The treated group's bar rises to 50 with an error bar reaching from 48 to 52, showing the true value is probably close to 50.
Confidence interval (CI)
A plausible range for the true population value, built from the sample; a 95% CI is roughly the mean give or take two standard errors.
In context: If the mean is 50 and the standard error is 2, a 95% confidence interval runs from about 46 to 54, so the real average is very likely in that range.
Overlapping error bars
When two groups' error bars cover some of the same values, the groups might not truly differ; the gap could just be noise.
In context: Group A (48 to 52) and Group B (50 to 54) have overlapping error bars, so a scientist should not yet claim the treatment changed the result.