Poisson distribution on soccer game

March 5th, 2009

In probability theory and statistics, the Poisson distribution is a discrete probability distribution that expresses the probability of a number of events occurring in a fixed period of time if these events occur with a known average rate and independently of the time since the last event. The Poisson distribution can also be used for the number of events in other specified intervals such as distance, area or volume.

Before we take Poisson distribution we should have some historical data for the event.Lets says we are going to predict the outcome for Wolfsburg – Karsruhe

Poasson distribution

Poasson distribution

Before we start to perform distribution let first look at the formula.

“he distribution was discovered by Siméon-Denis Poisson (1781–1840) and published, together with his probability theory, in 1838 in his work Recherches sur la probabilité des jugements en matières criminelles et matière civile (“Research on the Probability of Judgments in Criminal and Civil Matters”). The work focused on certain random variables N that count, among other things, a number of discrete occurrences (sometimes called “arrivals”) that take place during a time-interval of given length. If the expected number of occurrences in this interval is λ, then the probability that there are exactly k occurrences (k being a non-negative integer, k = 0, 1, 2, …) is equal to”

where

  • e is the base of the natural logarithm (e = 2.71828…)
  • k is the number of occurrences of an event – the probability of which is given by the function
  • k! is the factorial of k
  • λ is a positive real number, equal to the expected number of occurrences that occur during the given interval. For instance, if the events occur on average 4 times per minute, and you are interested in the number of events occurring in a 10 minute interval, you would use as your model a Poisson distribution with λ = 10*4 = 40.

Now the real part. Here is function written in PHP
function calc_poisson($score_required,$average_score) {
return pow($average_score,$score_required)*pow(2.718,-$average_score) / factorial($score_required);
}
let say we test 1-0 result. And goals for last 6 games for Wolfsburg are 11 $average_score = 11/6=1.83
Total goals for the visitor Karsruhe are 3, so $average_score = 3/6=0.5

Now perform Poasson distribution 2 time.
calc_poisson(1, 1.83);
calc_poisson(0, 0.5);
The result from the 2 calculations are multiple and the result is calculated percent for result 1-0.
Iterate all mayor scores and we can calculate 1×2 probability.
On the pictures above you can see that the result 1-0 is 22.56% to be final.

sources:

  1. http://en.wikipedia.org/wiki/Poisson_distribution

Sample excel file how to calculate Poisson Distribution manual.

I have this file from Portual visitor of pro-soccer.info, which name i don’t know. All credits are for him.

Download >> poisson-distribution-to-predict-the-probability-of-sports-matches


Related posts:

