Error Bars
Error bars are the little “whiskers” you often see on top of points or bars in a chart. They’re a visual way to say: “this number isn’t exact—there’s uncertainty or variation around it.”
What error bars represent
An error bar shows a range around a plotted value (like a mean, a prediction, or an accuracy score). That range can represent different things, depending on what you choose:
- Standard deviation (SD): how spread out individual data points are around the mean (variability in the data).
- Standard error (SE): how uncertain the estimated mean is, due to finite sample size.
- Confidence interval (CI) (often 95%): a plausible range for the true underlying value, given your data and assumptions.
- Min–max or percentile ranges: the observed range or a robust spread (useful with skewed data).
Concrete examples
- House prices: Plot average sale price by neighborhood with 95% CI error bars. Wide bars can indicate few sales or high price variability.
- Exam scores: Show mean score per class with SD error bars to highlight which classes have more mixed performance.
- Medical measurements: Compare average blood pressure across treatments with CI bars to communicate uncertainty, not just differences in means.
Why they matter in AI/ML
In machine learning, single numbers can be misleading. Error bars help you judge whether an apparent improvement is real or just noise:
- Model evaluation: Accuracy/F1 across cross-validation folds can be shown with SD/SE bars.
- Training stability: Plot learning curves with error bars across random seeds.
- A/B tests: Show uplift with confidence intervals to avoid overclaiming.
Error Bars are graphical markers on a plot that show uncertainty or variability around a point estimate, such as a mean, proportion, or model metric. They typically represent a standard deviation, standard error, or a confidence interval, helping distinguish real differences from noise. In AI/ML, they support reliable model comparison and reporting. Example: plotting cross-validation accuracy with 95% confidence-interval error bars across models.
Imagine you’re telling a friend how long your commute takes. You might say “about 30 minutes,” but some days it’s 25 and other days it’s 40. Error bars are like showing that “wiggle room” on a chart.
On a graph, an error bar is a little line (often with caps) that extends above and below a point or bar to show how uncertain or variable that number is. In statistics and AI/ML, error bars commonly represent things like a range of typical variation (spread) or uncertainty around an average result, helping you see whether differences between results are likely meaningful or just noise.