Giter VIP home page Giter VIP logo

betfutbol's Introduction

Football Prediction Bot

Name, program, year: My name is Michael Li and I’m a U1 Software Engineering student.

Why MAIS 202: I chose MAIS202 to explore and learn about AI. I thought it was a great opportunity to get an early introduction to machine learning which is a subject that strongly interests me. I’ve attended past workshops taught by Isaac and Frank who were very good at explaining every theorical concepts and demonstrated great knowledge of ML. The experimented workshop leads and the appealing syllabus motivated me to sign up for this bootcamp. w Hobbies: Soccer, Gym, Piano, Travelling

Goals for the future: Launching a successful AI Startup that makes a positive change in the world.

Project Description

Football Prediction Bot predicts the outcome of English Premier League fixtures.

Inspiration for the Project

Microsoft’s Bing search engine correctly predicted 15 out of 16 matches in the knockout stages and the winner of the 2014 World Cup.

Dataset

http://www.football-data.co.uk/ contains datasets of every EPL seasons since 1993. However, only the most recent one (season 2018-2019) was used for this project in order to avoid noise and changes between different seasons (new players, new teams, new managers, etc.). The dataset is updated weekly with its fixtures. It was chosen, because it provides detailed information about the result of each game and contains the following features:

  • Full-time result
  • Home/Away team full time goals
  • Home/Away team half time goals
  • Home/Away team shot and shots on target
  • Home/Away team free kick and corner kick
  • Home/Away team number of fouls and # of yellow/red cards
  • Data/location/referee

Libraries

Sklearn, Pandas, Matplotlib and Numpy were the primary libraries used for this project.

Challenges encountered

The dataset for the 2018-2019 is really small since the season is still on going at the moment this project was published. In addition, the features present in the dataset are only available at the end of every game since they are statistics on the corresponding fixture. Therefore, it is impossible to obtain information on each feature prior to the match. Every team only plays against each other twice during the entire season. Hence, we cannot predict using the results of the previous game, because we only have one sample of each matchup.

Favorite part of the project

In order to solve the problems related to my dataset, I proceeded to engineer features by using my knowledge of this sport. First of all, Pandas allowed me to explore and extract insightful features from past games results. In addition, it is a known fact to any sports fan that the home team advantage exists notably due to the fact that they have less fatigue due to travelling, moral support from the fans and familiarity of the home pitch. In fact, it is possible to notice a higher win rate for the home team by analyzing the games from the last 2 decades. Therefore, the features were engineered taking in account that every team performs differently at home and away.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.