Skip to content

These are the R scripts used to calculate the model coefficients for the Android application.

Notifications You must be signed in to change notification settings

VincentStimper/Soccer-Prediction-Model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Model of the Soccer Prediction app

The app returns the expected result (rounded) and the probability of each possible outcome given the guess of the user, the certainty of his/her guess and the results of the Bundesliga matches of the seasons 2010/11 until 2016/17. Let be the number of goals of the home team and the number of goals of the guest . As underlying probability distribution I assumed Here, is the probability measure of the model, that one of the users guess and is the certainty of the users guess. We assume conditional independence of and given and , i.e. and . To model the users guess it is convenient to choose a dirac distribution, i.e. if the user guesses to score goals against and so on. To model the data I assumed the goals to by Poisson distributed, i.e. and so on. This is reasonable since the number of occurences of events happening with a constant rate are Poisson distributed. The model coefficients are obtained by a generalized linear model using the team and the opponent as features. Each match is weighted by where is the time when the match happend and a constant. This constant is obtained by trying different values and choosing the one with the highest accuracy on a test set.

About

These are the R scripts used to calculate the model coefficients for the Android application.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages