Skip to content

About

๐Ÿ† Machine Learning model to predict the FIFA World Cup 2026 winner using historical match data, FIFA rankings & Monte Carlo simulation.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

๐Ÿ† FIFA World Cup 2026 โ€” Winner Prediction Model

A Machine Learning project that predicts the winner of the 2026 FIFA World Cup using historical international football data, FIFA rankings, and tournament simulations.


๐Ÿ“Œ Project Overview

This project builds a complete data science pipeline to predict which team is most likely to win the 2026 FIFA World Cup hosted by USA, Canada & Mexico. It uses historical match data going back to 1872, engineers meaningful features, trains multiple ML models, and simulates the entire 48-team tournament thousands of times using Monte Carlo simulation.


๐Ÿ“‚ Project Structure

Fifa-world-cup-2026/
โ”‚
โ”œโ”€โ”€ worldcup_2026_prediction.ipynb   # Main Jupyter Notebook (full pipeline)
โ”œโ”€โ”€ results.csv                      # Historical international match results
โ”œโ”€โ”€ fifa_ranking.csv                 # FIFA world rankings data
โ”‚
โ”œโ”€โ”€ feature_importance.png           # Feature importance chart
โ”œโ”€โ”€ model_comparison.png             # ML model accuracy comparison
โ”œโ”€โ”€ outcome_distribution.png         # Win/Draw/Loss distribution
โ”œโ”€โ”€ goals_over_time.png              # Average goals per match over time
โ”œโ”€โ”€ top_teams_wins.png               # Top teams by all-time wins
โ”œโ”€โ”€ wc_wins_by_country.png           # World Cup wins by country
โ”œโ”€โ”€ tournament_types.png             # Match types breakdown
โ””โ”€โ”€ win_probabilities.png            # Final predicted win probabilities

๐Ÿ”ฌ Methodology

1. Data Collection

  • Historical international football results (1872โ€“2026)
  • FIFA World Rankings (1992โ€“2026)

2. Exploratory Data Analysis (EDA)

  • Match outcome distributions (Home Win / Draw / Away Win)
  • Top teams by all-time wins
  • Goals scored trends over decades
  • World Cup performance by country

3. Feature Engineering

Feature Description
home_win_rate Win rate of home team in last 10 matches
away_win_rate Win rate of away team in last 10 matches
home_goals_scored Average goals scored by home team
home_goals_conceded Average goals conceded by home team
away_goals_scored Average goals scored by away team
away_goals_conceded Average goals conceded by away team
h2h_home_win_rate Head-to-head win rate between the two teams
win_rate_diff Difference in win rates
goals_diff Difference in average goals
is_neutral Whether match is played on neutral ground

4. ML Models Trained

  • โœ… Logistic Regression
  • โœ… Random Forest Classifier
  • โœ… XGBoost Classifier

5. Tournament Simulation

  • Full 48-team group stage simulation (12 groups ร— 4 teams)
  • Knockout rounds: Round of 32 โ†’ Round of 16 โ†’ QF โ†’ SF โ†’ Final
  • Monte Carlo Simulation (1000+ runs) to calculate win probabilities

๐Ÿ“Š Results & Visualizations

Model Accuracy Comparison

Model Comparison

Feature Importance

Feature Importance

Predicted Win Probabilities

Win Probabilities

World Cup Wins by Country (Historical)

WC Wins


๐Ÿš€ How to Run

Prerequisites

pip install pandas numpy matplotlib seaborn scikit-learn xgboost jupyter

Steps

  1. Clone the repository:
git clone https://github.com/Sourik-10/Fifa-world-cup-2026.git
cd Fifa-world-cup-2026
  1. Launch Jupyter Notebook:
jupyter notebook worldcup_2026_prediction.ipynb
  1. Run all cells from top to bottom โœ…

๐Ÿ“ฆ Data Sources


๐Ÿ› ๏ธ Tech Stack

Python Jupyter Pandas Scikit-learn XGBoost


๐Ÿ”ฎ Future Improvements

  • Add real FIFA Rankings as a live feature
  • Include player-level stats (EA FC 25 ratings / Transfermarkt values)
  • Use Elo rating system instead of simple win rates
  • Increase Monte Carlo simulations to 10,000+
  • Update predictions as real tournament matches are played
  • Deploy as a web app using Streamlit

๐Ÿ‘ค Author

Sourik โ€” @Sourik-10


โญ Show Your Support

If you found this project useful, please give it a star โญ on GitHub!


Made with โค๏ธ and lots of football passion ๐ŸŸ๏ธ

About

๐Ÿ† Machine Learning model to predict the FIFA World Cup 2026 winner using historical match data, FIFA rankings & Monte Carlo simulation.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages