Show uncertainty honestly in data visualizations

8 steps · about 3 h 55 min · Intermediate

  1. Choose a visual language for uncertainty (guide, Fundamentals of Data Visualization, 40 min)

    Intervals, distributions and hypothetical outcomes answer different uncertainty questions.

  2. Distinguish spread from estimate uncertainty (guide, seaborn documentation, 30 min)

    Standard deviation and confidence intervals communicate different properties of the data.

  3. Draw explicit error bars (reference, Matplotlib documentation, 25 min)

    Control asymmetric bounds and styling while keeping the underlying estimate visible.

  4. Build a continuous uncertainty band (guide, Matplotlib documentation, 25 min)

    A filled band can show an interval around a time series without drawing hundreds of bars.

  5. Show the full observed distribution (guide, seaborn documentation, 40 min)

    Histograms and density views prevent a mean and interval from hiding shape or multiple groups.

  6. Encode interval bands declaratively (reference, Vega-Altair documentation, 25 min)

    A declarative specification keeps fields, aggregates and bounds auditable.

  7. Expose binning choices (guide, Observable Plot documentation, 25 min)

    Distribution appearance changes with bin thresholds, so make that transformation deliberate.

  8. Compare uncertainty-friendly alternatives (guide, Fundamentals of Data Visualization, 25 min)

    Select a final form by the data relationship and audience task, not by decoration.