
Tire Degradation
Tire degradation is the gradual loss of grip and the increase in lap times when tires wear out. Different compounds (Soft, Medium, Hard) have different degradation profiles. The typical profiles are:- Soft: Fastest initially but degrades quickly
- Medium: Balanced performance and durability
- Hard: Slower but lasts longer with minimal degradation
Loading Race Data
Analyze the 2024 Hungarian Grand Prix to see how the tires performed:Fuel-Corrected Lap Times
Cars burn fuel during the race, so the cars get lighter and faster. To see true tire degradation, correct for this effect:Smoothing Data with Rolling Median
To reduce noise in the degradation curves, use a rolling median:Visualizing Degradation by Compound
Plot how each compound performs over its lifetime, with raw data and smoothed trends:- Raw data points as semi-transparent scatter plots
- Smoothed trend lines using rolling median to reduce noise
- Compound labels annotated at the end of each line
- Dynamic y-axis limits that exclude extreme outliers
Analyzing Specific Driver Performance
Compare how different drivers manage the same compound:Understanding Degradation Rates
The slope of the trend line gives the degradation rate. Use these bands as a rough guide:- 0.00 - 0.05 s/lap: Excellent tire management
- 0.05 - 0.10 s/lap: Normal degradation
- > 0.10 s/lap: High degradation (aggressive driving or setup issues)
Finding the “Cliff”
The “cliff” is when tires suddenly lose significant performance:Parameters
The native function exposes the same controls as parameters.compounds picks the compounds to plot. fuel_correction sets the per-lap fuel gain. min_laps drops compounds with too few laps. smoothing_window tunes the rolling median:
tif1.plotting.get_compound_mapping(session) (season-aware), not hardcoded literals.
Complete Example
The complete workflow above (fuel correction, rolling median, quantile-based y-limits) is one native function:rolling_median helper shown above lives in the library as tif1.charts.performance.rolling_median.
Summary
Usetif1 to:
- Analyze tire degradation patterns across compounds
- Compare driver tire management skills
- Identify optimal stint lengths before the “cliff”
- Make data-driven strategy decisions