Win Distributions
What is a Win Distribution?
A win distribution looks at every possible schedules and counts the records from each schedule. (eg. In how many schedules did Team 1 go 0-14. In how many schedules did Team 1 go 1-13, etc.)
With over possible schedules in most league formats, the counts are extremely large, so the counts are converted to a percentage by dividing by the total number of possible schedules.
Example Win Distribution (Full Season)
0-14 | 1-13 | 2-12 | 3-11 | 4-10 | 5-9 | 6-8 | 7-7 | 8-6 | 9-5 | 10-4 | 11-3 | 12-2 | 13-1 | 14-0 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Win Percentage (%) | 0.030 | 0.560 | 3.510 | 11.05 | 20.75 | 25.25 | 20.79 | 11.82 | 4.67 | 1.27 | 0.230 | 0.020 | 0.010 | 0.000 | 0.000 |
In this example win distribution, in of schedules, the team's record was 3-11
Creating a Win Distribution
One Week
The simplest win distribution is one week. For a given team, , and week, , count how many teams they would have beat if they played them, and how many teams they would have lost to.
For example, in a 6 team league, if would have won against 3 teams and lost against the other 2 teams, then the percentage of schedules that was 1-0 is and the percentage of schedules that was 0-1 is .
0-1 | 1-0 | |
---|---|---|
Win Percentage (%) | 40 | 60 |
In a 6 team league, there are 5 other teams to play against, since you cannot play against yourself.
Adding Another Week
To add another week, , follow the same process as above to determine how teams would have won or lost against in .
When adding another week, the number of schedules increases exponentially. In this example, there is 25 schedules that we need to determine the outcome of.
For example, let's say would have won 4 games and lost 1 games in . To find the percentage of schedules that went 2-0, we start by looking at the schedules where won . Each of the 3 winning schedules from will have 4 schedules where also won in .
The percentage of schedules where was 1-1 is the percentage of schedules where won and lost plus the percentage of schedules where lost and won .
Finally, calculating the percentage of schedules where went 0-2,
0-2 | 1-1 | 2-0 | |
---|---|---|---|
Win Percentage (%) | 8 | 44 | 48 |
To add more weeks, continue this process with additional weeks!
Try creating scores for each of the 6 teams for 2 weeks. Then create all 25 possible matchups for one team count the number of 0-2, 1-1, 2-0 records.
Using Percentages Instead of Counts
Since the counts can get massive (over ) there can be problems with integer overflow. To avoid this problem, percentages are used instead.
Looking at the calulation for the percentage of schedules that went 1-1, the fractions can be split up into percentages.
This can be be generalized. For:
- = Number of wins
- = Number of weeks
- = Percentage of records with wins after weeks
- = Percentage of wins in week
- = Percentage of losses in week
Edge Cases
Ties
In most scoring formats, ties are extremely rare. Due to their rarity and to help simplify the math, winners of a tied game is chosen with a coin flip.
Losses
If ties are ignored, then losses can be inferred by the number of wins a team has and how many weeks have been played in the season.
Divisions and Playing Teams Equally
Our win distributions look at every possible schedule, including schedules where a Team 1 plays Team 2 every single week of the season. The math is significantly more complex to account for divisions / playing teams an equal amount of times and simulating schedules with code would take a very long time.
Rounding and Floating Point Math
Due to rounding and/or very small accuracy issues from floating point arithmetic, all numbers in a win distribution may not perfectly sum up to .