https://github.com/sandyrogers/f1-points-analysis
How much competition was there for F1 race points in each year? A jupyter notebook analysis.
https://github.com/sandyrogers/f1-points-analysis
data-science formula1 jupyter-notebook motorsport
Last synced: about 1 year ago
JSON representation
How much competition was there for F1 race points in each year? A jupyter notebook analysis.
- Host: GitHub
- URL: https://github.com/sandyrogers/f1-points-analysis
- Owner: SandyRogers
- License: mit
- Created: 2017-09-11T21:46:15.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-11T21:48:27.000Z (almost 9 years ago)
- Last Synced: 2025-03-03T22:16:53.541Z (over 1 year ago)
- Topics: data-science, formula1, jupyter-notebook, motorsport
- Language: Jupyter Notebook
- Size: 455 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# F1 history: points won during qualifying vs. races
This Jupyter Notebook (Python) analyses the history of F1, in terms of how teams are incentivised.
# Getting the dataset
We use historical F1 data from [The Ergast API](http://ergast.com/mrd/).
The SQL database can be downloaded [here](http://ergast.com/mrd/db/).
To run this analysis, download the database image from Ergast.
Load it into a local MySQL database [(see StackOverflow)](https://stackoverflow.com/questions/17666249/how-to-import-an-sql-file-using-the-command-line-in-mysql)
# What are we analysing?
I wanted to know whether F1 racedays are becoming more or less competitive. I had a feeling that we needed to look at the relative importance of qualifying vs. racedays, in terms of how many points per (effectively) won on each day. The thinking was that: if most points are "already won" in qualifying, teams would make less race-competitive cars (since they only need to be qualifying-competitive).
For more interpretation, check out [this Medium post](https://medium.com/p/4d080f93dc4b).
The result is a graph that looks like this (as of August 2017):

# Installation
You'll need python, jupyter, jupyter notebook, pandas, matplotlib, numpy, mysqldb.