A Mathematical Framework and Software Implementation for Uncertainty Visualisation

Harriet Mason · 2026

Read A Mathematical Framework and Software Implementation for Uncertainty Visualisation by Harriet Mason (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2606-24217.txt.

Introduction

Mason builds a mathematical foundation for drawing pictures of uncertain quantities. Statistics runs on random variables, and visualisation is among its most versatile tools, yet no standard methodology exists for visualising a random variable itself, a gap felt most in exploratory data analysis. Mason's 2026 framework treats a visualisation as a continuous function, so feeding it a random variable should respect the continuous mapping theorem, the rule that continuous functions preserve convergence.

Breaking the visual function into components exposes which parts are ill-defined for random inputs; Mason redefines those parts so the whole mapping keeps both exploratory flexibility and statistical soundness. Theory becomes software in ggdibbler, an R package extending ggplot2: users can swap the data behind any plotting function for a random variable, guaranteed the same convergence behaviour as the underlying data. Mason calls the result a complete integration of uncertainty into the grammar of graphics.

Catalog record

CREATORHarriet Mason
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE67 KB
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2606.24217

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

A Mathematical Framework and Software Implementation for Uncertainty Visualisation Harriet Mason Abstract Random variables are the bread and butter of statistics, and visualisations are one of the most versatile tools in the field, so it is a wonder why we do not have a methodology for visualising random variables. This gap is particularly evident for exploratory data analysis (EDA). We address this gap by designing a mathematical framework for visualisation, which argues that we should consider visualisations to be continuous functions. In the case of random variable inputs, this means the visualisations should obey the continuous mapping theorem (CMT). By breaking the visual function down into its components, we are able to identify which parts of the mapping are ill-defined for random variable inputs and redefine them in a way that guarantees both the flexibility required for EDA and the statistical sensibility of CMT. This formalisation represents a complete integration of uncertainty into the grammar of graphics, which we show by implementing the theory in the R package, “ggdibbler”. The ggdibbler software is a “ggplot2” extension that allows users to replace the data of any plotting function with a random variable, with the guarantee that the visualisation will have the same convergence properties as its underlying data. 1 Introduction “Elegant design requires us to think about a theory of graphics, not charts.” 47 Uncertainty visualisation has suffered from a serious lack of formalisation in recent years, which has resulted in an overwhelming tsunami of named plots, touching every corner of the literature. No visualisation problem is too niche as we see visualisations of 2D-intervals called a cross plot, rectangle plot, segment plot, and dandelion plot ( 48 ) . No plot change is too small with simulated outcomes on lines called spaghetti plots (or lasagne plots for gradients) ( 39 ) , on maps called pixel maps ( 17 ) , on bar charts called fuzzygrams ( 16 ) , and when the outcomes are animated, we call them hypothetical outcome plots (HOPs) ( 15 ) . No dead horse is too beaten with probability functions having more names than ways to differentiate them with terms like histogram, density plot, violin plot, ridgeline plot, rain plot, dot plot, and gradient plot, only scratching the surface ( 16 ) . The practice of naming plots turns the field into a race, where authors are incentivised to brand their name on as many graphics as possible, rather than work towards a cohesive theory of visualisation. This problem is as pervasive as it is frustrating. According to 47 , “the computer woefully focuses the mind”, so we might assume that these hyper-specific naming conventions do not extend to the landscape of uncertainty visualisation software. This assumption would be wrong. Even just within the R ecosystem of ggplot2 extensions, there is an overwhelming number of choices, leaving users unclear when each package should be used and for what purposes. A density plot can be made using ggplot2 , ggbeeswarm , ggridges , ggrain , ggdist , ggpointdensity , and ggdensity , all packages with similar descriptions and overlapping designs. This is not to say these packages are pointless: they have thousands of downloads per week and were motivated by a gap in the literature. Rather, this example illustrates the havoc that named plots contribute to our software ecosystem. With this wealth of choices in plots and software, it would be reasonable to assume that the field is meeting the needs of its users, albeit in a messy, roundabout way, but this assumption would be incorrect. Despite this wealth of choice, each package is brittle and constrained by its own set of assumptions. There is a cry for flexibility among the users of uncertainty visualisation software, dating back more than 30 years ( 20 ) . A useful uncertainty visualisation system should allow for exploration with uncertain data from multiple different sources, dimensions, and data types ( 11 , 33 , 19 ) , a flexibility that all current implementations fail to provide. This implies the real gap in uncertainty visualisation is not new plots or bespoke software, but structure, and the flexibility that comes with it. Structure is not so alien to the visualisation community that this is an unreasonable request. Standard statistical graphics have been formalised within the grammar of graphics ( 47 , 45 ) for several decades. This structure has largely been ignored by the uncertainty visualisation community, with the exception of 16 and the ggdist R package. Along with this formalisation of visualisations of univariate probability functions, Kay expressed hope for a single coherent uncertainty visualisation framework. This single unified framework, and its implementation in the ggdibbler package, is what will be discussed in the rest of this paper. 2 A motivating example We are going to build our uncertainty visualisation system upon a simple assumption based on the existing literature: the input for an uncertainty visualisation is a data set where every cell is a random variable ( 16 ) which contains all the quantified uncertainty we wish to represent ( 23 ) . Once we have our distribution inputs, there is only one question left for our uncertainty visualisation system to solve. What exactly should it do with these distributions? Consider the case of a vector, X , that contains the heights of 15 different women, where each x_{i}\in\mathbb{R} represents one measured height. If we feed this vector into a density plot function, such as geom_density() from ggplot2 , how should it behave? Hopefully, this case is obvious, and the output of this function is shown in the ggplot2 example in Figure 1 . A density curve of our data is estimated and displayed using a line geometry. This is a straightforward example, but what happens when our input is a distribution? This can occur if, for example, the tool used to record the heights has an inherent measurement error. Now, we have a vector, X , of 15 distributions, where each \textbf{x}_{i}\sim N(x_{i},\sigma_{i}) , where x_{i}\in X is the recorded value, and \sigma_{i} is an estimated variance based on the environmental conditions of the measurement. There are two routes we can take when it comes to visualising this estimate. The second plot in Figure 1 is made using ggdist , and it shows the case where we are interested in the distribution of each individual measurement. The third plot is made using ggdibbler , which places the emphasis on the full data density but carries forward the variability in the density that comes with having distributional inputs. Figure 1 : Alternative interpretations of how to render a density plot when the input is a set of distributions describing uncertainty of measurements, according to three plotting packages: (a) ggplot2 forms the density from the mean values, (b) ggdist puts the distribution on each observation, treating uncertainty as signal, (c) ggdibbler shows the densities for multiple samples, which puts the focus on how the density might look given the uncertainty. These differences illustrate how uncertainty is interpreted in different ways. Which is correct? The distinction between the two approaches presented in Figure 1 is the same signal and noise paradigm presented by 23 . In the ggdist plot, we

Read the complete text