Many Dice

Alan has a fair die numbered from 1 to m m inclusive and Edgar has n n fair dice numbered from 1 to p p inclusive. If n p m np \leq m , what is the probability that Alan rolls a higher number than the sum of Edgar's rolls?

n ( p + 1 ) 2 m \frac{n(p+1)}{2m} 1 n ( p + 1 ) 2 m 1 - \frac{n(p+1)}{2m} ( n + 1 ) p m \frac{(n+1)}{pm} 1 ( n + 1 ) ( p + 1 ) 2 m 1 - \frac{(n+1)(p+1)}{2m}

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Alan Yan
Jan 21, 2017

We denote P ( X = x ) P(X = x) as the probability that X = x X = x and E [ X ] \mathbb{E}[X] as the expected value of X X .

Let X X be the sum of Edgar's rolls and let X i X_i , 1 i n 1 \leq i \leq n be the value of the i i th die. We see that X = X 1 + X 2 + . . . + X n X = X_1 + X_2 + ... + X_n . Observe that from linearity of expectation, E [ X ] = E [ i = 1 n X i ] = i = 1 n E [ X i ] = n ( p + 1 ) 2 \mathbb{E}[X] = \mathbb{E} \left [ \sum_{i = 1}^n X_i \right ] = \sum_{i = 1}^n \mathbb{E} [X_i] = \frac{n(p+1)}{2} since the expected value of a single one of Edgar's die is p + 1 2 \frac{p+1}{2} .

Now, observe that if Edgar rolls a sum of i i , then Alan must roll i + 1 , i + 2 , . . . i+1, i+2, ... or m m . Thus, the desired probability is i = p n p P ( X = i ) m i m \sum_{i = p}^{np} P(X = i) \frac{m-i}{m} . We can simplify this in the following manner: i = p n p P ( X = i ) m i m = i = p n p P ( X = i ) 1 m i = p n p i P ( X = i ) = 1 1 m E [ X ] = 1 n ( p + 1 ) 2 m \begin{aligned} \sum_{i = p}^{np} P(X = i) \frac{m-i}{m} & = \sum_{i = p}^{np} P(X = i) - \frac{1}{m} \sum_{i = p}^{np} iP(X = i) \\ & = 1 - \frac{1}{m} \mathbb{E}[X] = \boxed{1 - \frac{n(p+1)}{2m}} \end{aligned} as desired.

Ivan Koswara
Jan 22, 2017

Hack: The answer must work with n = p = m = 1 n = p = m = 1 , in which the answer is 0. The only option that gives this answer is 1 n ( p + 1 ) 2 m \boxed{1 - \frac{n(p+1)}{2m}} .

Next time, maybe actually use concrete numbers so you can't bash your way through like this?

Nice hack but I prefer @Alan Yan 's solution

Anirudh Chandramouli - 4 years, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...