+ Reply to Thread
Results 1 to 5 of 5

Simple sports simulation

  1. #1
    Registered User
    Join Date
    01-10-2020
    Location
    São Paulo
    MS-Off Ver
    2016
    Posts
    4

    Question Simple sports simulation

    I'm not sure if I can use this forum to ask about hobby-related stuff, but I can't seem to find answers for my question in the Internet. If this is not allowed, I'm sorry!
    I am a fan of recreating old football (soccer) tournaments because I like to see what could have happened and who could have won the tournament in another "reality". My problem is on how to generate a result for every single match.
    Now, the thing is that I don't need everything to be as realistic as possible and I'm open to underdogs beating favorites sometimes. All I can find online are RANDOM results generator, meaning Salford City can beat Liverpool 5-0 and stuff like this. I want a little bit of reality.

    To keep it simple for those who don't want to read everything: I'm looking for a way to generate a soccer result for a match taking into consideration only TWO things: each team's strength (I can manually define this from 0 to 100) and the Home/Away factor. Just these two. Is there a way to do it in Excel? With or without Macros, I'm open to all suggestions

    Thanks!
    Last edited by Pepe Le Mokko; 01-13-2020 at 04:06 AM. Reason: Title shortened. Please stick to essentials

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

    Re: Help on how to use Excel for simple sports simulation

    Is there a way to do it in Excel and/or VBA? Short but useless answer -- yes, I'm sure it is possible.

    How much is an Excel programming question (you already know how you want to generate the random results, but are not sure how to program that algorithm into Excel) and how much is a more generic "what kind of algorithm should I use/develop"? We are pretty good at Excel programming if you can explain your desired algorithm to us, but we are not always as successful at developing brand new algorithms.

    If you already know your algorithm, explain it to us and we should be able to help you program that into Excel.

    If this is more generic, then I would need more research. The few times I have encountered football/soccer simulations, they used a random number generator (the math was pretty involved, as I recall) to randomly choose how many goals each team would score in a given match. From this, they could determine results and probabilities and so on and so forth.

    For example, assuming a uniform distribution of scores, you might use your "team strength" and "home/away" parameters to determine a maximum number of goals each team would score (5 goals for team A and 3 goals for team B, might be one possible outcome of this calculation). Then a simple =RANDBETWEEN(0,max goals) could be used to come up with each team's goals scored. The programming challenge is exactly how to use your "team strength" and "home/away" parameters to calculate "max goals". From what I recall from the previous discussions, most of the "higher math" was to use something other than a uniform distribution.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Help on how to use Excel for simple sports simulation

    You haven't given many rules to how you want to get the score, so I just made some suggestions to get the ball rolling. I created a table for all the Team names and you can assign a "Strength" number. I then also created a schedule table. I've assigned a "Factor" for the Home Team and also the Strength, and then applied a random factor to the results. See the attached and then let us know more specifics.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-10-2020
    Location
    São Paulo
    MS-Off Ver
    2016
    Posts
    4

    Re: Help on how to use Excel for simple sports simulation

    Quote Originally Posted by Gregb11 View Post
    You haven't given many rules to how you want to get the score, so I just made some suggestions to get the ball rolling. I created a table for all the Team names and you can assign a "Strength" number. I then also created a schedule table. I've assigned a "Factor" for the Home Team and also the Strength, and then applied a random factor to the results. See the attached and then let us know more specifics.
    This should be good! Thanks for the help, didn't know it was this easy

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Help on how to use Excel for simple sports simulation

    Administrative Note:

    Please don't quote entire posts unnecessarily. They clutter threads and make them hard to read.
    Use the "Quick reply" instead
    Thanks

+ 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. Simulation in Excel
    By Mihelherbiii in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-02-2016, 06:16 AM
  2. Macro to run a simple event-based simulation
    By Ronnet2 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-22-2015, 04:25 AM
  3. simple simulation
    By mastaliyev in forum Excel General
    Replies: 1
    Last Post: 07-22-2015, 03:46 AM
  4. Excel if statements for sports
    By Instantazn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-07-2010, 03:56 PM
  5. help in sports excel
    By j33p in forum Excel General
    Replies: 2
    Last Post: 02-07-2010, 06:14 PM
  6. how to run a simple simulation?
    By Psy6 in forum Excel General
    Replies: 2
    Last Post: 05-23-2008, 09:46 PM
  7. Sports Stats using Excel?
    By JDRick in forum Excel General
    Replies: 0
    Last Post: 01-15-2005, 08:59 AM

Tags for this Thread

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