Skip to content

Visualizing uncertainty

What error bars mean, why overlap isn't a test, and how to show uncertainty so people notice it.

Applied ~11 min7 steps

You will be able to

  • Tell SD, SE and CI error bars apart
  • Explain why overlapping intervals don't settle a comparison
  • Choose a chart that keeps uncertainty visible

Read first

01

Three bars that look the same

Read

An error bar can show three different things:

  • SD: how individuals vary. It doesn't shrink with more data.
  • SE: how precise the mean is. It shrinks with more data.
  • 95% CI: a range of values compatible with the data, about twice the SE each way.

All look identical, so a chart must say which it shows. If it doesn't, you can't read it.

02

Do they overlap?

Predict

Predict first

Two groups' 95% confidence intervals overlap a little. Does that mean the difference isn't statistically significant at the 0.05 level?

Yes, it's not significantNo, overlap doesn't settle itOnly if the bars are SDs
Reveal

The answer: No, overlap doesn't settle it

No. Two 95% intervals can overlap and the difference can still have p below 0.05. Non-overlap is a stricter check than the test of the difference. To compare two groups, show the interval for the difference itself.

03

Feel what 95% means

Explore

Each new sample gets a different interval. Run many studies and watch how far they jump, and how many miss.

AExplorable · The confidence-interval dance

What does it mean for an interval to be 95% confident?

Out of these studies' intervals, how many will miss the true mean?

50
How sure?
10

Confidence level

Population

Interval

The z shortcut uses 1.96 with the sample SD — fine for large n only.

100
0 / 100

96 of 100 contain μ · 4 miss

true μ = 1

Commit your prediction above to see the result

Make your prediction first; the figure appears when you commit.

Make your prediction to see the result.

Then try the bet: how often does a new study's mean land inside today's interval? It's less often than 95%.

BExplorable · The confidence interval bet

If you repeat the study, how often does the new mean land inside today's 95% interval?

What share of replication means will fall inside this interval?

0.75
How sure?
25

Confidence level

Simulating…

Commit your prediction above to see the result

Make your prediction first; the figure appears when you commit.

Make your prediction to see the result.

04

Show the difference

Read

An Estimation plot shows both groups and, on its own axis, the difference with its interval. Point-range does the same for many groups or models.

Estimation plot (Gardner–Altman)How big is the difference between two groups, and how precisely is it estimated?
View data
lengthsupplementdifferencediff lowdiff high
26.800VC2.123−2.1526.398
4.900VC2.123−2.1526.398
21.900VC2.123−2.1526.398
30.500VC2.123−2.1526.398
12.200VC2.123−2.1526.398
30.700VC2.123−2.1526.398
28.100VC2.123−2.1526.398
7.600VC2.123−2.1526.398
3.300VC2.123−2.1526.398
19VC2.123−2.1526.398
29.800VC2.123−2.1526.398
33.500VC2.123−2.1526.398
8VC2.123−2.1526.398
12.700VC2.123−2.1526.398
33.100VC2.123−2.1526.398
20.200VC2.123−2.1526.398
18.200VC2.123−2.1526.398
20.300VC2.123−2.1526.398
23.400VC2.123−2.1526.398
26.800VC2.123−2.1526.398
29.700VC2.123−2.1526.398
18.800VC2.123−2.1526.398
27VC2.123−2.1526.398
11.300VC2.123−2.1526.398
17.200VC2.123−2.1526.398
14.500VC2.123−2.1526.398
9.700VC2.123−2.1526.398
17.200VC2.123−2.1526.398
14.100VC2.123−2.1526.398
14.100VC2.123−2.1526.398
16.300OJ2.123−2.1526.398
14.400OJ2.123−2.1526.398
31.600OJ2.123−2.1526.398
25.300OJ2.123−2.1526.398
17.600OJ2.123−2.1526.398
21.300OJ2.123−2.1526.398
17.400OJ2.123−2.1526.398
10.200OJ2.123−2.1526.398
38.500OJ2.123−2.1526.398
12.100OJ2.123−2.1526.398
5.400OJ2.123−2.1526.398
21.600OJ2.123−2.1526.398
20.700OJ2.123−2.1526.398
22.700OJ2.123−2.1526.398
22.200OJ2.123−2.1526.398
16.300OJ2.123−2.1526.398
27.200OJ2.123−2.1526.398
17.800OJ2.123−2.1526.398
20.300OJ2.123−2.1526.398
24.500OJ2.123−2.1526.398
32.900OJ2.123−2.1526.398
24.300OJ2.123−2.1526.398
4.400OJ2.123−2.1526.398
19.500OJ2.123−2.1526.398
29OJ2.123−2.1526.398
19OJ2.123−2.1526.398
22.500OJ2.123−2.1526.398
38.500OJ2.123−2.1526.398
26.400OJ2.123−2.1526.398
28.400OJ2.123−2.1526.398

