Six people choose a whole number from the range 1 to 10 (inclusive) independently and randomly. What is the probability that there will be two matching numbers and four non-matching numbers?
Example: 6, 2, 7, 4, 6, 10 works
Example: 2, 7, 1, 4, 4, 1 doesn't work
Example: 6, 2, 7, 3, 7, 7 doesn't work
Write your answer as a percentage.
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.
The "counting" version of this (if yours is the probability version) is to say there are 1 0 6 possible choices altogether, of which ( 2 6 ) × ( 1 1 0 ) × ( 4 9 ) × 4 ! = 1 5 × 1 0 × 1 2 6 × 2 4 = 4 5 3 6 0 0 meet the criterion. This comes from ( 2 6 ) ways to pick two people with the same number, ( 1 1 0 ) choices of what that number is, ( 4 9 ) ways to pick four other numbers, and 4 ! ways to assign them to the remaining four people. (I'm not posting this as a separate solution because it isn't, really, but it gives a slightly different way of looking at it.)
Or in Python!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|
More of a brute force solution, but the clever thing here is we're looking for cases where we have 5 distinct numbers out of the 6 that we've chosen
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
Problem Loading...
Note Loading...
Set Loading...
Let's suppose that the second and first person choose the same number and the others choose different numbers.
The probability of that happening is 1 0 1 × 1 0 9 × 1 0 8 × 1 0 7 × 1 0 6 because the second person has a 1 0 1 chance of choosing the same number as the first person, the third person has a 1 0 9 chance of choosing a number different from the first two people, and so on.
However, there are ( 2 6 ) = 1 5 ways of choosing the two people whose numbers match, so we must multiply the answer we got, 0.03024, by 15, to get 0.4536, which is 4 5 . 3 6 as a percentage.