Poisson distribution for modelling football scores

4 ビュー (過去 30 日間)
Luke wilkinson
Luke wilkinson 2020 年 12 月 10 日
回答済み: Image Analyst 2020 年 12 月 18 日
i am trying to write code for a poisson model which calculates the probability of multiple score outcomes in a match given a teams attack score and defence score. the issue is i have no values for attack and defence scores and have been told that i need to use paramaters mu and lambda with values alpha(attack strength) and beta(defence strength) for either the home or away team, to do this i need to calculate the loglikelihood and use fmincon but i have no idea where to even start with this

回答 (2 件)

Image Analyst
Image Analyst 2020 年 12 月 18 日
Why do you think it's Poisson? If I were you, I'd get a list of thousands of game scores and do a scatterplot of winning scores vs. losing scores. Then use that to get a probability distribution. Maybe it's Poisson, maybe it's not. You can either use the actual emprical distribution, or try to model it to a reasonable function. Do you have a list of such scores?

Raunak Gupta
Raunak Gupta 2020 年 12 月 18 日
Hi,
For the specific football model, I will recommend referring the literature either in some standard book or in a research paper to get the mathematical model. For using the Poisson distribution, you may refer to poissrnd and some relevant examples mentioned here. For setting up optimization problem and solving it you can read the fmincon documentation.

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by