# What are "error bars"?

**URL:** <https://boards.straightdope.com/t/what-are-error-bars/927266>\
**Category:** Factual Questions\
**Created:** [December 5, 2020, 4:41am UTC](https://boards.straightdope.com/t/what-are-error-bars/927266 "2020-12-05T04:41:42Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Northern\_Piper](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/northern_piper/32/5304_2.png) [@Northern\_Piper](https://boards.straightdope.com/u/Northern_Piper)\
**Post date:** [December 5, 2020, 4:41am UTC](https://boards.straightdope.com/t/what-are-error-bars/927266/1 "2020-12-05T04:41:42Z")

</div>

I see this phrase frequently in discussions of statistical analysis, but I’ve got no idea what it means? Is it something like margin of error?

---

<div class="post-metadata">

**Author:** ![kenobi\_65](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/kenobi_65/32/13178_2.png) [@kenobi\_65](https://boards.straightdope.com/u/kenobi_65)\
**Post date:** [December 5, 2020, 4:46am UTC](https://boards.straightdope.com/t/what-are-error-bars/927266/2 "2020-12-05T04:46:54Z")

</div>

It’s related to margin of error. Typically, they’re used to show the plus/minus range around the reported value that represents some level of variability or margin of error – because it could be any of several measures (standard deviation, standard error, or confidence interval, among others), if the chart is built correctly, it should indicate what the error bars represent.

---

<div class="post-metadata">

**Author:** ![Northern\_Piper](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/northern_piper/32/5304_2.png) [@Northern\_Piper](https://boards.straightdope.com/u/Northern_Piper)\
**Post date:** [December 5, 2020, 5:18am UTC](https://boards.straightdope.com/t/what-are-error-bars/927266/3 "2020-12-05T05:18:30Z")

</div>

Why are they called bars?

---

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [December 5, 2020, 5:22am UTC](https://boards.straightdope.com/t/what-are-error-bars/927266/4 "2020-12-05T05:22:48Z")

</div>

Because it’s usually visualized as a vertical (bar shaped) line around the data point in question.

---

<div class="post-metadata">

**Author:** ![kenobi\_65](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/kenobi_65/32/13178_2.png) [@kenobi\_65](https://boards.straightdope.com/u/kenobi_65)\
**Post date:** [December 5, 2020, 5:23am UTC](https://boards.straightdope.com/t/what-are-error-bars/927266/5 "2020-12-05T05:23:32Z")

</div>

They’re called “error bars” because they are typically shown on bar charts as a thin vertical bar (shaped sort of like an I-beam) that extends above and below the top of the main bar itself, as shown below:

[![](https://pythonforundergradengineers.com/images/bar_plot_with_error_bars.png) ](https://pythonforundergradengineers.com/images/bar_plot_with_error_bars.png)

---

<div class="post-metadata">

**Author:** ![Northern\_Piper](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/northern_piper/32/5304_2.png) [@Northern\_Piper](https://boards.straightdope.com/u/Northern_Piper)\
**Post date:** [December 5, 2020, 5:28am UTC](https://boards.straightdope.com/t/what-are-error-bars/927266/6 "2020-12-05T05:28:59Z")

</div>

Interesting. So in that graph, the three bars show the plus-or-minus for the coefficient of thermal expansion for each of those elements?

---

<div class="post-metadata">

**Author:** ![kenobi\_65](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/kenobi_65/32/13178_2.png) [@kenobi\_65](https://boards.straightdope.com/u/kenobi_65)\
**Post date:** [December 5, 2020, 5:31am UTC](https://boards.straightdope.com/t/what-are-error-bars/927266/7 "2020-12-05T05:31:19Z")

</div>

That’s how I’d interpret it, yes. Though, the chart lacks a label to tell us what, exactly, those error bars represent (i.e., is it one standard deviation, a 95% confidence interval, etc.).

(It’s not my chart; I just did a Google image search for a chart with error bars that was good-sized and clear.)

---

<div class="post-metadata">

**Author:** ![kenobi\_65](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/kenobi_65/32/13178_2.png) [@kenobi\_65](https://boards.straightdope.com/u/kenobi_65)\
**Post date:** [December 5, 2020, 5:34am UTC](https://boards.straightdope.com/t/what-are-error-bars/927266/8 "2020-12-05T05:34:31Z")

</div>

This article tells a little more about how error bars work:

> [@](#):
>
> Error Bars help to indicate estimated error or uncertainty to give a general sense of how precise a measurement is. This is done through the use of markers drawn over the original graph and its data points. Typically, Error bars are used to display either the [standard deviation](https://en.wikipedia.org/wiki/Standard_deviation), [standard error](https://en.wikipedia.org/wiki/Standard_error), [confidence intervals](https://en.wikipedia.org/wiki/Confidence_interval) or the minimum and maximum values in a ranged dataset.
> 
> To visualise this information, Error Bars work by drawing cap-tipped lines that extend from the centre of the plotted data point (or edge with [Bar Charts](https://datavizcatalogue.com/methods/bar_chart.html)). The length of an Error Bar helps reveal the uncertainty of a data point: a short Error Bar shows that values are concentrated, signalling that the plotted average value is more likely, while a long Error Bar would indicate that the values are more spread out and less reliable. Also depending on the type of data, the length of each pair of Error Bars tend to be of equal length on both sides. However, if the data is skewed, then the lengths on each side would be unbalanced.

> **[Error Bars - Learn about this chart and tools to create it](https://datavizcatalogue.com/methods/error_bars.html)**
>
> Error Bars help to indicate estimated error or uncertainty to give a general sense of how precise a measurement is. Read more about this chart here.

---

<div class="post-metadata">

**Author:** ![DPRK](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DPRK](https://boards.straightdope.com/u/DPRK)\
**Post date:** [December 5, 2020, 12:08pm UTC](https://boards.straightdope.com/t/what-are-error-bars/927266/9 "2020-12-05T12:08:34Z")

</div>

It should be standard practice to communicate clearly exactly what your error bars mean. In the simplest case, you are estimating a parameter and have an estimate of its standard deviation, assuming a Gaussian distribution. More generally, you could report a Bayesian interval that is supposed to have a certain probability of containing the true value, or you similarly construct a confidence interval that covers the true value with 95% or 99% probability. For example, if your measurements follow a Gaussian distribution, you can be 95% confident that the true value is within plus or minus 1.96 standard deviations of the measured average. Or, if it has a Poisson distribution and you detect let’s say a single event, you are 95% sure the mean is within 0.05 and 5.14; in that case the confidence interval is not symmetrically plus and minus around your measurement.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [December 5, 2020, 2:30pm UTC](https://boards.straightdope.com/t/what-are-error-bars/927266/10 "2020-12-05T14:30:51Z")

</div>

> [@kenobi\_65](#):
>
> That’s how I’d interpret it, yes. Though, the chart lacks a label to tell us what, exactly, those error bars represent (i.e., is it one standard deviation, a 95% confidence interval, etc.).

The graph of the spectrum of the cosmic microwave background radiation is usually shown with 1000-sigma error bars, because they’d be too small to see otherwise.

> **[Science](https://xkcd.com/54/)**
>
> Bonus points if you can identify the science in question

---

<div class="post-metadata">

**Author:** ![DavidNRockies](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/davidnrockies/32/6279_2.png) [@DavidNRockies](https://boards.straightdope.com/u/DavidNRockies)\
**Post date:** [December 5, 2020, 2:43pm UTC](https://boards.straightdope.com/t/what-are-error-bars/927266/11 "2020-12-05T14:43:17Z")

</div>

If you have a couple minutes to watch part of a video – just enough to see his test methodology …

[![](https://img.youtube.com/vi/_vR15u0vmms/maxresdefault.jpg "Which Super Glue Brand is the Best? Let's find out!") ](https://www.youtube.com/watch?v=_vR15u0vmms)

… then my error bar comment may make some tangible sense:

> in case it hasn’t been raised before … you could consider doing a ‘control’ test on videos like your super glue tests, where …

> you glue 10 or 20 or 50 or 100 bolt heads to the metal plate using the same glue for every test bolt. This would help you understand how much inherent variability there is in your testing methodology and establish your ‘margin of error’ for the actual glue-by-glue testing;

> you then use ‘error bars’ on your graphs that represent the error teased out in this initial ‘control testing.’ When two products yield different results but they are within the margin of error … that’s good to know.