28 Responses to “Poisson distribution on soccer game”

  1. clothVata says:

    Спасибо здоровенное за предоставленную справку. Существую рад разместить ее у себя на дневнике. Если Вы не против, то я так и совершу.Если имеемся какие-то проблеммы со копирайтом, постучитесь на мой дневник,я целое исправлю. Так же прибавил Ваш должность на соцзакладки. Вообщем если что обращайтесь, – неизменно выслушаю и разгадаю. Со, почтением, Firestarter.

  2. Sergey says:

    У меня так что-то по этим расчетам получается, что вероятность 1-0 17,81%. Вот никак в толк не могу взять, как 22,56% получается??

  3. XAH says:

    Hi!
    Thanks for site, sorry for bad English
    You use only average_score in last 6 match?
    What about recieve goal? not use?

    poison distr 1.83/0.5 average goal = 17.8% score 1:0. But your is 22.56%. Why?
    Best regards

    >Now perform Poasson distribution 2 time.
    >calc_poisson(1, 1.83);
    >calc_poisson(0, 0.5);
    >The result from the 2 calculations are multiple and the result is >calculated percent for result 1-0.
    >Iterate all mayor scores and we can calculate 1×2 probability.
    >On the pictures above you can see that the result 1-0 is 22.56%
    >to be final

  4. admin says:

    Hello,
    The error you receive is because the picture is taken after match is played. This mean that the 22% is calculated including current game. This is bug in the script which i will resolve next week.
    Feel free to ask any question here.

  5. XAH says:

    Ok, take in future match
    Rennes (7)-Bordeaux (2)
    avr Home=0.75 avr Away=1.13
    Under =71% Over= 29%

    but your calculation is under 67%
    Where i incorrect?

  6. Michal says:

    Hi,
    First of all I want to thank you for this site. It’s very useful.
    I did Poisson Distribution in Excel, but I have different results.
    Because I don’t know php I have a favour to ask of you that you could show the calculation some other way, like for a layman.
    Regards,
    Michal

    PS. Sorry for my English. Hope you understand:).

  7. admin says:

    I found one old excel file which can be used for manual calculation of distribution.
    There is documentation in the file.
    The file can be download from the post above.

  8. huey says:

    Hi,
    I tested the sample above. However, that’s a part that i don’t quite understand. From the excel, its stated the Goals away team has scored away = 4, but from the JPG score provided above, it seems that Karlsruhe only score 3 goals which it won. Pardon me but i might get your meaning wrong there about Goals away team has scored away. Isn’t that suppose to mean the number of goals that Karlsruhe had score during its away game? If that is, then Karlsruhe did not score any away goal from the 6 games sample shown above. Hope someone might be able to enlighten me on this..

    Thank you.

  9. admin says:

    The data in excel file is just example and do not have any relation with screenshot on top of the post.
    Also we use last 6 away games, not just last 6.

    “# admin on April 28th, 2009 at 8:00 pm edit

    Hello,
    The error you receive is because the picture is taken after match is played. This mean that the 22% is calculated including current game. This is bug in the script which i will resolve next week.

    This problem is resolved.

  10. Kent says:

    hello,
    i am not clearly understand ! can u help me?
    we use last 6 home games for home team, and last 6 away games for away team.
    or last 6 games (include home & away games) for home team,last 6 games (include home & away games) for away team ?

    thank you very much
    Best regards

    sorry for my english

  11. huey says:

    Thanks for site, it is very useful for me. but I still have a favor to ask of you that ,
    (1) How do you determine your sample size data? From your post you used 6 matches, if i have 20 matches for instant, will that give me better prediction ?
    If those matches is in played at different season.
    (2) How to set a limit for a maximum score for Home Team and Away Team where i want to calculate the probability?
    For an instant, if the match that i want to predict is arsenal v newcastleUTD, and its maximum score for Home is 6 but Away is 4.
    The range of score is p(6-0), P(6-1)…p(1-0)-> Home, P(0-6), P(1-6),…, P(0-1)-> away; which is set like this way?
    (3) If i get interested in Asian Handicap game, may i know how they set different handicaps based on probability?
    like Handicap(Home is giving) = Quarter ball(0.25), 1 ball, 2.5 balls, etc?
    Thanks !!!!!
    Cheers,
    Huey

  12. admin says:

    Kent our software use last 6 game for every team. Last 6 for home team and 6 for visiting team. Practice shows that using last 6 games is almost the best interval.

    huey it is better to use last 6 or 5 games. Course at the beginning of the season we should be careful.
    2) We set max score 5 for both teams and calculate all possible outcomes with max 5 goals for every team.
    3) First your should understand handicaps perfect. Sometimes you can take better odd betting on handicap instead fixed odd.
    I’m working on new design which will include asian handicaps.

  13. ferdinand says:

    my question was the same as that of huey, but this cleared
    take the last 6 games, no matter whether you are a away
    or home go together ok

  14. admin says:

    Yes only last 6 games.
    We are working on new design of pro-soccer.info and some new features including more prediction and more odds.

  15. ferdinad says:

    One question:
    There is a page of Mr Eduardo Losilla in Spain, he has
    a program in which the Spaniards made their pools or columns, and reviews on this page, based on the percentage
    Tajes bet people told, if an estimate of the prize winner, that is, this column should be winning, you only get the number 10, with the No. 11 etc etc, there is a similar program in exel in I enter my rates on east and me a prize?
    did not use the teller of the Spaniards WHY I play here in mexico and other levels are,
    THANKS

  16. admin says:

    ferdinad, i can’t understand you. What do you mean?

  17. jonny says:

    one question the last 6 games on the home team and the last 6 games of the team
    away?
    are not the last 6 games on the home team as home
    and the last 6 games of the away team playing away?
    Ie the last 6 games are mixed together home and away

  18. admin says:

    No they are not mixed. When team is at home we take last 6 played at home.

  19. jonny says:

    I do not understand, I apologize for my English .. ignorangia and will give you an example to guide, in this match manchester vs Valencia (home vs Away)

    Last 6 matches: MANCHESTER UNITED:

    Tournament Date Match Result
    30/07/2009 Club Friendly Games vs Bayern Munich. Manchester United L – 0:0
    7:6 (AP)
    29/07/2009 Friendly Games Club vs Boca Juniors. W Manchester United – 1:2
    26/07/2009 Club Friendly Games vs Hangzhou Greentown. W Manchester United – 2:8
    24/07/2009 Club Friendly Games vs FC Seoul. W Manchester United – 2:3
    20/07/2009 Club Friendly Games Allstars vs Malaysian Super League. W Manchester United – 0:2
    27/05/2009 UEFA Champions League Barcelona vs. Manchester United L – 2:0
    Last 6 matches: CF VALENCIA:

    Tournament Date Match Result
    01/08/2009 Club Friendly Games vs Cardiff City. Valencia W – 0:2
    28/07/2009 Club Friendly Games vs Werder Bremen. W Valencia – 2:2
    4:6 (AP)
    22/07/2009 Club Friendly Games vs ADO Den Haag. Valencia W – 1:4
    30/05/2009 vs Valencia Liga BBVA. Athletic Bilbao W – 2:0
    23/05/2009 vs Villarreal CF League BBVA. Valencia L – 3:1
    17/05/2009 Atletico Madrid vs Liga BBVA. Valencia L – 1:0
    Using these games? even when the juice manchester away?
    and Valencia will play in its away statistics show a set of local

  20. admin says:

    “juice manchester away” ?? Do not use online translator! I don’t think someone can understand you.

  21. jjhew88 says:

    One question:
    How do you decide on the values of average odds? Is it based on different bookies? Where do you get the values as shown in the .PNG link?

  22. admin says:

    I get them from http://www.betbase1.info/ ,now odds are from expekt.com.

  23. danny says:

    hello , can u help me? sorry for my english first. what is new design of pro-soccer.info ? new system?

    Thanks for the help
    Best regards ^^

  24. admin says:

    No. The only the design, but i’m too busy this weeks.

  25. Wayne says:

    hi, im getting alittle confused on the last 6 games thingy because at #16 comment, u stated last 6 games. Then on #18, u stated “When team is at home we take last 6 played at home”

    so its basically, just taking:
    1) last 6 games for both teams; or
    2) home team – we take last 6 games played at home
    away team – we take the last 6 games(inclusive of home & away)

    so which of the above is correct? 1 or 2?

  26. admin says:

    ok. Take a look at this match http://www.pro-soccer.info/gd.php?comp=GE1&stat=24319
    Both teams have average goals scored : 1.83 left table is for last 6 home matches and right is for last 6 away matches.

  27. Michal says:

    How do you made the diagrams (those with the blue line)?
    Thanks.

  28. Hung says:

    Hi!
    Zaloji.net is powered by this webpage. But I see that some tips are different from ones of pro-soccer.info. For example: In Saturday 7 feb 2010, there is a football match of Germany 1 – Dortmunt vs Frankfurt. This webpage give tip 1, but zaloji.net give tip 2! Can anybody help to tell me this problem?
    Can anyone explain the value = 0 of the zaloji.net? What is the mean of value = 0? I need your help!
    Best regards,
    Hung

Leave a Reply