User Tag List

Results 1 to 4 of 4

Thread: How to determine the top percentile of a range

  1. #1
    Clicker Fusion 2.5Android Export ModuleSWF Export Module
    Ziplock's Avatar
    Join Date
    Oct 2013
    Posts
    448
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to determine the top percentile of a range

    I am trying to build a Monte Carlo system for my sports league where I can determine the percentage each team will finish in the top 8 of the league after the last game of the season. Each team has an equal chance of beating their opponents every week and the win will get added to that team's record. After the last week (I have each week in a frame), I need to give a +1 point to an alterable variable for every team that has finished in the top 8 for that 1 simulation. Then I'll repeat this thousands of times to get a good average.

    Is there a good way of saying "Check this variable against all of these other variables. If it's in the top percentile, add 1 to another variable?"

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Hey Ziplock,
    trying to put my mind on this but can't understand what you're up to

    you want to check a value against a set of other values,
    and do something if it's in the top percentile of the series (pre-calculated, i guess?)

  3. #3
    Clicker Fusion 2.5Android Export ModuleSWF Export Module
    Ziplock's Avatar
    Join Date
    Oct 2013
    Posts
    448
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK, I have 12 teams in my league, but only 8 make the playoffs. I run random results for the regular season and end up with the following results:

    Team 1: 23 points
    Team 2: 27 points
    Team 3: 43 points
    Team 4: 19 points
    Team 5: 31 points
    Team 6: 55 points
    Team 7: 21 points
    Team 8: 12 points
    Team 9: 18 points
    Team 10: 35 points
    Team 11: 25 points
    Team 12: 39 points

    How do I pick out the 8 teams that have the most points so I can add to their probability of making the playoffs?

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    I think the easier-quicker path would be adding those scores as "trailed" values to a list object
    and adding team ID to the "line data" for that row

    i.e.

    add
    line 1 : 023 (line data= 1 for team 1)
    line 2 : 027 (line data= 2 for team 2)
    ...

    (assuming a range from 000 to 999)
    you can add trailing zeroes with string functions (something like left$(000,3-len("score")) + "score")

    then simply use the list "automatic sort" option,
    and pick last 8 rows "line data" value to retrieve team IDs
    (or store in the list 999-"team score" and pick first 8 rows)

Similar Threads

  1. Determine if value is odd or even?
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 22nd March 2014, 09:55 PM
  2. Determine if device is a phone
    By Keith in forum Android Export Module 2.5
    Replies: 2
    Last Post: 22nd March 2014, 03:39 PM
  3. Using coordinates to determine location?
    By XStar in forum iOS Export Module Version 2.0
    Replies: 10
    Last Post: 21st February 2013, 10:57 AM
  4. How can I determine if an audio CD is in the bay?
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 19th November 2010, 08:23 PM
  5. Is there a way to determine the default browser?
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 2nd September 2010, 12:58 AM

Posting Permissions

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