Part of the Physics family.
Lineage
Overview
11 tests guard this model - 9 generic, 2 singular.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Phase 10a.
| Property | Value |
|---|---|
| Layer | intermediate |
| Family | Physics |
| Contract enforced | No |
| Upstream | stg_telemetry_position, stg_results, int_stint_geometry |
| Column | Type | Nullable | Tests | Description |
|---|---|---|---|---|
lap_id | Yes | not_null, unique | Foreign key to stg_laps | |
proximity_bin_count | Yes | expect_column_values_to_be_between | How many of the 100 track bins this driver-lap produced a crossing for. Mean 99.8. NULL on the 1.22% of laps with no position telemetry (1,982 of 162,729) - left NULL rather than zeroed so “no data” stays distinguishable from “no traffic”. | |
gap_ahead_min_s | Yes | expect_column_values_to_be_between | Closest the car ahead on track came, this lap (seconds). NULL when no other car crossed any of this lap’s bins between this driver’s own consecutive crossings, i.e. a full lap of clear air. Median 0.92 s. | |
share_lap_within_1s | Yes | not_null, expect_column_values_to_be_between | Share of the lap’s track bins with a car within 1 s ahead. Mean 0.2011. Zeroed on SC/VSC/red-flag laps for the same reason int_lap_air_state zeroes its dirty-air terms - the field bunches at a pace that generates no aero load. | |
share_lap_in_train | Yes | not_null, expect_column_values_to_be_between | Share of the lap in a train rather than a single tow: this car within 1 s of the car ahead AND that car within 1 s of the car ahead of it. Mean 0.0800. Must never exceed share_lap_within_1s, which is its own first conjunct - asserted by assert_proximity_train_subset_of_within1s. | |
ahead_identity_stability | Yes | expect_column_values_to_be_between | Of the lap’s bins that had a car within 3 s ahead, the share held by the single most frequent car. 1.0 = one car held the whole lap (a settled follow); low = the car ahead rotated (traffic being passed, or being lapped). Mean 0.9271. 31.0% NULL overall, stable at 28.6–32.2% per season. NULL semantics: only 1,449 of 36,044 nulls represent “no car ahead” (free air). The remaining 34,595 nulls mean the statistic is UNDEFINED — the proximity calculation cannot settle on a single car ahead, which happens on disrupted/bunched laps (SC/VSC/red flag). Do not treat NULL as zero or as “free air”. A later consumer must condition on this distinction. | |
ff_ahead_identity_agreement | Yes | Diagnostic, never a feature. Share of the lap’s bins where FastF1’s own DriverAhead names the same car this model derives. 0.8704 across all seasons. Kept at lap grain so the incumbent and the new measure can be compared rather than one asserted better (Phase 10a: “run the ablation against both”). Where they disagree, FastF1’s own DistanceToDriverAhead is roughly twice as large, i.e. it is naming a car further away than the one actually ahead on track. |