A General Approach to Visualizing Uncertainty in Statistical Graphics
Bernarda Petek, David Nabergoj, Erik Štrumbelj
TL;DR
This paper introduces a general framework for visualizing uncertainty in static 2-D graphics by treating a base visualization as a function of an uncertain quantity, which induces a distribution over images. By sampling from the base distribution and aggregating the resulting base-visualization outputs, it yields a single uncertainty-encoded image with formal coverage guarantees, without explicitly computing uncertainty. A reference implementation, bootplot, demonstrates IID-based applicability and a broad design space across common and novel visualization channels. The work bridges traditional sample-based overlays with formal inference, offering a practical tool for teaching, rapid prototyping, and uncovering flaws in base visualizations while enabling visual inference tasks.
Abstract
We present a general approach to visualizing uncertainty in static 2-D statistical graphics. If we treat a visualization as a function of its underlying quantities, uncertainty in those quantities induces a distribution over images. We show how to aggregate these images into a single visualization that represents the uncertainty. The approach can be viewed as a generalization of sample-based approaches that use overlay. Notably, standard representations, such as confidence intervals and bands, emerge with their usual coverage guarantees without being explicitly quantified or visualized. As a proof of concept, we implement our approach in the IID setting using resampling, provided as an open-source Python library. Because the approach operates directly on images, the user needs only to supply the data and the code for visualizing the quantities of interest without uncertainty. Through several examples, we show how both familiar and novel forms of uncertainty visualization can be created. The implementation is not only a practical validation of the underlying theory but also an immediately usable tool that can complement existing uncertainty-visualization libraries.
