Worked Examples
Validate uncertainty displays — Visualization & Graphing
Validate uncertainty displays — Visualization & Graphing Cross-application area: Visualization & Graphing Status: Initial scientific graphics guidance; platform-specific features not verified. Scientific objective Evaluate whether
Validate Uncertainty Displays — Visualization & Graphing
Knowledge Base Area: Visualization & Graphing
Audience: Researchers, data analysts, scientific software developers, and reviewers
Article Classification: Scientific Validation and Quality Assurance
Estimated Reading Time: 7 minutes
Verification Status: Scientific guidance — platform verification pending
1. Scientific Objective
Uncertainty displays communicate the limitations, variability, and precision of scientific measurements, statistical estimates, and model predictions. Their purpose is to help readers interpret scientific evidence without implying a degree of certainty that the underlying data or methods cannot support.
An effective visualization must represent uncertainty quantitatively and explain what the uncertainty means.
The central validation requirement is that readers can distinguish confidence intervals, prediction intervals, and measurement uncertainty.
These quantities describe different aspects of scientific evidence and must not be presented interchangeably.
Validation should establish whether the visualization:
- Represents the appropriate statistical or measurement uncertainty.
- Uses intervals and distributions consistent with the analytical method.
- Preserves the meaning of observation units, confidence or coverage levels, and model assumptions.
- Communicates uncertainty without exaggeration or concealment.
- Allows independent reconstruction of the plotted quantities.
- Provides an accessible explanation of the results and limitations.
2. Understand the Types of Uncertainty
2.1 Measurement Uncertainty
Measurement uncertainty describes the uncertainty associated with a measured quantity, taking account of relevant measurement processes, calibration, resolution, environmental conditions, and other recognized sources.
It should be evaluated using a defined measurement model and an appropriate uncertainty framework.
Measurement uncertainty may include random and systematic contributions. It is not necessarily equivalent to the observed spread of repeated measurements.
Example: A laboratory measurement may include uncertainty associated with instrument calibration, sample preparation, and analytical precision.
2.2 Confidence Intervals
A frequentist confidence interval is constructed through a procedure designed to achieve a specified long-run coverage probability under the assumed statistical model.
For example, a 95% confidence interval procedure is designed so that approximately 95% of intervals constructed across repeated samples contain the relevant fixed parameter, subject to model assumptions.
A particular frequentist 95% confidence interval should not be described as assigning a 95% probability to the fixed parameter lying within that specific interval.
Confidence intervals commonly describe uncertainty in estimated population means, regression coefficients, treatment effects, and other statistical parameters.
2.3 Prediction Intervals
Prediction intervals describe uncertainty concerning future or otherwise unobserved outcomes under a specified predictive model.
Unlike a confidence interval for a mean or model parameter, a prediction interval may need to account for both estimation uncertainty and variation in individual outcomes.
Prediction intervals are often wider than corresponding confidence intervals for an estimated mean, although their relative widths depend on the model and the quantities being compared.
Example: A prediction interval may describe a range for an individual future environmental observation rather than uncertainty in the estimated average concentration.
2.4 Standard Deviation and Standard Error
Standard deviation describes the dispersion of values around their mean. Standard error describes the sampling variability of an estimator under a specified statistical model.
These quantities serve different purposes.
A chart displaying one standard deviation around a mean must not be labeled as a 95% confidence interval unless an appropriate statistical derivation supports that interpretation.
2.5 Bayesian Credible Intervals
A Bayesian credible interval summarizes a specified proportion of a posterior probability distribution, conditional on the model, prior assumptions, and observed data.
For example, a 95% credible interval may contain 95% of the posterior probability for a parameter.
Credible intervals and frequentist confidence intervals can appear visually similar but have different interpretations. Figures should identify which framework was used.
2.6 Model and Scenario Uncertainty
Scientific models introduce uncertainty through parameter estimates, structural assumptions, input data, calibration, and future conditions.
Scenario ranges should not automatically be labeled as confidence or prediction intervals. A range between alternative scenarios does not necessarily carry a probabilistic coverage interpretation.
3. Define the Scientific Context
Before producing or validating an uncertainty display, identify the scientific quantity being represented and the inference the figure is intended to support.
Record:
- Research question and intended interpretation.
- Source dataset, version, and provenance.
- Measurement units and variable definitions.
- Sample size and sampling method.
- Temporal and geographic coverage.
- Statistical estimator or measurement model.
- Uncertainty type and calculation method.
- Confidence, credibility, or coverage level, where applicable.
- Relevant assumptions, exclusions, and limitations.
Validation principle: Uncertainty cannot be interpreted correctly without understanding the quantity being estimated, measured, or predicted.
4. Validate the Underlying Calculations
Step 1 — Verify Source Data
Compare the visualization inputs with the authoritative dataset. Confirm variable types, units, missing observations, quality flags, and any transformations.
Distinguish measured zero values from missing or censored observations.
Preserve an immutable source reference wherever possible.
Step 2 — Identify the Uncertainty Method
Determine whether the intervals were produced using analytical formulas, repeated measurements, resampling, bootstrap methods, Monte Carlo simulation, Bayesian posterior inference, or another documented procedure.
The chosen method must be appropriate to the scientific question and available data.
Do not infer the uncertainty method from the appearance of error bars or shaded regions.
Step 3 — Recalculate Independently
Reproduce the reported estimates and uncertainty bounds using the original data and documented assumptions.
Where feasible, use a separate calculation implementation or independently validated reference fixture.
Check numerical precision, interval ordering, sample-size treatment, and the treatment of missing values.
Step 4 — Inspect Statistical Assumptions
Evaluate whether the calculations depend on assumptions concerning independence, distributional form, sample representativeness, measurement error, or model specification.
For repeated observations, spatially correlated measurements, or time-series data, uncertainty estimates may be misleading if dependence is ignored.
Expected result: Reported intervals are supported by a defensible method with transparent assumptions and reproducible calculations.
5. Validate the Visualization
The rendering process must preserve the meaning of the calculated uncertainty quantities.
5.1 Error Bars
Check whether error bars represent standard deviation, standard error, confidence intervals, measurement uncertainty, or another explicitly defined quantity.
Ensure legends and captions identify the uncertainty type and applicable confidence or coverage level.
5.2 Shaded Uncertainty Bands
Shaded regions are frequently used with time-series estimates, regression lines, simulations, and model forecasts.
Validate whether the displayed bounds correspond to uncertainty in an estimated relationship, predicted observations, or a scenario envelope.
Do not treat every shaded band as a confidence interval.
5.3 Probability Distributions
For histograms, density plots, and distribution-based graphics, verify binning, normalization, support boundaries, and probability interpretation.
Distinguish empirical distributions from fitted probability models and posterior distributions.
5.4 Axis Scales and Transformations
Inspect axis limits, logarithmic transformations, normalization, and other visual scaling choices.
A truncated axis can visually exaggerate relatively small differences. Logarithmic scales require appropriate handling of zero, negative values, and interval bounds.
For nonlinear transformations, uncertainty intervals may become asymmetric even when they were symmetric on the original scale.
5.5 Temporal and Spatial Uncertainty
Time-series visualizations should distinguish observed variability, uncertainty in fitted trends, and forecast uncertainty.
Geospatial visualizations should identify spatial resolution, classification choices, missing regions, interpolation methods, and relevant positional uncertainty.
Interpolation may introduce additional uncertainty that should not be concealed by a visually continuous surface.
6. Reference Uncertainty Data Contract
Scientific rendering systems should require explicit uncertainty semantics rather than inferring them from numeric arrays.
The following JSON illustrates a proposed contract. It is not a verified Sustainable Catalyst API schema.
{
"schema_version": "1.0.0",
"figure_id": "example-uncertainty-001",
"source": {
"artifact_id": "synthetic-dataset-001",
"version": "1"
},
"estimate": {
"value": 12.4,
"unit": "mg/L",
"quantity": "population_mean_estimate"
},
"uncertainty": {
"type": "confidence_interval",
"framework": "frequentist",
"confidence_level": 0.95,
"method": "documented_estimator",
"lower": 10.8,
"upper": 14.1
},
"review": {
"scientific_validation": "pending",
"platform_verification": "pending"
}
}
The values in this example are synthetic and do not represent actual research measurements.
Production schemas should validate the declared uncertainty type, estimator, units, interval bounds, and method metadata. They should not assume that all interval types require identical numerical constraints.
7. Automated Testing and Acceptance Checks
Validation should test both numerical correctness and visual interpretation.
| Test | Acceptance Criterion |
|---|---|
| Source fidelity | Plotted estimates match authoritative source calculations. |
| Uncertainty classification | Confidence, prediction, measurement, and other uncertainty types are explicitly distinguished. |
| Interval calculation | Reported bounds match independently validated calculations. |
| Interval semantics | Captions and legends accurately describe statistical meaning. |
| Missing observations | Missing values are not silently replaced with zero or fabricated estimates. |
| Axis transformations | Scales preserve scientifically defensible comparisons and valid domains. |
| Extreme numerical values | Very large, small, or asymmetric intervals are handled without silent clipping. |
| Reproducibility | Equivalent calculations can be regenerated from recorded inputs and methods. |
| Accessibility | Essential uncertainty information is available through appropriate accessible alternatives. |
| Export consistency | PDF, image, and interactive formats retain interval meanings, units, and relevant annotations. |
Automated screenshot testing can detect visual regressions but cannot independently establish statistical correctness.
Use small reference datasets with independently calculated uncertainty bounds to test rendering implementations.
8. Accessibility and Scientific Communication
Uncertainty displays must remain interpretable to readers using different devices, visual capabilities, and assistive technologies.
Ensure:
- Uncertainty types are explicitly identified in captions or legends.
- Intervals are distinguishable through more than color alone.
- Essential information is available in accompanying text or accessible tables.
- Numerical values and confidence levels remain readable when figures are resized.
- Interactive controls can be operated with a keyboard.
- Screen-reader descriptions communicate the principal estimate and its uncertainty.
For complex figures, provide a longer explanation identifying the method and limitations rather than relying exclusively on short alternative text.
9. Sustainable Catalyst Application Context
The following describes intended responsibilities. It does not establish that all integrations are operational in production.
| Application | Intended Responsibility |
|---|---|
| Library | Preserve data sources, methodological references, and provenance. |
| Lab | Support experimental analysis and uncertainty evaluation. |
| Workbench | Generate reproducible calculations, distributions, intervals, and scientific figures. |
| Site Intelligence | Support spatial uncertainty assessment and geographic data interpretation. |
| Decision Studio | Communicate model uncertainty, scenario assumptions, and decision sensitivity. |
| Workspace | Coordinate scientific review, project ownership, and validation evidence. |
| Research | Associate reviewed uncertainty estimates with research outputs and publications. |
| Reporting & Publication Studio | Prepare versioned figures with explanatory captions and appropriate uncertainty disclosures. |
Potential visualization technologies include Plotly, Matplotlib, Vega-Lite, and other scientific rendering frameworks. The accuracy and accessibility of each implementation require independent validation.
10. Reproducibility and Evidence Requirements
Preserve enough information to reconstruct the uncertainty calculations and final visualization.
A reproducibility package should include:
- Authoritative input dataset and version.
- Relevant methodology and statistical assumptions.
- Calculation scripts or reproducible notebook.
- Software dependencies and versions.
- Random seeds where stochastic methods are used, together with relevant simulation settings.
- Figure specification and rendering configuration.
- Color, scale, layout, and labeling rules.
- Accessible numerical representation.
- Generated artifact identifiers and cryptographic hashes.
- Scientific review and validation records.
Reproducible rendering ensures the figure can be regenerated. It does not establish that the underlying data, sampling procedure, or statistical model is scientifically valid.
11. Common Problems and Corrective Actions
| Problem | Likely Cause | Corrective Action |
|---|---|---|
| Confidence and prediction intervals appear identical | Incorrect interval selection or calculation. | Verify statistical definitions and source calculations. |
| Error bars are not explained | Missing uncertainty metadata or caption. | Identify the uncertainty type, method, and relevant coverage level. |
| Intervals appear unusually narrow | Ignored variability, dependence, or model uncertainty. | Review sampling assumptions and uncertainty components. |
| Values disappear on logarithmic axes | Invalid domain or rendering behavior. | Inspect transformations and nonpositive values. |
| Different renderers show different bounds | Transformation, mapping, or numerical conversion mismatch. | Compare chart-ready arrays against authoritative interval calculations. |
| Uncertainty is missing from exports | Export configuration or rendering defect. | Validate exported figures independently and preserve supplementary numerical data. |
12. Scientific Review and Publication Readiness
Before presenting an uncertainty display as validated scientific evidence, confirm that the calculation method, underlying source data, uncertainty interpretation, and visual representation have been reviewed appropriately.
Independent reviewers should examine whether the graphic would support a materially different interpretation if its scale, grouping, uncertainty method, or assumptions changed.
Escalate unresolved issues involving inaccurate statistical calculations, misleading uncertainty semantics, inaccessible scientific information, or inconsistencies affecting published conclusions.
Scientific limitation: A visualization is downstream of source data and methodological assumptions. Reproducible rendering cannot correct biased sampling, invalid models, omitted uncertainty components, or mislabeled variables.
13. References and Further Reading
- JCGM. Evaluation of Measurement Data — Guide to the Expression of Uncertainty in Measurement (GUM). JCGM 100:2008.
- JCGM. International Vocabulary of Metrology — Basic and General Concepts and Associated Terms (VIM). JCGM 200:2012.
- National Institute of Standards and Technology (NIST). Engineering Statistics Handbook. https://www.itl.nist.gov/div898/handbook/
- W3C. Web Content Accessibility Guidelines (WCAG) 2.2. https://www.w3.org/TR/WCAG22/
- Plotly. JavaScript Documentation. https://plotly.com/javascript/
These references provide methodological and technical guidance. They do not independently verify Sustainable Catalyst’s deployed scientific visualization functions.
