Module 03 · Lesson 3 of 4

Data provenance and transparent reporting

about 4 min read

Worked examples and assessment values retain the manuscript’s own units (°C, K and W/m²), including temperature differences.

Audio for this lesson — a quick overview and a full narration — will be added as recordings are completed.

In this lesson · 6 sections

Following the evidence backwards

Data provenance is the documented history of an observation from its origin to its final use. A temperature value in a scientific paper may have passed through a sensor, a logger, a downloaded file, a cleaning script, a statistical calculation and a figure. Each stage can introduce errors. Provenance makes it possible to trace a published number back to the original record and understand the transformations applied along the way.

A dataset without context can be difficult to interpret even when its values are accurate. A column labelled temperature might refer to air temperature, roof surface temperature or a sensor exposed to direct sunlight. Values might be expressed in Celsius or Fahrenheit. Timestamps might use local time or UTC. Metadata, meaning information describing the data, should resolve these ambiguities.

Raw records and processing

Preserve original instrument exports in a secure location with appropriate access restrictions. Do not overwrite them when cleaning data. Create a separate processed dataset and record the software, rules and parameters used to generate it. A reproducible script is often preferable to undocumented spreadsheet edits because it makes the sequence of transformations inspectable.

A practical structure separates raw data, metadata, processing scripts, cleaned data, analysis outputs and reports. File names and version identifiers should be consistent. A change log should record what changed, why, when and by whom. Backups and recovery procedures matter because a well-organised dataset is of little value if it is lost through device failure.

For field research, metadata may include sensor identifier, model, calibration history, measurement units, sampling interval, installation height, shielding, site code, time zone and maintenance events. Record changes such as sensor relocation or battery replacement. These events can explain apparent discontinuities in a time series.

Missing values, exclusions and privacy

A missing observation is not zero. Zero may be a legitimate physical measurement, while a missing entry means no usable observation is available. Use a clearly documented missing-value representation and, where possible, a reason code. Distinguish instrument failure, participant withdrawal, invalid readings and measurements that were never scheduled.

Cleaning rules should be defensible and consistently applied. A reading outside the instrument's physical operating range may be invalid; an unusually hot afternoon may be genuine. Inspect suspicious observations against maintenance records, nearby instruments and environmental conditions before deciding. Preserve exclusion flags and report their impact on results.

Pseudonymisation replaces direct identifiers with codes. If a separate key connects the code to a participant, the data may still be personal data. Anonymisation requires that identification is no longer reasonably possible in the relevant context. Removing names alone is insufficient. Open science supports appropriate sharing, but sensitive data may require controlled access, aggregation or a synthetic demonstration dataset. Legal and ethical obligations take precedence over unrestricted release.

Worked example: a sensor audit trail

Imagine logger A17 records 86.0°F at 14:00 UTC. A processing script converts the value using °C = (°F − 32) × 5/9, giving 30.0°C. The cleaned file stores the converted value and retains a reference to the source record. The script version and conversion rule are documented. If a later report claims 30.0°C, another analyst can reproduce the calculation.

Suppose the same logger produces no record at 14:10 because of a power interruption. The cleaned dataset marks that interval as missing. If an analysis estimates a value by interpolation, the estimated value is stored or flagged separately. The report explains whether estimates were included and why. This preserves the distinction between measurement and inference.

Practical exercise

Design a metadata record for two indoor temperature sensors deployed in different buildings. Include site codes, sensor IDs, units, sampling intervals, installation details, time zone and calibration information. Add a maintenance log entry for a sensor moved to a different wall. Explain how this move could affect comparisons before and after the event. Feedback: location changes may alter radiation exposure, airflow or proximity to heat sources; the event must be recorded and considered in analysis.

Key terminology

Provenance
documented origin and history of data.
Metadata
information describing data.
Raw data
original observations before processing.
Pseudonymisation
replacement of identifiers with codes.
Audit trail
traceable record of actions and changes.

Quick knowledge check

Does removing participant names necessarily make a dataset anonymous?

Show the answer

No. Other attributes or a retained linking key may still permit identification.

Equations in this lesson

  • Fahrenheit to Celsius conversion

    °C = (°F − 32) × 5/9