Skip to content

Commit d560cd2

Browse files
authored
adding f1 racing module (#25)
1 parent caf6cee commit d560cd2

7 files changed

Lines changed: 189 additions & 0 deletions
147 KB
Loading
105 KB
Binary file not shown.
146 KB
Binary file not shown.
Binary file not shown.
148 KB
Binary file not shown.
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
---
2+
title: "Analyzing Lap Times for the 2023 F1 Miami Grand Prix"
3+
date: June 8, 2026
4+
description: Investigating lap time statistics for Max Verstappen during the 2023 F1 Miami Grand Prix
5+
author:
6+
- name: Norah Kuduk
7+
affiliation:
8+
- id: slu
9+
name: St. Lawrence University
10+
- name: Ivan Ramler
11+
email: iramler@stlawu.edu
12+
affiliation:
13+
- ref: slu
14+
editor:
15+
canonical: true
16+
categories:
17+
- Summary Statistics
18+
- Data Visualization
19+
- Outliers
20+
image: 07F1-miami-final-tfpl-superJumbo.webp
21+
---
22+
23+
## Module
24+
25+
<!--
26+
Please note that these materials have not yet completed the required pedagogical and industry peer-reviews to become a published module on the SCORE Network. However, instructors are still welcome to use these materials if they are so inclined.
27+
-->
28+
29+
::: {.callout-note collapse="true" title="New to F1 Racing? Check out this video" appearance="minimal"}
30+
<iframe width="560" height="315" src="https://www.youtube.com/embed/SSdsncLXLYs?si=ajv4Ire3M9mlmbtN" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
31+
:::
32+
33+
### Introduction
34+
35+
Formula 1 (F1) racing is the highest class of single-seater auto racing sanctioned by the Fédération Internationale de l'Automobile (FIA). Each season features a series of races, known as Grand Prix, which are held in a variety of countries and on different types of circuits. Each circuit has its own characteristics that make the race unique, including the overall track layout, location, corners, weather conditions, and opportunities for overtaking. Each season, teams and drivers compete for the World Constructors' Championship and the World Drivers' Championship, respectively. For more information about the sport, visit F1's Wikipedia page [here](https://en.wikipedia.org/wiki/Formula_One){target="_blank"} or the official Formula 1 website [here](https://www.formula1.com/){target="_blank"}.
36+
37+
In this activity, students analyze lap-time data for Max Verstappen in the [2023 Miami Grand Prix](https://en.wikipedia.org/wiki/2023_Miami_Grand_Prix){target="\"_blank"} Verstappen started the race in ninth position but won after moving through the field. The race was unusually clean: all 20 cars that started the race finished it, and there were no major interruptions such as safety cars or red flags. (At the time of the race, it was only the 11th time in F1's history where all cars that started the race crossed the finish line.) This makes the race useful for studying lap times because one common source of unusually slow laps - crashes or race stoppages - did not occur.
38+
39+
Although a driver's lap times are usually similar from lap to lap, they are not identical. Lap times can be affected by fuel load, tire wear, traffic, overtaking, pit stops, and changes in race conditions. One important feature of Verstappen's race strategy was his pit stop. Most drivers in this race made only one pit stop, and Verstappen's stop occurred late in the race to change tires. A pit stop can create an unusually slow lap because the driver must slow down to enter pit lane, follow the pit-lane speed limit, stop for the tire change, and then accelerate back onto the track. Depending on where the pit lane crosses the start/finish line, this time loss may appear on the lap when the driver enters pit lane, the following lap, or both. Other unusual laps may occur near the beginning of the race, when cars are closer together and drivers are fighting for position.
40+
41+
In this worksheet, students first analyze Verstappen's lap times as a single quantitative variable using a histogram, summary statistics, and the 1.5 × IQR rule for identifying potential outliers. They then incorporate lap number to investigate when the unusual lap times occurred and use race context to explain why those laps were slower than the rest.
42+
43+
::: {.callout-note collapse="true" title="Activity Length" appearance="minimal"}
44+
This activity can serve as an in-class activity and should take roughly 30-45 minutes to complete.
45+
:::
46+
47+
::: {.callout-note collapse="true" title="Learning Objectives" appearance="minimal"}
48+
By the end of this activity, students should be able to:
49+
50+
1. Identify the observational units in a lap-level racing dataset.
51+
52+
2. Describe the shape, center, spread, and unusual observations in a distribution using a histogram.
53+
54+
3. Use summary statistics and the 1.5 × IQR rule to identify potential outliers in a quantitative variable.
55+
56+
4. Explain how adding a time-order variable, such as lap number, can provide context that is not visible in a histogram.
57+
58+
5. Use subject-matter context to interpret unusual observations in real data.
59+
:::
60+
61+
::: {.callout-note collapse="true" title="Methods" appearance="minimal"}
62+
This activity is a reinforcement module that assumes students have already been introduced to the following topics:
63+
64+
1. Histograms as graphical displays of quantitative variables.
65+
66+
2. Describing distributions using shape, center, spread, and unusual observations.
67+
68+
3. Numerical summaries, such as the mean, median, quartiles, interquartile range, standard deviation, minimum, and maximum.
69+
70+
4. Outliers and the 1.5 × IQR rule for identifying potential outliers. (Note that the activity can be modified to use z-scores for outlier detection.)
71+
72+
5. Scatterplots or time-order plots for displaying the relationship between two quantitative variables.
73+
74+
**Technology requirement:**
75+
76+
- One version of the activity handout provides the histogram, summary statistics, lap-time plot, and race-track map, so no statistical software is required.
77+
78+
- A second set of handouts is also made available where students need to produce the plots and summary statistics from the raw dataset.
79+
:::
80+
81+
### Data
82+
83+
The data set contains 57 rows and 7 columns. Each row represents a single lap by Max Verstappen who competed in the 2023 F1 Miami Grand Prix. This data is a subset of the file [miami2023_data.csv](https://data.scorenetwork.org/motor_sports/f1_miami_grand_prix_2023.html){target="_blank"} from the [SCORE Network Data Repository](https://data.scorenetwork.org/){target="_blank"}.
84+
85+
Download data used: [verstappen_2023_miami.csv](verstappen_2023_miami.csv)
86+
87+
<details>
88+
89+
<summary><b>Variable Descriptions</b></summary>
90+
91+
| Variable | Description |
92+
|-----------------|--------------------------------------------------|
93+
| driverId | Unique identifier for each driver |
94+
| driverName | The full name of the driver |
95+
| constructorId | Unique identifier for each constructor |
96+
| constructorName | Commonly used name of each constructor |
97+
| lap | The lap number |
98+
| lapTime | The time taken to complete the lap, in seconds |
99+
| lapPosition | The position of the driver at the end of the lap |
100+
101+
</details>
102+
103+
#### Data Source
104+
105+
[Formula 1 World Championship (1950 - 2023)](https://www.kaggle.com/datasets/rohanrao/formula-1-world-championship-1950-2020){target="_blank"}
106+
107+
### Materials
108+
109+
**No Tech Required Version**
110+
111+
[Class handout](Miami2023Worksheet.docx)
112+
113+
[Class handout with sample solutions](Miami2023WorksheetKey.docx)
114+
115+
**Statistical Software Required Version**
116+
117+
[Class handout - Tech Required](Miami2023Worksheet-Tech_Needed.docx)
118+
119+
[Class handout with sample solutions - Tech Required](Miami2023WorksheetKey-Tech_Needed.docx)
120+
121+
122+
123+
::: {.callout-note collapse="true" title="Conclusion" appearance="minimal"}
124+
This activity illustrates how different statistical displays can answer different questions about the same variable. The histogram helps students describe the overall distribution of Verstappen's lap times and identify unusually slow laps. However, the histogram does not show when those laps occurred. By adding lap number, students can connect the unusual lap times to meaningful moments in the race, such as the first lap and Verstappen's pit stop. This reinforces the idea that identifying outliers is only the first step; interpreting them often requires additional variables and subject-matter context.
125+
:::
126+
127+
## References
128+
129+
- Thumbnail photo: Segar, Mike. *Verstappen Wins Miami in Formula 1's Latest Red Bull Runaway*. Reuters. *The New York Times*, 7 May 2023. <https://www.nytimes.com/2023/05/07/sports/autoracing/miami-grand-prix-results.html>
130+
131+
- Track Map: By GabrielStella - [Own work]{.int-own-work lang="en"}, <a href="https://creativecommons.org/licenses/by-sa/3.0" title="Creative Commons Attribution-Share Alike 3.0">CC BY-SA 3.0</a>, <a href="https://commons.wikimedia.org/w/index.php?curid=103863916">Link</a>
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
driverId,driverName,constructorId,constructorName,lap,lapTime,lapPosition
2+
830,Max Verstappen,9,Red Bull,1,101.724,9
3+
830,Max Verstappen,9,Red Bull,2,94.26,8
4+
830,Max Verstappen,9,Red Bull,3,94.127,8
5+
830,Max Verstappen,9,Red Bull,4,92.935,6
6+
830,Max Verstappen,9,Red Bull,5,92.875,6
7+
830,Max Verstappen,9,Red Bull,6,92.753,6
8+
830,Max Verstappen,9,Red Bull,7,92.555,6
9+
830,Max Verstappen,9,Red Bull,8,92.947,5
10+
830,Max Verstappen,9,Red Bull,9,92.988,4
11+
830,Max Verstappen,9,Red Bull,10,92.74,4
12+
830,Max Verstappen,9,Red Bull,11,92.251,4
13+
830,Max Verstappen,9,Red Bull,12,92.304,4
14+
830,Max Verstappen,9,Red Bull,13,91.736,4
15+
830,Max Verstappen,9,Red Bull,14,92.193,3
16+
830,Max Verstappen,9,Red Bull,15,92.433,2
17+
830,Max Verstappen,9,Red Bull,16,92.333,2
18+
830,Max Verstappen,9,Red Bull,17,92.455,2
19+
830,Max Verstappen,9,Red Bull,18,92.124,2
20+
830,Max Verstappen,9,Red Bull,19,92.073,2
21+
830,Max Verstappen,9,Red Bull,20,92.203,1
22+
830,Max Verstappen,9,Red Bull,21,92.351,1
23+
830,Max Verstappen,9,Red Bull,22,92.267,1
24+
830,Max Verstappen,9,Red Bull,23,91.906,1
25+
830,Max Verstappen,9,Red Bull,24,92.126,1
26+
830,Max Verstappen,9,Red Bull,25,91.919,1
27+
830,Max Verstappen,9,Red Bull,26,91.922,1
28+
830,Max Verstappen,9,Red Bull,27,91.829,1
29+
830,Max Verstappen,9,Red Bull,28,91.776,1
30+
830,Max Verstappen,9,Red Bull,29,91.82,1
31+
830,Max Verstappen,9,Red Bull,30,92.484,1
32+
830,Max Verstappen,9,Red Bull,31,91.627,1
33+
830,Max Verstappen,9,Red Bull,32,91.293,1
34+
830,Max Verstappen,9,Red Bull,33,91.481,1
35+
830,Max Verstappen,9,Red Bull,34,91.43,1
36+
830,Max Verstappen,9,Red Bull,35,91.225,1
37+
830,Max Verstappen,9,Red Bull,36,91.384,1
38+
830,Max Verstappen,9,Red Bull,37,91.268,1
39+
830,Max Verstappen,9,Red Bull,38,91.199,1
40+
830,Max Verstappen,9,Red Bull,39,91.444,1
41+
830,Max Verstappen,9,Red Bull,40,91.288,1
42+
830,Max Verstappen,9,Red Bull,41,91.004,1
43+
830,Max Verstappen,9,Red Bull,42,91.122,1
44+
830,Max Verstappen,9,Red Bull,43,90.988,1
45+
830,Max Verstappen,9,Red Bull,44,91.056,1
46+
830,Max Verstappen,9,Red Bull,45,95.856,1
47+
830,Max Verstappen,9,Red Bull,46,106.123,2
48+
830,Max Verstappen,9,Red Bull,47,91.179,2
49+
830,Max Verstappen,9,Red Bull,48,90.637,1
50+
830,Max Verstappen,9,Red Bull,49,90.91,1
51+
830,Max Verstappen,9,Red Bull,50,90.837,1
52+
830,Max Verstappen,9,Red Bull,51,90.699,1
53+
830,Max Verstappen,9,Red Bull,52,90.372,1
54+
830,Max Verstappen,9,Red Bull,53,90.546,1
55+
830,Max Verstappen,9,Red Bull,54,90.492,1
56+
830,Max Verstappen,9,Red Bull,55,90.391,1
57+
830,Max Verstappen,9,Red Bull,56,89.708,1
58+
830,Max Verstappen,9,Red Bull,57,90.273,1

0 commit comments

Comments
 (0)