Worked Examples
Validate scientifically table reproducibility — Reporting Studio
Test whether scientific tables can be regenerated from pinned datasets, calculations, documented transformations, units, and recorded rounding rules.
Application: Reporting Studio
Article classification: Scientific Validation / Table Reproducibility
Related applications: Workbench / Research Lab / Library / Research / Workspace / Citation Studio / Platform Core
Audience: Scientific authors, researchers, statistical reviewers, data engineers, research editors, and quality-assurance personnel
Technical level: Intermediate to advanced
Primary acceptance: Reported values reconcile with saved, versioned computational outputs and accurately communicate the supporting evidence.
Estimated reading time: 16–20 minutes, excluding code execution and independent data review.
1. Research and validation question
Can an independent reviewer regenerate each substantive table value from identified source data, documented transformations, saved computational outputs, and specified formatting rules without silently changing scientific meaning?
Three assertions require separate evidence: numerical equivalence (the displayed value matches the defined calculation), scientific validity (the method and inference are appropriate), and governance integrity (the source, version, rights, and approval state are correct). A matching checksum alone proves none of the latter two.
2. Determine the unit of validation
Validate a specific table revision within a specific report revision—not an ambiguous table title. Identify the report, originating project and organization, authorizing role, source records, calculation version, observational unit, and intended audience. Record whether the table represents observed measurements, derived summaries, model results, or literature synthesis.
| Attribute | Validation requirement |
|---|---|
| Identity | Report ID, report revision, table ID, table revision and caption |
| Sources | Dataset IDs, revisions, permitted locations, applicable licensing and access boundaries |
| Calculation | Method ID, code revision, parameters, filters, grouping, exclusions and dependency versions |
| Values | Units, raw precision, display precision, denominators and uncertainty definitions |
| Artifact | Saved output identity, format, integrity digest and generation time |
| Governance | Reviewer decision, exact-version approval and intended publication status |
3. Freeze the relevant inputs before comparison
Preserve authoritative references to dataset snapshots, calculation parameters, analysis code and saved result artifacts. A stable identifier is not equivalent to a frozen version: identifiers may point to revised content. When checksums are used, document the digest algorithm and the exact bytes being hashed. A hash of rendered HTML may differ from one of the numerical source CSV even when both represent the same observations.
Do not assume that a publication state, green dashboard indicator, or successful HTTP response establishes source reliability or calculation validity.
4. Trace table derivation
Authorized source snapshot
|
v
Validated input schema and units
|
v
Declared exclusions and transformations
|
v
Versioned calculation / statistical method
|
v
Saved numerical result (full precision)
|
v
Declared rounding and display formatting
|
v
Reporting Studio table revision
|
v
HTML / DOCX / PDF representations
Each transformation needs an intelligible reason and, where applicable, a reference to the versioned method. Explain missing observations, measurement normalization, aggregation, interpolation, and any synthetic values. A report table cannot be independently reproduced if its source filters or grouping rules are undocumented.
5. Validate source observations and units
Inspect data types, collection dates, coordinate or temporal reference systems when relevant, unit conversions, significant figures, duplicate observations and missing-value codes. Never mix units inside an aggregated column without explicit conversion. Confirm that the unit stated in the table header is the unit of the saved computation—not merely a display label.
For a conversion from kilograms to grams, the numerical relationship is grams = kilograms × 1000. This simple identity still requires checking whether an upstream dataset already stored values in grams; repeated conversion creates a systematic error.
6. Validate aggregation and denominators
Verify the aggregation unit, count, weighting rule and treatment of missing values. For observations x1 ... xn, an arithmetic mean is mean = sum(xi) / n, where n is the number of included observations. A weighted mean instead uses sum(wi × xi) / sum(wi). These methods are not interchangeable.
Always state the denominator of percentages and rates, especially when the number of valid observations changes between rows or years. Check that totals are not obtained by incorrectly summing averages, percentages, normalized ratios or nonadditive model outputs.
7. Validate rounding and display precision
Keep analytical values at appropriate computational precision. Apply rounding only to the displayed table according to a documented policy. Never treat a displayed decimal as though it were the original measurement.
For example, values 1.245 and 1.255 displayed to two decimals may differ across rounding conventions and binary floating-point representations. Specify the rounding rule where a report requires exact decimal reproducibility. Test that reported totals arise from full-precision calculations, not merely from the sum of separately rounded rows.
8. Validate uncertainty and statistical interpretation
Distinguish a standard deviation, standard error, confidence interval, credible interval, prediction interval, model scenario range, and measurement uncertainty. Define what each interval means, how it was calculated and whether the underlying observations support the reported inference.
Do not infer statistical significance from the visual proximity of table values. If no replicates or error model exist, label the differences as descriptive and avoid unsupported p-values or confidence limits.
9. Reproduce a controlled synthetic table
The following small fixture is purely instructional; it is not real Sustainable Catalyst research. Each observation records a site, treatment and measured quantity in kilograms. Both groups have three observations.
| Site | Group | Measurement (kg) |
|---|---|---|
| S1 | Control | 10.0 |
| S2 | Control | 12.0 |
| S3 | Control | 11.0 |
| S4 | Treatment | 13.0 |
| S5 | Treatment | 15.0 |
| S6 | Treatment | 14.0 |
Expected descriptive results are control mean = 11.00 kg, treatment mean = 14.00 kg, between-group difference = 3.00 kg, and relative difference = approximately 27.27% of the control mean. These quantities do not establish causality, statistical significance or population generalizability.
10. Executable reference calculation
Save the following as table_validation_example.py and run with Python 3. It uses only the standard library and writes a controlled CSV plus an integrity receipt.
import csv
import hashlib
import json
from collections import defaultdict
from decimal import Decimal, ROUND_HALF_UP
from pathlib import Path
OBSERVATIONS = [
("S1", "Control", "10.0"),
("S2", "Control", "12.0"),
("S3", "Control", "11.0"),
("S4", "Treatment", "13.0"),
("S5", "Treatment", "15.0"),
("S6", "Treatment", "14.0"),
]
def calculate(rows):
groups = defaultdict(list)
seen = set()
for site, group, raw_value in rows:
if site in seen:
raise ValueError("Duplicate observation ID")
seen.add(site)
if group not in {"Control", "Treatment"}:
raise ValueError("Unknown group")
value = Decimal(raw_value)
if not value.is_finite():
raise ValueError("Non-finite measurement")
groups[group].append(value)
if set(groups) != {"Control", "Treatment"}:
raise ValueError("Required group missing")
means = {
name: sum(values) / Decimal(len(values))
for name, values in groups.items()
}
if means["Control"] == 0:
raise ValueError("Undefined relative difference")
diff = means["Treatment"] - means["Control"]
relative = diff / means["Control"] * Decimal(100)
return groups, means, diff, relative
def display(value):
return str(value.quantize(Decimal("0.01"), rounding=ROUND_HALF_UP))
def publish_fixture(directory="synthetic-table-output"):
out = Path(directory)
out.mkdir(parents=True, exist_ok=True)
groups, means, diff, relative = calculate(OBSERVATIONS)
path = out / "group_summary.csv"
with path.open("w", newline="", encoding="utf-8") as handle:
writer = csv.writer(handle)
writer.writerow(["group", "n", "mean_kg"])
for name in ("Control", "Treatment"):
writer.writerow([name, len(groups[name]), display(means[name])])
assert means["Control"] == Decimal("11.0")
assert means["Treatment"] == Decimal("14.0")
assert diff == Decimal("3.0")
receipt = {
"fixture": "synthetic_group_comparison",
"status": "synthetic_numeric_pass",
"difference_kg": display(diff),
"relative_difference_percent": display(relative),
"rounding": "decimal_HALF_UP_2dp",
"csv_sha256": hashlib.sha256(path.read_bytes()).hexdigest(),
"scientific_review": "not_tested",
"platform_export_review": "not_tested"
}
(out / "receipt.json").write_text(
json.dumps(receipt, indent=2), encoding="utf-8"
)
return receipt
if __name__ == "__main__":
print(json.dumps(publish_fixture(), indent=2))
Execute python3 table_validation_example.py. The generated CSV is a synthetic computational output, not an export from Reporting Studio. Its SHA-256 digest identifies the exact generated CSV bytes; it does not prove that a Reporting Studio table or PDF reproduces them.
11. Independent numerical tests and negative cases
Save as test_table_validation_example.py next to the example script. These tests validate limited fixture behavior, not the scientific correctness of real research.
import unittest
from decimal import Decimal
from table_validation_example import OBSERVATIONS, calculate, display
class TableValidationTests(unittest.TestCase):
def test_means_and_difference(self):
groups, means, diff, relative = calculate(OBSERVATIONS)
self.assertEqual(len(groups["Control"]), 3)
self.assertEqual(means["Control"], Decimal("11.0"))
self.assertEqual(means["Treatment"], Decimal("14.0"))
self.assertEqual(diff, Decimal("3.0"))
self.assertEqual(display(relative), "27.27")
def test_duplicate_site_rejected(self):
with self.assertRaises(ValueError):
calculate(OBSERVATIONS + [OBSERVATIONS[0]])
def test_unknown_group_rejected(self):
with self.assertRaises(ValueError):
calculate([("S9", "Unknown", "5")] + OBSERVATIONS)
def test_nonfinite_measurement_rejected(self):
with self.assertRaises(ValueError):
calculate([("S1", "Control", "NaN")] + OBSERVATIONS[1:])
def test_missing_group_rejected(self):
with self.assertRaises(ValueError):
calculate([row for row in OBSERVATIONS if row[1] == "Control"])
def test_rounding_policy(self):
self.assertEqual(display(Decimal("1.245")), "1.25")
if __name__ == "__main__":
unittest.main()
Run python3 -m unittest -v test_table_validation_example.py. The suite defines six test cases. Their actual pass/fail result must be obtained through execution; the tests do not validate source rights, tenant isolation, manuscript approval, or real-platform artifact consistency.
12. Verify the saved output against the displayed table
Compare the saved result artifact to the Reporting Studio table at the cell level. Check column order, row labels, grouping, raw and displayed precision, units, missing-value representations, footnotes, totals and denominators. Resolve any mismatch back to its source rather than editing table cells until they appear consistent.
For a production acceptance test, identify each cell by a stable logical key and compare it with the approved computation and display rule. Differences caused by permitted rounding must be distinguishable from differences caused by stale data, unauthorized edits, schema drift or incorrect transformation.
13. Check scientific interpretation separately
A correctly reproduced table may still communicate a misleading inference. A scientific reviewer should assess whether sampling, comparisons, model assumptions, denominators and uncertainty justify the claims in the surrounding report.
In the synthetic fixture, the 3 kg mean difference is a valid calculation for the six fabricated observations. It does not imply an experimental treatment effect, because no randomization, measurement protocol, replicate structure or inferential analysis is supplied.
14. Validate provenance and permitted reuse
Trace each table to the authoritative dataset and method. Record who created the result, who reviewed the scientific interpretation, and which version is authorized for publication. Apply object-level and field-level access checks to table data, captions, aggregates, downloads and public API responses. Aggregated results may still disclose sensitive information when cells are sparse or source populations are small.
Do not copy restricted data into a public report to repair a missing table. Where source data cannot be shared, provide lawful method and provenance information and describe the reproducibility limitations.
15. Verify version integrity and stale results
Check that the table references the exact analytical output selected for the current report revision. A refreshed editor must not silently substitute a newly regenerated result under an older approval. If data or analytical methods change materially, create a new controlled table revision, reevaluate affected claims, and obtain the required review before publication.
Where a save or render request times out, read the authoritative state before retrying. Do not assume failure means no write occurred.
16. Validate accessible table semantics
Use semantic HTML <table>, <caption>, <thead> and scoped header cells. Avoid tables created from images or whitespace. Include units in appropriate headers, define abbreviations in notes, and provide accessible explanations for complex multi-level headings.
Review the final artifact with actual keyboard and screen-reader testing where appropriate. Passing a numeric comparison does not establish WCAG conformance.
17. Check HTML, DOCX and PDF separately
| Output | Required comparison |
|---|---|
| HTML | Numerical cell values, labels, semantic headers, notes and source references |
| DOCX | Editable table cells, consistent numerical content, repeating headers and readable layout |
| Numerical content, no clipped columns, correct pagination, readable footnotes and tagging where supported |
Inspect actual exported bytes and the rendered output. An artifact successfully generated by a document service may still contain the wrong table revision or lose important scientific metadata.
18. Negative acceptance and failure matrix
| Case | Expected treatment |
|---|---|
| Missing source | Block unverifiable value or mark unresolved; do not fabricate data |
| Wrong dataset revision | Reject or hold publication of stale output |
| Invalid unit conversion | Flag numerical mismatch and require correction |
| Duplicate observation | Apply documented deduplication or reject, never silently count twice |
| Missing denominator | Hold percentage or rate claim until defined |
| Unsupported uncertainty | Remove or qualify inferential statement |
| Wrong organization / revoked access | Deny protected reads and writes |
| Incompatible table schema | Typed validation error; preserve accepted version |
| Duplicate write / uncertain timeout | Resolve committed state; require idempotent recovery |
| Restricted values in public export | Block disclosure and escalate |
| Stale cache or export | Reconcile artifact with authorized report revision |
| Backup restore | Recover correct provenance and enforce current restriction or erasure decisions |
19. Independent review responsibilities
The analyst validates source selection and calculations; the scientific reviewer evaluates methods, uncertainty and interpretation; the editor confirms table readability and consistency with the narrative; the rights or privacy authority evaluates permitted disclosure; and the publication authority approves the exact report revision. One role should not be presumed to have completed another role’s review.
20. Proposed integration boundaries
| Application | Intended role |
|---|---|
| Library | Source identity, dataset metadata and access rights |
| Workbench / Research Lab | Reproducible calculations, numerical validation and analytical artifacts |
| Research | Scientific object and derivation relationships |
| Reporting Studio | Report-table composition, exact-version binding and document exports |
| Workspace | Review assignments, decisions and publication governance |
| Platform Core | Identity, authorization and tenant isolation |
These are intended boundaries, not a verified list of currently deployed connections.
21. Production-validation acceptance matrix
| Criterion | Pass condition |
|---|---|
| Source identity | Exact permitted source revisions resolve |
| Calculation | Saved output independently reproduces from documented inputs |
| Cell reconciliation | All material values match the output and rounding contract |
| Units and denominators | All units, bases and exclusions are correct and stated |
| Statistical reporting | Uncertainty, inference and limitations supported by method |
| Provenance | Dataset, method and table revisions traceable |
| Access control | Unauthorized data and aggregate disclosure prevented |
| Export consistency | HTML, DOCX and PDF match accepted scientific content |
| Accessible structure | Applicable semantics and interaction checks satisfied |
| Review and authorization | Approved for the exact report revision and intended audience |
| Recovery | Approved state reconstructs without bypassing rights or retention restrictions |
Record Pass, Fail, Not Tested or Not Applicable for each criterion. A published-ready decision is not justified when material numerical, scientific, authorization or privacy requirements remain failed or untested.
22. Example scientific acceptance receipt
{
"schema_version": "table-scientific-acceptance-example-v1",
"classification": "illustrative_not_deployed",
"report_id": "synthetic-report-017",
"report_revision": "v1",
"table_id": "synthetic-table-01",
"table_revision": "v1",
"dataset_revision": "synthetic-fixture-01",
"checks": {
"source_identity": "not_tested",
"numerical_recalculation": "not_tested",
"cell_reconciliation": "not_tested",
"rounding_and_units": "not_tested",
"scientific_interpretation": "not_tested",
"access_control": "not_tested",
"html_export": "not_tested",
"docx_export": "not_tested",
"pdf_export": "not_tested",
"persistence_and_restore": "not_tested"
},
"independent_scientific_review": false,
"publication_approved": false,
"release_decision": "NO_GO"
}
This is a sample receipt, not a measured production result. Never mark a status as passed without executed, attributable evidence.
23. Safe correction and escalation
- Identify the exact affected table, report revision and saved result.
- Preserve the last accepted artifact and lawful diagnostic evidence.
- Determine whether a defect arose in the source, calculation, formatting, editor, export or access policy.
- Correct the smallest responsible component under authorized version control.
- Regenerate and compare all affected cells and statistical descriptions.
- Reassess related figures, narrative findings, conclusions and references.
- Repeat scientific, accessibility, privacy and export checks.
- Publish only after the required exact-version review and release authorization.
Do not manually edit published values to conceal a failed reconciliation, or restore restricted source data to public access.
24. Required implementation anchors
Before labeling Reporting Studio table reproducibility production verified, obtain the actual owning repository and commit; deployed table and calculation contracts; source schema; source-to-output lineage; frontend and export behavior; access-control enforcement; executed unit and integration tests; CI results; authenticated staging evidence; and migration, rollback and backup-restore receipts. Record known unsupported functionality explicitly.
25. Scientific and technical references
- National Academies of Sciences, Engineering, and Medicine (2019). Reproducibility and Replicability in Science. https://doi.org/10.17226/25303.
- Wilkinson, M.D. et al. (2016). ‘The FAIR Guiding Principles for Scientific Data Management and Stewardship’, Scientific Data, 3, 160018. https://doi.org/10.1038/sdata.2016.18.
- World Wide Web Consortium. PROV-O: The PROV Ontology. https://www.w3.org/TR/prov-o/.
- World Wide Web Consortium. Web Content Accessibility Guidelines (WCAG) 2.2. https://www.w3.org/TR/WCAG22/.
- W3C Web Accessibility Initiative. Tables Tutorial. https://www.w3.org/WAI/tutorials/tables/.
- Python Software Foundation. decimal — Decimal Fixed-Point and Floating-Point Arithmetic. https://docs.python.org/3/library/decimal.html.
26. Completion and verification record
Completion criterion: A scientific report table is validated when its material values, denominators, transformations, units, uncertainty statements, and displayed precision reconcile with authorized, versioned computational outputs; its scientific interpretation is appropriate; its provenance and revision history are inspectable; and the required export, accessibility, rights, and publication checks pass.
Scientific limitation: Reproducible numbers are not necessarily scientifically correct. A precise table generated from biased data or an inappropriate model can reproduce faithfully while supporting an invalid conclusion. Treat numerical reconciliation, scientific review and software-release verification as separate acceptance decisions.
Current implementation status: Controlled-table validation method, synthetic dataset and calculation, unit tests, numerical reconciliation rules, uncertainty checks, provenance boundaries, negative-test scenarios, release acceptance matrix, and references documented. No actual Reporting Studio service, live dataset integration, review decision, or production document export has been independently validated through this article.
