Skip to content

nomadflamingo/olympics-data-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏅 Predicting 2024 Olympics Gold Medal Winners for Women's Athletics

📚 Introduction

This project aims to predict the number of gold medals that each country might win in women's athletics events at the 2024 Paris Olympics. The prediction is based on historical data from previous Olympic games. Using machine learning techniques, we analyze the historical performance of countries in women's athletics to forecast their success in the upcoming Olympics.

Plot

📝 Project Overview

📊 Resources

  1. Historical Olympics Data (1986-2018):

    • 📈 Contains information about the medals won by athletes and teams in past Olympic games.
    • Includes details such as the discipline, event, gender, medal type, and country.
  2. 2024 Paris Olympics Events:

    • 📅 Contains information about the events planned for the 2024 Paris Olympics.
    • Includes details such as the event name, sport, and associated URLs.
  3. Wikipedia:

    • Wiki page of 2024 Summer Olympics
    • Web-scraped to find out countries-participants

🎯 Objective

  • To predict the number of gold medals each country will win in women's athletics events in the 2024 Paris Olympics based on historical performance data.

🛠️ Steps Involved

  1. 📥 Data Collection and Preprocessing:

    • Load and clean the historical Olympics data.
    • Filter the data to include only gold medals in women's athletics.
  2. 📊 Data Aggregation:

    • Aggregate the gold medal counts to ensure unique combinations of countries and sports.
    • Pivot the table to have sports as columns and countries as rows, filling missing values with zeros.
  3. 🤖 Model Training:

    • Use linear regression to train a model on the historical gold medal counts.
    • Features include the number of gold medals won in women's athletics by each country.
  4. 🔮 Prediction:

    • Predict the number of gold medals for each country in women's athletics events in the 2024 Olympics.
    • Visualize the predictions using bar charts.

🏆 Results

  • The model predicts the number of gold medals each country might win in women's athletics events at the 2024 Paris Olympics.
  • The predictions are visualized using bar charts to compare the performance of different countries.
  • The average R-squared value for every country is approximately 0.31

About

Our submission for the 2024 Summer Hackathon from Codédex

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published