Home 5 Personal 5 Formula 1 Fantasy League Optimizer & Dashboard, 2021

Formula 1 Fantasy League Optimizer & Dashboard, 2021

Looking for a winning strategy with a brute-force approach (it worked - I was Top 4% Finisher in World and Polish League).

Tech stack:

Python

Python

Pandas

Pandas

NumPy

NumPy

Dash

Dash

Bash

Bash

Raspberry Pi

Raspberry Pi

CRON

CRON

Git

Git

Click to Expand section and show all tech used for this project

Story

Before the 2021 Formula 1 season started, together with a group of friends we looked for a good refresher between watching various Grand Prix during race-weeks. Surprisingly, joining official Fantasy F1 Leagues turned out to be a great supplement to our cheering routine – that has ignited a strong rivalry spark inside each of us.

 

Solution

The task seemed simple enough: assemble a winning squad, consisting of 5 Drivers’, together with a single Constructor – and staying within a limited budget. I decided to achieve this with usage of data-science, but with a twist of a brute-force optimization. The solution turned out to be CRON-scheduled calculations of possible squad combinations, with data vizualization on a special dashboard.

 

Points record

 

 

 

Lesson Learned

The brute-force-but-pragmatic approach I took – turned out to be quite successful, as I achieved Top 4% placement among Global and Polish Leagues. To me, it has been a great example of combining fun with creating something valuable.

        Statistics

        • 1: Raspberry Pi,
        • 2: Leagues,
        • 3: Teams,
        • 4%: Top double finisher,
        • 22: CRON-scheduled opportunities before races,
        • 338: best race-week point finish,
        • 3496,5: total points.