I've been struggling trying to find an analytical solution to this problem.

Let's say we have a dice game, played with n players rolling n, k sided dice, with k >= n. The dice determine the order of winning players: each player is assigned a number, from 1 to n, and all roll their k-sided dice simultaneously. Winners are selected each round if the number they roll is unique amongst the n players. If a players roll is matched by another player, then both must continue to the next round, and there can be more than one winner each round, or zero winners. All players roll their dice even if they have already won. All players keep rolling until all have won at least once. The problem is to find the average and expected number of rounds each games last as a function of n and k.

For example, if we had a game of 4 players, each rolling 4-sided dice, a potential game might proceed like this:

Roll 1 - (1,1,3,3) : no winning players, since no player rolled a unique number

Roll 2 - (1,2,2,3) : player 1 and player 4 win, since each rolled a unique number

Roll 3 - (1,1,3,4) : player 3 and player 4 win

Roll 4 - (1,3,3,4) : player 1 and 4 win

Roll 5 - (2,3,2,2) : player 2 wins

Each player has won at least once, so this game ends in 5 rounds.

It would make sense that as k becomes >> n, then the expected number of rounds would converge at 1 (since the probability of there being any matching number for a large sided dice tends towards zero for a large number of sides).

This is a simple problem to simulate, and running each game 1 million times shows the following result:

4 players, rolling 4-sided dice -> average number of rounds = 4.17346

4 players, rolling 10-sided dice -> average number of rounds = 1.806924

6 players, rolling 6-sided dice -> average number of rounds = 5.225997

6 players, rolling 10-sided dice -> average number of rounds = 3.043941

6 players, rolling 100-sided dice -> average number of rounds = 1.15475

This does not seem to be model-able with a Markov Chain, since the number of states is not fixed from game to game with a given n and k.

NOTE: this is not homework, but I came across this game in a PDF full of dice games and haven't been able to find or work-out a solution.

  • $\begingroup$ Is the PDF you mentioned A Collection of Dice Games by Matthew M. Conroy? I am interested in dice games, if not, could you please share it with me? Thanks a lot! $\endgroup$ – simplzh Aug 30 at 13:58
  • $\begingroup$ Why do you say the number of states is not fixed? Can’t we define the states as $W_s$ for each subset $s$ of the players, where the state $W_s$ means the players who have won at least once comprise the set $s$? The initial state is $W_\emptyset$, and the final absorbing state is $W_{\{1,\dots,n\}}$. There are $2^n$ states, and I'm not suggesting it's easy to model in general, but unless I’ve misunderstood the question, there seem to be well-defined states and computable transition probabilities. $\endgroup$ – Steve Kass Aug 30 at 20:47

I think there is not a general solution. Here is my solution on 4 players, rolling 4-sided dice case. Calculation is pretty complicated. I don't know if there is any better method.

First of all, we need to figure out results of each round of rolling. 4 players roll 4 dice, then we can get:

  • 0 winner: $p_0=\frac{10}{64}$
    • AAAA: $p_01=4*\frac{1}{4^4}=\frac{1}{64}$
    • AABB: $p_02={4\choose2}\frac{\frac{4*3}{2}}{4^4}=\frac{9}{64}$
  • 1 winner: $p_1=\frac{12}{64}$
    • AAAB: $p={4\choose1}\frac{4*3}{4^4}=\frac{12}{64}$
  • 2 winners: $p_2=\frac{36}{64}$
    • AABC: $p={4\choose2}\frac{4*3*2}{4^4}=\frac{36}{64}$
  • 3 winners: $p_3=0$
    • not possible
  • 4 winners: $p_4=\frac{6}{64}$
    • ABCD: $p=\frac{4*3*2*1}{4^4}=\frac{6}{64}$

$E(n)$ is the expected number of rolls to finish a game where $n$ players have not yet won at least once. So we want to know $E(4)$.

$$E(4)=1+p_0*E(4)+p_1*E(3)+p_2*E(2)$$ $$E(3)=1+p_0*E(3)+\frac{1}{4}p_1*E(3)+\frac{3}{4}p_1*E(2)+\frac{1}{2}p_2*E(2)+\frac{1}{2}p_2*E(1)$$ $$E(2)=1+p_0*E(2)+\frac{2}{4}p_1*E(2)+\frac{2}{4}p_1*E(1)+\frac{1}{6}p_2*E(2)+\frac{4}{6}p_2*E(1)$$ $$E(1)=1+p_0*E(1)+\frac{3}{4}p_1*E(1)+\frac{3}{6}p_2*E(1)$$

And I got $E(4)=6.401612$ which is not close to the simulation result. If you find out what's wrong with it please comment. Thanks a lot!

  • $\begingroup$ Can you explain your recursive formulas (just one of them, even)? For starters, it seems like the expected length of the $4$-player $4$-sided dice game $E$ should be $p_4+$something, since the game can end after one roll with probability $p_4$. It also seems like more information is needed than just the number of players winning a round, since on the first roll just player $1$ could win, and then on the second roll, just player $1$ could win again or just player $2$ could win, which two events (within the probability $p_1$ make different progress towards completion. $\endgroup$ – Steve Kass Aug 30 at 20:43
  • $\begingroup$ recursive formulas 1: $$𝐸(4)=𝑝_0∗(1+𝐸(4))+𝑝_1∗(1+𝐸(3))+𝑝_2∗(1+𝐸(2))+p_4*1 $$Yes, all we care about is win at least once, so that's why some recursive formulas have some fractions before $p_i$. $\endgroup$ – simplzh Aug 30 at 21:08
  • $\begingroup$ Ok, two more questions. First, should you have the word not in the definition of $E(n)$? It seems like you are computing $E(4)$ as the expected number of games required for $4$ players to have won, not to not have won. Second, in the formula you explained, I get the $p_4\times1$ term, but if after the first roll $2$ players win, then why is the expected number of successive games remaining $E(2)$? It seems like it should be more complicated. It seems like the expected number is the number of games where a particular two players (and possibly others) finally win. $\endgroup$ – Steve Kass Aug 30 at 21:19
  • $\begingroup$ First, before the game starts, we have $4$ players have not won at least once, at the end, we have $0$ player have not won at least once; Second, that's what I meant just now. Suppose 2 players A, B have won at least once. In this round, we have 2 players won. Then we need to consider three situations 1. A, B both won; 2. A or B won; 3. neither of A, B won. So there is some fractions in last 3 recursion formula. $\endgroup$ – simplzh Aug 30 at 21:27
  • $\begingroup$ Thanks! I get it now: Instead of “$E(n)$ means $n$ players have not won at least once.” you mean “$E(n)$ is the expected number of rolls to finish a game where $n$ players have not yet won at least once.” Your probabilities and recursion look good to me now, but I didn't solve them or simulate the game to see why they don't match the OP'S simulation. $\endgroup$ – Steve Kass Aug 30 at 22:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.