Skip to content

A repository for publishing our python discipline project, where we build a forecasting model of Premier League Matches Results using Python programing language.

Notifications You must be signed in to change notification settings

Python-Discipline-Project/forecasting_model_PL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Forecasting Model of Premier League Matches Results

General Objective

A repository for publishing our python discipline project, where we build a forecasting model of Premier League Matches Results using Python programing language.

Databases

Our data come from three sources:

  1. For the tweets related to PL teams, we use the Twitter module of snscrape, a library for scraping into social medias;
  2. For matches informations, we collect the data from FBREF, using a common request method;
  3. And, to collect SPI and NSXG indexes, we resort to the scraping technique that makes use of the web driver to access the information present in sites built in java script language. The referred web site is FiveThirtyEight. At the end of this step, we storege our dataframes in csv files and professionally into SQL server.

Data Cleaning

For data manipulation, our main libraries was pandas and numpy, where we adapted the databases for visualization and estimation purposes.

Data Visualization

In this step the main libraries used were matplotlib.pyplot and seaborn. Below we present the respectives visualizations generated:

visualization1

visualization2

visualization3

visualization4

visualization5

visualization6

visualization7

visualization8

Model

To train and test our model, we use the Random Forest Classificatier method, loaded from sklearn library. As our best result, we get a 67.90% of accuracy level.

About

A repository for publishing our python discipline project, where we build a forecasting model of Premier League Matches Results using Python programing language.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published