'Probability of an event occurring, based on percentage win rate of each player
The scenario is: p1_win_rate = 0.6; p2_win_rate = 0.3;
What are the percentage chances of Player 1 (with the win skill rate of 60%) to win against Player 2 (with the win skill rate of 30%), taking in account each player win percentage rate.
I came out with the basic formula:
p1_win_chance = p1_win_rate/(p1_win_rate + p2_win_rate); // in this scenario => p1_win_chance =(0.6/(0.6 + 0.3)) = 0.6666 (approx)
p2 = 1 - p1_win_chance; // p2_win_chance = 1 - 0.6666 = 0.3333 (approx).
Should I use a loop with random simulation and if yes, how this can be implemented knowing that p1 has a double win rate than p2 but still, 60% win rate doesn't seems to be a very promising win rate. Therefore, p2 may win 1 of 3 duels, 1 of 4 or 1 of 2.
I have a feeling that I'm not using the correct formula. Or I am overcomplicating this?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
