{
  "version": "1.0.0",
  "data": "Chicago TNP January 2024 deterministic 10000-trip convenience sample",
  "grain": "One retained source trip",
  "timezone": "Published civil date, treated as America/Chicago; no timestamp-to-UTC conversion",
  "as_of": "2024-02-02T00:00:00",
  "freshness_assumption": "Simulated arrival is trip_date + 1 day. This is an operational fixture, not observed delivery latency.",
  "metrics": [
    {
      "name": "trip_count",
      "label": "Recorded sampled trips",
      "aggregation": "count",
      "expression": "trip_id",
      "unit": "trips",
      "definition": "Every retained source row, including missing fare records."
    },
    {
      "name": "total_fare",
      "label": "Sum of published fares",
      "aggregation": "sum",
      "expression": "fare",
      "unit": "USD",
      "definition": "Excludes NULL fares; fares are publisher-rounded, not profit or exact receipts."
    },
    {
      "name": "mean_fare",
      "label": "Mean published fare",
      "aggregation": "average",
      "expression": "fare",
      "unit": "USD per nonmissing fare",
      "definition": "Excludes NULL fares from numerator and denominator."
    },
    {
      "name": "total_miles",
      "label": "Total trip miles",
      "aggregation": "sum",
      "expression": "trip_miles",
      "unit": "miles",
      "definition": "Reported trip distance, including travel outside Chicago."
    },
    {
      "name": "mean_miles",
      "label": "Mean trip miles",
      "aggregation": "average",
      "expression": "trip_miles",
      "unit": "miles per nonmissing distance",
      "definition": "Excludes NULL distances."
    },
    {
      "name": "mean_duration_minutes",
      "label": "Mean trip duration",
      "aggregation": "average",
      "expression": "trip_seconds / 60.0",
      "unit": "minutes",
      "definition": "Uses duration field, not the difference between rounded timestamps."
    },
    {
      "name": "total_tips",
      "label": "Sum of published noncash tips",
      "aggregation": "sum",
      "expression": "tip",
      "unit": "USD",
      "definition": "Cash tips are absent; publisher rounds noncash tips."
    },
    {
      "name": "shared_authorized_count",
      "label": "Trips with sharing authorized",
      "aggregation": "sum",
      "expression": "case when shared_trip_authorized then 1 else 0 end",
      "unit": "trips",
      "definition": "Consent to share does not imply a match."
    },
    {
      "name": "shared_matched_count",
      "label": "Trips actually matched for sharing",
      "aggregation": "sum",
      "expression": "case when shared_trip_match then 1 else 0 end",
      "unit": "trips",
      "definition": "Uses the publisher matched field even when authorization disagrees."
    },
    {
      "name": "shared_match_rate",
      "label": "Share of trips actually matched",
      "aggregation": "ratio",
      "expression": null,
      "unit": "fraction",
      "definition": "Matched trip count divided by all retained trips, including inconsistent authorization records."
    }
  ],
  "dimensions": [
    "metric_time",
    "trip__trip_date",
    "trip__shared_trip_authorized",
    "trip__shared_trip_match",
    "pickup_zone__zone_name",
    "dropoff_zone__zone_name"
  ],
  "joins": {
    "pickup_zone": "trips.pickup_zone_id = zones.zone_id, many-to-one",
    "dropoff_zone": "trips.dropoff_zone_id = zones.zone_id, many-to-one"
  },
  "missingness": "NULL fares/tips remain NULL. Missing area codes map to explicitly labeled zone 0. No complete-case deletion.",
  "outliers": "Retain all valid nonnegative reported duration, distance and money values; no outcome-driven trimming."
}