A Forest plot puts many estimates on a common scale, each with its interval, and makes it easy to scan for the ones that exclude no effect.

05

Uncertainty in forecasts

In the app

A forecast line alone looks like a promise. A fan chart shows how uncertainty widens as you look further ahead.

Forecast fan chartWhere is the series heading, and how uncertain is the forecast?
View data
monthpassengers (thousands)kindlo 80hi 80lo 95hi 95
−662,688,000,000110actual————
−660,009,600,000105actual————
−657,590,400,000120actual————
−654,912,000,000135actual————
−652,320,000,000136actual————
−649,641,600,000153actual————
−647,049,600,000154actual————
−644,371,200,000140actual————
−641,692,800,000131actual————
−639,100,800,000131actual————
−636,422,400,000129actual————
−633,830,400,000126actual————
−631,152,000,000116actual————
−628,473,600,000122actual————
−626,054,400,000141actual————
−623,376,000,000146actual————
−620,784,000,000157actual————
−618,105,600,000166actual————
−615,513,600,000171actual————
−612,835,200,000170actual————
−610,156,800,000163actual————
−607,564,800,000147actual————
−604,886,400,000144actual————
−602,294,400,000131actual————
−599,616,000,000135actual————
−596,937,600,000139actual————
−594,518,400,000146actual————
−591,840,000,000163actual————
−589,248,000,000174actual————
−586,569,600,000183actual————
−583,977,600,000185actual————
−581,299,200,000179actual————
−578,620,800,000185actual————
−576,028,800,000169actual————
−573,350,400,000154actual————
−570,758,400,000152actual————
−568,080,000,000149actual————
−565,401,600,000151actual————
−562,896,000,000184actual————
−560,217,600,000177actual————
−557,625,600,000185actual————
−554,947,200,000210actual————
−552,355,200,000212actual————
−549,676,800,000210actual————
−546,998,400,000199actual————
−544,406,400,000182actual————
−541,728,000,000181actual————
−539,136,000,000168actual————
−536,457,600,000171actual————
−533,779,200,000181actual————
−531,360,000,000202actual————
−528,681,600,000211actual————
−526,089,600,000208actual————
−523,411,200,000234actual————
−520,819,200,000249actual————
−518,140,800,000233actual————
−515,462,400,000225actual————
−512,870,400,000228actual————
−510,192,000,000204actual————
−507,600,000,000199actual————

First 60 of 156 rows.

Open it in Charts and read its How to read tab. Then look at a result card in Analyze: each estimate comes with its interval for the same reason.

06

Check your understanding

Checkpoint

Check yourself

You want to show how much individual patients varied around a group's mean. Which bars?

Show the answer

Answer: a

SE and CI describe the precision of the mean, and shrink with more data. Only the SD describes individuals.

Check yourself

Bars on a chart get narrower when you collect more data. Which can't they be?

Show the answer

Answer: a

The SD settles near the population's spread, however much data you add.

Check yourself

A published bar chart has error bars and no note about them. What should you do?

Show the answer

Answer: b

SD bars are often about twice as wide as 95% CI bars or more, depending on the sample size. Unlabeled bars can't be interpreted.

07

Recap

Recap
  • SD, SE and CI answer different questions, so always say which you show.
  • Overlap doesn't settle a comparison. Show the interval for the difference.
  • Fan charts and estimation plots keep uncertainty in view.

Concepts in this lesson