This is a simple predictor for FIFA World Cup matches that implements a probabilistic Poisson's model based on ELO rating differences to calculate the most likely outcomes.
The model uses Poisson distributions to calculate the probability each team scores a given number of goals.
Let X be the random variable representing the number of goals scored by team A, and Y the random variable representing the number of goals scored by team B.
We asume that
To estimate the two goal rates, two constraints were used.
The first constraint computes the probability of team A victory according to the ELO rating:
where
Then constraint is then
The second constraint asumes that the expected number of goals per match in this World Cup is 2.6. So,
Then, a root finder algorithm is used to get the to parameters of the distributions.
Finally, the most likely match outcomes are computed from the resulting distributions.
The data is extracted from this open web site.
Example:
uv run main.py COL ARG