What is the probability that a roll of 5 distinct dice yields a sum of 17)? Round to 4 significant figures.
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.
N O T E : − X m ∣ f ( x ) D e n o t e s t h e c o e f f i c i e n t o f X m i n f ( x )
U s i n g M u l t i n o m i a l t h e o r e m c a l c u l a t i o n o f t o t a l n u m b e r o f p o s s i b l e c a s e s . L e t X i d e n o t e s t h e n u m b e r a p p e a r i n g o n i t h D i c e X i ∈ { 1 , 2 , 3 , 4 , 5 , 6 } ∑ i = 1 5 X i = 1 7 X 1 7 ∣ ( x + x 2 + x 3 + x 4 + x 5 + x 6 ) 5 X 1 2 ∣ ( 1 + x + x 2 + x 3 + x 4 + x 5 ) 5 X 1 2 ∣ ( x − 1 x 6 − 1 ) 5 = 7 8 0 T o t a l n u m b e r o f c a s e s a r e = 6 5 T h e r e f o r e P r o b a b i l i t y = 6 5 7 8 0
When introducing new notation, you should make the definition clear at the start, so that someone who is reading the solution can easily follow through at the start, instead of reading all the way to the end before realizing "Oh, that's what he wants".
When introducing new notation, you should make the definition clear at the start, so that someone who is reading the solution can easily follow through at the start, instead of reading all the way to the end before realizing "Oh, that's what he wants".
Log in to reply
Ok i will do it in my upcoming solutions.
Log in to reply
Could you edit your solution accordingly? Thanks!
Also, include a brief explanation of how the coefficient could be calculated.
Could you provide some clarification about how you applied the multinomial theorem to get
X 1 2 ∣ ( x − 1 x 6 − 1 ) 5 = 7 8 0
Thanks.
Log in to reply
Unfortunately, I do not believe that there is an easy way of doing so, other than essentially calculating the full polynomial.
I encourage you to read Steve's solution about Stars and Bars, which is how I would approach this problem for small numbers.
Log in to reply
Yes, I tried applying it to ( 1 + x + x 2 + x 3 + x 4 + x 5 ) 5 and immediately realized it was much too complex to solve by hand. I guess my question was more about whether re-writing it as the rational ( x − 1 x 6 − 1 ) 5 would make it any easier; the little I've read about the Multinomial Theorem gives no indication about how to (or even whether one can) apply it to rational expressions. I did read Steve's solution and found it very interesting.
D&D-Notation: m d N is a shorthand for "Throw m dice with N equal surfaces labeled 1 ; … ; N and calculate their sum."
In this problem, we want to calculate the probability distribution function p 5 ( n ) for a 5 d 6 roll and evaluate at n = 1 7 . The dice are independent from each other. Let's begin with one die:
The pdf for a 1 d N roll is easy to write down. Using the discrete unit step function r 0 ( n ) , we get rid of the two cases: p 1 ( n ) = { N 1 : 0 : 1 ≤ n ≤ N else = N 1 ( r 0 ( n − 1 ) − r 0 ( n − ( N + 1 ) ) ) = : q 1 ( n − 1 ) ∣ ∣ ∣ ∣ ∣ r 0 ( n ) : = { 1 : 0 : n ≥ 0 else
The function q 1 ( n ) gets rid of the translation by 1 to the right.
What about an m d N roll? The pdf for each die is p 1 ( n ) , of course. and all dice are independent from each other - but we are interested in their sum! Recall that the pdf of the sum of m independent random variables is the convolution of their pdf's: p m ( n ) q m ( n ) = m × p 1 ( k ) ( p 1 ( k ) ∗ … ∗ p 1 ( k ) ) ( n ) = ( q 1 ( k − 1 ) ∗ … ∗ q 1 ( k − 1 ) ) ( n ) = ( q 1 ( k ) ∗ … ∗ q 1 ( k ) ) ( n − m ) = : q m ( n − m ) : = m × q 1 ( k ) ( q 1 ( k ) ∗ … ∗ q 1 ( k ) ) ( n ) = N m 1 l = 0 ∑ m ( − 1 ) l ( l m ) r m − 1 ( n − l N ) ( ∗ )
The last step can be shown by induction over m : m = 1 : m ⇝ m + 1 : q 1 ( n ) q m + 1 ( n ) = N 1 ( r 0 ( n ) − r 0 ( n − N ) ) = ( q m ( k ) ∗ q 1 ( k ) ) ( n ) ( ∗ ) = N m 1 l = 0 ∑ m ( − 1 ) l ( l m ) ( r m − 1 ( k − l N ) ∗ q 1 ( k ) ) ( n ) ( ∗ ∗ ) = N m + 1 1 l = 0 ∑ m ( − 1 ) l ( l m ) ( r m ( n − l N ) − r m ( n − ( l + 1 ) N ) ) = N m + 1 1 ( r m ( n ) + l = 1 ∑ m ( − 1 ) l [ ( l m ) + ( l − 1 m ) ] r m ( n − l N ) + ( − 1 ) m + 1 r m ( n − ( m + 1 ) N ) ) = N m + 1 1 l = 0 ∑ m + 1 ( − 1 ) l ( l m + 1 ) r m ( n − l N )
In the special case of a 5 d 6 roll, the pdf evaluated at n = 1 7 is given by p 5 ( 1 7 ) = q 5 ( 1 7 − 5 ) = q 5 ( 1 2 ) = 6 5 1 l = 0 ∑ 5 ( − 1 ) l ( l 5 ) r 4 ( 1 2 − 6 l ) = 6 5 1 ( ( 0 5 ) ( 4 1 2 + 4 ) − ( 1 5 ) ( 4 6 + 4 ) + ( 2 5 ) ( 4 4 ) ) = 6 5 7 8 0 ≈ 0 . 1 0 0 3
Theorem: Let m ∈ N 0 , n ∈ Z and r 0 ( n ) be the discrete unit step function. Then r m ( n ) : = r 0 ( n ) ⋅ ( m n + m ) ⇒ r m + 1 ( n ) = ( r m ( k ) ∗ r 0 ( k ) ) ( n ) ∣ ∣ ∣ ∣ ∣ r 0 ( n ) : = { 1 : 0 : n ≥ 0 else ( ∗ ∗ )
Prove it directly for n < 0 and by induction over n for n ≥ 0 !
No# Dice = n (i.e5) Range of Sum n >= k <= 6n (5 to 30). Written Program to Print Number of Possible condition for each SUM Num[5]=1 Num[6]=5 Num[7]=15 Num[8]=35 Num[9]=70 Num[10]=126 Num[11]=205 Num[12]=305 Num[13]=420 Num[14]=540 Num[15]=651 Num[16]=735 Num[17]=780 Num[18]=780 Num[19]=735 Num[20]=651 Num[21]=540 Num[22]=420 Num[23]=305 Num[24]=205 Num[25]=126 Num[26]=70 Num[27]=35 Num[28]=15 Num[29]=5 Num[30]=1
780/(6^5) = 0.1003
but the answer just says 0.1
Log in to reply
floating point error?
Problem Loading...
Note Loading...
Set Loading...
Solution: Apply the stars and bars principle with 17 stars and 4 bars. The 4 bars must be placed among the 16 spaces between the bars to simulate dice outcomes. This can be done in C(16,4) ways, but this includes outcomes where at least some of the 5 bins contain more than 6 stars. Suppose (WLOG) the first bin contains more than 6 stars. To count the number of ways this can happen suppose the first bin contains 6 stars at the outset, then apply stars and bars to the remaining 11 stars. This yields C(10, 4) ways to distribute the 11 stars into the 5 bins. Since this scenario can occur for each of the 5 bins, there are 5∙C(10,4) of these outcomes in all. Note that all outcomes in which two bins containing more than 6 stars were counted twice here, so we can apply the principle of inclusion-exclusion to restore these outcomes to the count. There are C(5, 2) ways to choose the two bins containing more than 6 stars and for each of these cases we can apply stars and bars to count the number of ways of distributing the remaining 5 stars into the 5 bins. This yields C(5, 2))∙C(4, 4)) outcomes to be added back. Therefore, the required probability is (C(16, 4)) - 5∙C(10, 4)) + C(5, 2))∙C(4, 4)))/6^5 =780/7776=65/648≈.1003 which is consistent with published probability tables.