🏎️ Análisis del GP de Madrid 2026 con Python: abandonos, posiciones, puntos y campeonato de F1

Imagen
🏎️ Análisis del GP de Madrid 2026 con Python El Gran Premio de Madrid 2026 nos dejó varios datos interesantes que podemos analizar utilizando datos de Fórmula 1 y Python. En este análisis vamos a responder cuatro preguntas: 😱 ¿Quiénes abandonaron el GP de Madrid? 🔥 ¿Quién ganó más posiciones durante la carrera? 🏆 ¿Qué equipo consiguió más puntos? 📊 ¿Cuándo podría Mercedes asegurar matemáticamente el campeonato? La idea es utilizar los datos para encontrar historias que no siempre son evidentes al observar solamente el resultado final de la carrera o comparar lo que se vivio en la carrera con los datos. 😱 ¿Quiénes abandonaron el GP de Madrid 2026? No todos los pilotos consiguieron llegar a la bandera a cuadros en Madrid. El análisis de los resultados de la carrera muestra cuatro abandonos. Carlos Sainz Jr fue uno de los abandonos más destacados. El piloto de Williams comenzó desde la P20 y completó 45 vueltas. (Lastima por Sainz en su casa) Tambié...

Can Data Measure Football Excitement? Ranking FIFA World Cup 2026 Matches with Python

Can Data Measure Football Excitement? Ranking FIFA World Cup 2026 Matches with Python

When fans remember a great football match, they usually think about unforgettable goals, dramatic comebacks and emotional moments. But from a Sports Analytics perspective, another question appears.

Can we measure how exciting a football match was using only data?

In this project I analyzed the FIFA World Cup 2026 using Python, Pandas and Matplotlib to create a simple metric called Excitement Score.


Dataset

The analysis uses the Football World Cup 2026 Dataset from Kaggle containing:

  • Match events
  • Expected Goals (xG)
  • Possession
  • Shots
  • Shots on target
  • Big Chances
  • Player information
  • Momentum

Dataset: Football World Cup 2026 Dataset


Building the Excitement Score

Goals alone do not tell the whole story. I combined multiple offensive statistics into a simple metric.

Excitement Score =
Shots
+ (Big Chances × 2)
+ (Goals × 3)

The weights are intentionally simple and can easily be adjusted for future experiments.


Top 15 Most Exciting Matches

Using the Excitement Score, every match was ranked according to its offensive production.



  • X-axis: Shots Inside the Box
  • Y-axis: Shots on Target
  • Bubble Size: Goals
  • Bubble Color: Big Chances

Does the Model Match My Favorite Games?

After generating the ranking, I compared it with the matches I personally enjoyed the most.

  1. 🇦🇷 Argentina vs 🇨🇻 Cape Verde
  2. 🇲🇽 Mexico vs 🏴 England
  3. 🇳🇱 Netherlands vs 🇯🇵 Japan
  4. 🇪🇸 Spain vs 🇦🇷 Argentina
  5. 🏴 England vs 🇫🇷 France
  6. 🇪🇸 Spain vs 🇧🇪 Belgium
  7. 🇪🇸 Spain vs 🇨🇻 Cape Verde
  8. 🇪🇬 Egypt vs 🇦🇷 Argentina
  9. 🇳🇴 Norway vs 🏴 England
  10. 🇳🇴 Norway vs 🇸🇳 Senegal



Several of my favorite matches also received high Excitement Scores, suggesting that offensive statistics capture an important part of what fans perceive as an exciting game.


Key Findings

  • More goals do not always mean a more exciting match.
  • Big Chances strongly influence match excitement.
  • Simple analytics can identify memorable games.
  • Sports Analytics complements, rather than replaces, the fan experience.

Technology Stack

  • Python
  • Pandas
  • NumPy
  • Matplotlib
  • Jupyter Notebook

GitHub Repository

The complete project includes data preparation, feature engineering, Excitement Score calculation and visualization code.

GitHub: GITHUB_URL


Final Thoughts

This experiment shows that even a simple metric based on football statistics can identify many of the matches fans remember as the most entertaining.

Future versions could include xG, match momentum, cards, game state and win probability to build a more advanced model.

How would you build an Excitement Score? Which variables would you include?

Comentarios

🚀 Mantener este blog funcionando requiere tiempo y café. ¡Puedes contribuir con uno aquí!

Entradas más populares de este blog

Guía Práctica: Ejemplo Completo de ASPX para Desarrolladores Web

👉 Cómo obtener el tipo de cambio en Excel con API de Banxico (paso a paso)

Macro en Word para automatizar documentos: genera diplomas en segundos (con código VBA)