/FootballBetting

This is my implementation of a football betting algorithm.

Primary LanguageR

Football Betting Model

This is my implementation of a football betting algorithm. The algorithm is not done and is currently under work (whenever I get time/motivation), however, the parameter estimates via the likelihood function is completed.

The main sources for the development of this implementation has been:

Data downloaded from https://www.football-data.co.uk/

Introduction to the Scripts

  • Create_data.R is for collecting and assembling the match and betting data.
  • football_likelihood_func.R & football_prob_func.R are just functions to be sourced (the likelihood, helpers, and the score probability functions).
  • Optimization.R is for running the optimization procedure of the likelihood function, i.e. finding the team parameters.
  • Xi_testing.R is a (very slow) script to test different values of the xi parameter.
  • Betting_backtesting.R is the actual backtesting of the betting strategy using the parameters found in the maximazation of the likelihood.