+ Reply to Thread
Results 1 to 12 of 12

Calculating probabilities

  1. #1
    Registered User
    Join Date
    04-19-2015
    Location
    The Netherlands
    MS-Off Ver
    Excel 2011 MAC
    Posts
    6

    Calculating probabilities

    Hey,

    So I made soccer team power ratings in excel, these are team ratings in the range of 0,000 till 1,000. Now I want to calculate the probability of a win when these teams play each other, although I have no clue how to do this so I hope someone can help and explain it to me.

    Lets say Team A with a rating of 0,690 plays versus Team B with a rating of 0,482. How can I calculate how much % change team A has to win this game?
    I hope someone can explain this to me because I cant find it anywhere.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    16,161

    Re: Calculating probabilities

    I think you would first have to determine exactly what your "ratings" mean numerically. I am not familiar with the science/statistics behind sport ratings. I was introduced to the subject through Elo ratings that got started as a way for rating chess players, but some have adapted it to other sports/contests: http://en.wikipedia.org/wiki/Elo_rating_system

    The basic starting place would be that, I would expect that, a team with an equal rating, team A would have a 50% chance of winning. From there, you would need to understand the mathematics behind your rating system to understand how the difference in ratings affects the W/L/D probabilities.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    04-19-2015
    Location
    The Netherlands
    MS-Off Ver
    Excel 2011 MAC
    Posts
    6

    Re: Calculating probabilities

    I found this but I don't understand how to do this.

    Despite these difficulties, we can calculate a TSR from previous matches for each of the two teams in a Premier League contest. We can further use historical TSR match ups from previous seasons to establish the relationship between each team’s pre game TSR and the actual outcome of the game.

    Logistic regression, where an outcome, such as a home victory, either happens or it doesn’t, is one route to determining match probabilities from game day TSRs for each team.

    When Sunderland travelled to Tottenham on April 7th 2014, their TSR over the last 30 games was 0.43, over the last 10 it was slightly better, at 0.44. That of their hosts was 0.56 and 0.51, respectively.

    Using historical, out of sample results from five previous seasons from soccer-data.co.uk and a logistic regression, the chance of a Spurs win at home to Sunderland based on 30 game averages was 68%.

    The calculation involves two steps, where the respective home and away constants are obtained by running a logistic regression on matches played during the five most recent seasons of Premiership games, excluding 2013/14. The predictor variables were each team’s TSR from their previous 30 league games and the output was whether or not the result was a home win.

    Firstly, calculate F= (8.19*HTSR)-(6.44*ATSR)-1.08;

    Where HTSR is the TSR of the home side over the previous 30 matches and ATSR is that of the away team.

    To convert this to a probability of the home team winning the game, finally take;

    Home Win Probability = (exp^F)/(1+exp^F) = 0.68

    The 30 game HTSR for Spurs was 0.56 and Sunderland’s ATSR was 0.43, giving Tottenham a likely winning probability of 0.68 when these numbers are put into the equations above.

    This compares to a much lower home win probability of 0.53, when judged on TSR over just the previous 10 games. The home and away constants used to determine the value of F using TSR from the previous 10 matches are 7.11 and 5.12 respectively and the lone constant is 1.23. These slightly different constants are again derived from five seasons of Premiership data, but using each team’s TSR over the previous 10 games.

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,498

    Re: Calculating probabilities

    Maybe this:
    Rating teamA divided by sum rating team A and team B

    Winning chance Team A: 0.690/(0.690+0.482)=0.589
    Winning chance Team B: 0.482/(0.690+0.482)=0.411
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  5. #5
    Registered User
    Join Date
    04-19-2015
    Location
    The Netherlands
    MS-Off Ver
    Excel 2011 MAC
    Posts
    6

    Re: Calculating probabilities

    Quote Originally Posted by popipipo View Post
    Maybe this:
    Rating teamA divided by sum rating team A and team B

    Winning chance Team A: 0.690/(0.690+0.482)=0.589
    Winning chance Team B: 0.482/(0.690+0.482)=0.411
    Sounds legit but isn't right as 0,56 vs. 0,43 =68%.

  6. #6
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,498

    Re: Calculating probabilities

    If one team has 59% of winning the other team has 41 %
    What is wrong with that??

    I don't understand the 68 %??
    68% * 0,56 =0,38

  7. #7
    Registered User
    Join Date
    04-19-2015
    Location
    The Netherlands
    MS-Off Ver
    Excel 2011 MAC
    Posts
    6

    Re: Calculating probabilities

    It are no percentages, it are just power ratings for a team based on statistics. Those can vary between 0,000 and 1,000.

  8. #8
    Registered User
    Join Date
    04-19-2015
    Location
    The Netherlands
    MS-Off Ver
    Excel 2011 MAC
    Posts
    6

    Re: Calculating probabilities

    Quote Originally Posted by popipipo View Post
    If one team has 59% of winning the other team has 41 %
    What is wrong with that??

    I don't understand the 68 %??
    68% * 0,56 =0,38
    And that 68% I get from the quoted example I posted.

  9. #9
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,498

    Re: Calculating probabilities

    quoted example I posted.
    I didn't read this, Sorry

  10. #10
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    16,161

    Re: Calculating probabilities

    Your reference is helpful. It says that the first step is the logistic regression, then assumes that you already know how to set up and perform the logistic regression. I would suggest that we start with some basic tutorials on logistic regression.

    Wikipedia can be a bit detailed, but it is also usually pretty thorough: http://en.wikipedia.org/wiki/Logistic_regression
    This one is interesting because he specifically explains the statistical concepts using Excel: http://www.real-statistics.com/logistic-regression/
    This one looks like an interesting introduction to logisitc regression: http://logisticregressionanalysis.com/

    Once we figure out the exact logistics equation that should go into this regression and the independent variables that go into it, then we can perform the regression and get the desired parameters (TSR, HTSR, and/or ATSR). Your example suggests that they are using y=(exp(F)/(1+exp(F)) where F=(8.19*HTSR)-(6.44*ATSR)-1.08. I would guess that our goal would be to use your historical data to perform the logistic regression to come up with HTSR and ATSR.

    How much of that makes sense, and what are you having trouble understanding?

  11. #11
    Registered User
    Join Date
    04-19-2015
    Location
    The Netherlands
    MS-Off Ver
    Excel 2011 MAC
    Posts
    6

    Re: Calculating probabilities

    Quote Originally Posted by MrShorty View Post
    Your reference is helpful. It says that the first step is the logistic regression, then assumes that you already know how to set up and perform the logistic regression. I would suggest that we start with some basic tutorials on logistic regression.

    Wikipedia can be a bit detailed, but it is also usually pretty thorough: http://en.wikipedia.org/wiki/Logistic_regression
    This one is interesting because he specifically explains the statistical concepts using Excel: http://www.real-statistics.com/logistic-regression/
    This one looks like an interesting introduction to logisitc regression: http://logisticregressionanalysis.com/

    Once we figure out the exact logistics equation that should go into this regression and the independent variables that go into it, then we can perform the regression and get the desired parameters (TSR, HTSR, and/or ATSR). Your example suggests that they are using y=(exp(F)/(1+exp(F)) where F=(8.19*HTSR)-(6.44*ATSR)-1.08. I would guess that our goal would be to use your historical data to perform the logistic regression to come up with HTSR and ATSR.

    How much of that makes sense, and what are you having trouble understanding?
    Thanks Shorty this helps a lot! I will look at those links first now to understand the logistic regression.
    What I have trouble with understanding is how to do this in Excel but second, in the example he/she uses the numbers 8,19, 6,44 and 1,08 that I have no idea where they are coming from.

    The parameters HTSR and ATSR we already have as:

    HTSR = home team rating.
    ATSR = away team rating.

  12. #12
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    16,161

    Re: Calculating probabilities

    I think an explanation of those values and where they come from would have to come from the author of the example. My guess is that they are simply empirical parameters that make the model work, but I have no idea beyond that where they come from or how they were determined.

    If you already understand the basic statistics behind this, my 2nd link to Charles Zaiontz's site might be the most interesting, as he explains these things in relation to Excel -- including how to use the Solver add-in to optimize the regression. Review those resources and come back with any further questions.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Probabilities and Excel
    By dita87 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-10-2015, 09:57 AM
  2. Permutations With Probabilities
    By stevenightingale in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-06-2012, 02:28 AM
  3. question about calculating probabilities
    By Askalian in forum Excel General
    Replies: 2
    Last Post: 11-17-2012, 09:06 PM
  4. [SOLVED] Probabilities
    By DaxtonAllen in forum Excel General
    Replies: 8
    Last Post: 03-30-2012, 03:10 PM
  5. Probabilities
    By phil2006 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2006, 12:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1