An open API service indexing awesome lists of open source software.

https://github.com/nitish2773/ipl-victory-probability-estimator

The IPL Victory Probability Estimator is a predictive model that estimates the probability of a team winning an IPL (Indian Premier League) match based on historical match data. This project aims to provide insights for cricket analysts, enthusiasts, and sports data scientists by predicting the outcomes of future IPL matches.
https://github.com/nitish2773/ipl-victory-probability-estimator

data-science machine-learning python3

Last synced: 3 months ago
JSON representation

The IPL Victory Probability Estimator is a predictive model that estimates the probability of a team winning an IPL (Indian Premier League) match based on historical match data. This project aims to provide insights for cricket analysts, enthusiasts, and sports data scientists by predicting the outcomes of future IPL matches.

Awesome Lists containing this project

README

          

---

# IPL Victory Probability Estimator

## Overview

The IPL Victory Probability Estimator is a predictive model designed to forecast the outcomes of IPL (Indian Premier League) matches based on historical match data. This project leverages machine learning algorithms to analyze IPL match statistics and provide a probability of victory for each team, aiding cricket enthusiasts and analysts in gaining deeper insights into the game.

## Features

- Predict the outcome of an IPL match based on historical data.
- Interactive web application for real-time predictions using Streamlit.
- Data analysis using pandas and machine learning model training in Python.
- Model saved and deployed using pickle for easy integration.
- Visualization of model training process and results.

## Technologies Used

- **Python**: Main programming language used for model development.
- **Jupyter Notebook**: For data analysis and model training.
- **pandas**: Data manipulation and analysis.
- **pickle**: For saving and loading machine learning models.
- **Streamlit**: Framework for building the interactive web application.
- **Scikit-learn**: Machine learning library used for model training.

## Installation

1. Clone the repository:

```bash
git clone https://github.com/your-username/ipl-victory-probability-estimator.git
```

2. Navigate to the project directory:

```bash
cd ipl-victory-probability-estimator
```

3. Install the required dependencies:

```bash
pip install -r requirements.txt
```

4. Run the Streamlit app:
```bash
streamlit run app.py
```

## Dataset

The dataset used in this project is the IPL match dataset from Kaggle, which includes various match statistics such as runs, wickets, overs, and player performances. The dataset helps in building the predictive model to estimate the probability of a team winning.

This is a kaggle dataset where we have 5 Files but we are focused only on 2 Files :
1. matches.csv $\rightarrow$ Has each match analysis
2. deliveries.csv $\rightarrow$ Has each ball analysis.

##### Data Set Link : https://www.kaggle.com/datasets/ramjidoolla/ipl-data-set

## Model Training and Visualization

The model was trained using historical IPL match data. Various machine learning algorithms were tested, and the final model was selected based on accuracy. Below are some visualizations of the model training process:

- **Model Accuracy Graph**: Shows how different models performed.
- **Confusion Matrix**: For evaluating the model's performance.
- **Feature Importance**: Displays the significance of each feature in predicting the match outcome.

_(Add presentation images and videos of the model training process here)_

## Usage

Once the app is running, users can input the following match details:

- Team 1 and Team 2
- Venue
- Key player statistics (optional)

The model will output the predicted probability of victory for each team, giving users insights into the potential match outcome.

## Contributing

Feel free to fork this repository, make improvements, or submit pull requests. Contributions are welcome!

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Model Training Process

![Model Training Process](images/workflow.png)
![Logistic Regression Model](images/Logistic_regression.png)
![Probability Prediction](images/Probability_prediction.png)
![Prediction 2](images/probab_pred2.png)
![Final Data After Preprocessing](images/Final_data_after_preprocess.png)
![Model Output](images/output.png)

## Website Video

You can view the process in the video below:

https://github.com/user-attachments/assets/f68c60b1-b9f6-4d00-8381-30493dc3b41f

## Webiste Link

You can view thw app demo below:

https://ipl-victory-probability-estimator-kssuiburmv9sfo3hdyn6yg.streamlit.app/