Simulating a game where each player has a different probability of winning?

jmasterx

Say I have 4 players:

Player 1 wins 50% of his games
Player 2 wins 20% of his games
Player 3 wins 90% of his games
Player 4 wins 20% of his games

I need a way to model different players playing together and randomly selecting a winner, but such that the winner makes sense.

My first idea was to do this:

If my random number falls between 1 and 50, player 1 wins, if my random number falls between 51 and 101, player 2 wins, if it falls between 102 and 192, player 3 wins, and if it falls between 193 and 203, player 4 wins.

I pick a number between 1 and 203 to determine the winner. Assuming my random number is uniformly distributed, I should expect to get what I want.

I'm wondering if there is a more mathematical way to do this or if this is the only way? (leveraging the language c++)

Steve

I will change this comment into an answer since I have more:

I like ELO ratings. Harkness wrote a book many years ago describing how the US Chess Federation implemented its rating with an extension of a basic ELO system. As an aside when a new player would be establish his rating the first 25 games were based on a strictly ELO system. (Wish I could give a reference, but my work computer won't let me navigate to any site that concerns games).

Getting into the numbers and algorithms it was 'easy' to generate a Rating based on win percentage. Once you have ratings you can then calculate head to head probability of winning based on difference of ratings.

Once you have head to probabilities then add up each players probabilities of winning against his three opponents and declare the highest total the winner. If you want specific probabilities of a person winning the Round Robin, you can use elementary statistical analysis to calculate the variance of winning percentage over all from the sum of the individual game variances.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Simulating a game where each player has a different probability of winning?

From Dev

Picking a random option, where each option has a different probability of being picked

From Dev

Optimal algorithm for winning score in a tournament (with demo 2 player game)

From Dev

Calculate the Probability of winning (wins/ (wins + losses)) with 10,000 simulations in the game of craps.. this is part of an assignment

From Dev

Swarmplot in seaborn where each point has a different colour

From Dev

SimPy Resource of 3 where each has different characteristics

From Dev

Fixed Layout EPUB where each page has a different size

From Dev

Android marquee where each letter has different color

From Dev

Simulating a Volleyball game in MATLAB

From Dev

MySQL Winning Streak for every Player

From Dev

Simulating data in R with multiple probability distributions

From Dev

Returning an element from an ArrayList of collections, where each collection has a different element type

From Dev

Python import text file where each line has different number of columns

From Dev

Parse JSON Array where each member has different schema but same general structure

From Dev

how to plot multiple time series in chartjs where each time series has different times

From Dev

Python import text file where each line has different number of columns

From Dev

How to save multiple output in multiple file where each file has a different title coming from an object in python?

From Dev

IntelliJ - How to define a project SDK where each developer has a different SDK for it?

From Dev

Pygame TikTacToe Player Winning Problem How To Fix?

From Dev

Excel: Conditional probabilities of winning a tiebreaker game

From Dev

simulating click event of a different selector

From Dev

simulating click event of a different selector

From Dev

How do I calculate the probability of a presidential candidate winning?

From Dev

JDialog has different behavior each time it is created

From Dev

Libgdx - About 2 player game. I want each player can touch his own area with one finger

From Dev

How to use different WHERE clauses for each column

From Dev

Laravel query: Different where clauses for each select

From Dev

Different Where Clause for each selected columns

From Dev

Building Player for car game

Related Related

  1. 1

    Simulating a game where each player has a different probability of winning?

  2. 2

    Picking a random option, where each option has a different probability of being picked

  3. 3

    Optimal algorithm for winning score in a tournament (with demo 2 player game)

  4. 4

    Calculate the Probability of winning (wins/ (wins + losses)) with 10,000 simulations in the game of craps.. this is part of an assignment

  5. 5

    Swarmplot in seaborn where each point has a different colour

  6. 6

    SimPy Resource of 3 where each has different characteristics

  7. 7

    Fixed Layout EPUB where each page has a different size

  8. 8

    Android marquee where each letter has different color

  9. 9

    Simulating a Volleyball game in MATLAB

  10. 10

    MySQL Winning Streak for every Player

  11. 11

    Simulating data in R with multiple probability distributions

  12. 12

    Returning an element from an ArrayList of collections, where each collection has a different element type

  13. 13

    Python import text file where each line has different number of columns

  14. 14

    Parse JSON Array where each member has different schema but same general structure

  15. 15

    how to plot multiple time series in chartjs where each time series has different times

  16. 16

    Python import text file where each line has different number of columns

  17. 17

    How to save multiple output in multiple file where each file has a different title coming from an object in python?

  18. 18

    IntelliJ - How to define a project SDK where each developer has a different SDK for it?

  19. 19

    Pygame TikTacToe Player Winning Problem How To Fix?

  20. 20

    Excel: Conditional probabilities of winning a tiebreaker game

  21. 21

    simulating click event of a different selector

  22. 22

    simulating click event of a different selector

  23. 23

    How do I calculate the probability of a presidential candidate winning?

  24. 24

    JDialog has different behavior each time it is created

  25. 25

    Libgdx - About 2 player game. I want each player can touch his own area with one finger

  26. 26

    How to use different WHERE clauses for each column

  27. 27

    Laravel query: Different where clauses for each select

  28. 28

    Different Where Clause for each selected columns

  29. 29

    Building Player for car game

HotTag

Archive