Two-tiered and graded confidence intervals
Back to the Chart galleryxpd charts
Where is the true mean bill most concentrated versus plausible at the outer 95% bound?
Plotly Express Tips dataset, mean total bill by day and meal service.
“Graded error bars show multiple confidence levels at once so readers see where probability mass concentrates”
Also covered in Cleveland 1994 (3.14 Statistical Variation, p. 219), Wilke 2019 (16 Visualizing Uncertainty, p. 190), Aigner 2023 (Appendix A Survey of Visualization Techniques, p. 286).
Before
Interactive chart unavailable.
After
Interactive chart unavailable.
Values
Friday lunch averages 12.85 USD with a wide 95% CI while Sunday dinner averages 21.41 USD.
Inner 50% intervals separate Thursday lunch (17.66 USD) cleanly from weekend dinners (20.44 to 21.41 USD).
| Service | Checks | Mean bill (USD) | 50% CI half-width | 95% CI half-width |
|---|---|---|---|---|
| Fri Lunch | 7 | 12.85 | 0.72 | 2.11 |
| Thur Lunch | 61 | 17.66 | 0.69 | 2 |
| Fri Dinner | 12 | 19.66 | 1.84 | 5.36 |
| Sat Dinner | 87 | 20.44 | 0.69 | 1.99 |
| Sun Dinner | 76 | 21.41 | 0.68 | 1.99 |