Skip to content

Diogo TravassosData leadership · Analytics · Decision-making

Public dataSynthetic faults

Data quality scorecard · scenario

Units change: version 1 caught it, version 2 caught it.

A fault the checks were built for. January 30 miles (300 rows) are multiplied by 1.609344, as if kilometres entered a miles field. Version 1 failed unit_invariant. Version 2 added nothing.

Key figures
Trust, version 140/100capped at 40Trust, version 240/100capped at 40Failed checks1 → 1out of 20 checks in version 1 and 22 in version 2Latest arrival age5.0 hat the fixed clock; fails after 12 h

Main limitation Twenty-six faults on one month of public trip data: ten written directly into the fault code (plus one run with four of them at once) and sixteen written blind in two rounds. The counts describe these faults, not how often the checks would catch faults in production.

Check groups

Weight in points out of 100 and status in each version
GroupWeightVersion 1Version 2
Freshness25passpass
Completeness25passpass
Uniqueness25passpass
Validity15failfail
Anomaly10passpass

Version 1: 85 before the cap, trust 40. Version 2: 85 before the cap, trust 40.

Every check

All 23 checks that ran: 19 used by both versions, 1 by version 1 only and 3 by version 2 only
CheckGroupUsed inStatus
content_duplicatesUniquenessversion 2 onlypass
daily_reconciliationValiditybothpass
day_volumeCompletenessversion 2 onlypass
fare_completenessCompletenessbothpass
historical_freshnessValiditybothpass
month_boundaryValiditybothpass
nonnegative_unitsValiditybothpass
not_null_trips_dropoff_zone_idValiditybothpass
not_null_trips_pickup_zone_idValiditybothpass
not_null_trips_trip_dateValiditybothpass
not_null_trips_trip_idValiditybothpass
not_null_zones_zone_idValiditybothpass
not_null_zones_zone_nameValiditybothpass
relationships_trips_dropoff_zone_id__zone_id__ref_zones_Validitybothpass
relationships_trips_pickup_zone_id__zone_id__ref_zones_Validitybothpass
row_identityValiditybothpass
source_uniqueUniquenessbothpass
unique_trips_trip_idValiditybothpass
unique_zones_zone_idValiditybothpass
unit_invariantValiditybothfail
freshnessFreshnessbothpass
fare_null_anomalyAnomalyversion 1 onlypass
fare_null_anomaly_v2Anomalyversion 2 onlypass

Anomaly evidence

The detector read 17 days, through January 31. Version 1 flagged none; version 2 flagged none. On January 31 0.0% of fares were missing, against bounds of 5.1% (version 1) and 2.1% (version 2).

Show every evaluated day
Share of fares missing, rounded to one decimal; exact values are in results.json
DayMissingPrior medianBound, v1v1Bound, v2v2
January 150.0%0.0%5.0%pass2.0%pass
January 160.4%0.0%5.0%pass2.0%pass
January 170.0%0.0%5.0%pass2.0%pass
January 180.0%0.0%5.0%pass2.0%pass
January 190.7%0.0%5.0%pass2.0%pass
January 200.0%0.0%5.0%pass2.0%pass
January 210.3%0.0%5.0%pass2.0%pass
January 220.3%0.0%5.0%pass2.0%pass
January 230.0%0.1%5.1%pass2.1%pass
January 240.3%0.0%5.0%pass2.0%pass
January 250.0%0.1%5.1%pass2.1%pass
January 260.0%0.1%5.1%pass2.1%pass
January 270.2%0.0%5.0%pass2.0%pass
January 280.3%0.1%5.1%pass2.1%pass
January 290.0%0.1%5.1%pass2.1%pass
January 300.3%0.1%5.1%pass2.1%pass
January 310.0%0.1%5.1%pass2.1%pass

Downstream exposure

raw_trips → stg_trips → trips → daily_trips. All three descendants inherit the source trust score. This is dependency exposure, not measured usage or business loss. Source owner: Mobility ingestion. Mart owner: Analytics engineering. Example consumer: an operations dashboard. The owners and the consumer are synthetic.

Method and checks

Injected rows
  • unit_change: 300 rows