Skip to content

Two-tiered and graded confidence intervals

baduncertaintyjudgmentCleveland 1994 p. 219Wilke 2019 p. 190Aigner 2023 p. 286

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”

William S. Cleveland, "The Elements of Graphing Data", revised edition, p. 189.

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).

CVD preview

Before

A single 95% whisker makes every point inside the interval look equally plausible and invites readers to read the caps as hard limits.

Download before Python code

After

Thick inner 50% bars layered over thinner outer 95% bars show central concentration alongside tail uncertainty.

Download after Python code

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).

Values used in both charts
ServiceChecksMean bill (USD)50% CI half-width95% CI half-width
Fri Lunch712.850.722.11
Thur Lunch6117.660.692
Fri Dinner1219.661.845.36
Sat Dinner8720.440.691.99
Sun Dinner7621.410.681.99