If a fair 6-sided dice is rolled 3 times, what is the probability that we will get at least 1 even number and at least 1 odd number?
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.
I don't understand the last paragraph of this solution. Where has the 1 come from? And the minus 2? Why do we have to multiple minus 2 by the fraction 1/8?
Log in to reply
When working with probabilities you always have the fact that they are between 0 and 1, hence an opposite event P n of what you are searching for will be 1 - P n. This fact follows from the idea that all probabilities need to add up to 1, so, if the probability you are searching for is P, then P + P n = 1. In this case P is the question asked and P n is the opposite to the question (all odd and all even). We multiply by 2 simply because 1/8 is a probability that all the numbers will be even and 1/8 is probability that all the numbers will be odd. Hence, the total probability is 2 * 1/8.
1 represents certainty, i..e, all possibilities combined. There are two situations where the outcome is NOT "atleast one even and atleast one odd". That would be when all three dice roll an odd number, or all three roll an even number. Each of the two outcomes has probability of 1/8. Hence, the -2. The minus to subtract the invalid cases, and 2 because, obviously there are two cases.
Outcome of 3 consecutive rolls must be one of these(e=even,o=odd)
(e,e,e),(e,e,o),(e,o,e),(e,o,o), (o,e,e),(o,e,o),(o,o,e),(o,o,o)
So the probability to get at least 1 even number and at least 1 odd number=6/8=3/4
There are 216 possible outcomes of rolling the two fair 6-sided dice. (because of 6 x 6 x 6 or 6^3)
By listing all the possible outcomes
You will notice that per number there are 9 possibilities where in the numbers are all even numbers or all are odd numbers
For example:
for the number 1 ( i mean that this is if the outcome if the 1st die is 1)
you may have the outcomes:
(1,1,1) (1,1,3) (1,1,5) (1,3,1) (1,3,3) (1,3,5) (1,5,1) (1,5,3) (1,5,5)
for the different numbers 2 - 6 , there will also be the same number of outcomes but if the number is even, the number used are also even (for exmple is 2 , 246 is a possible outcome.)
So 9 x 6 = 54 ( since there are 6 possible outcomes for the 1st die)
216 - 54 = 162 ( since those 54 outcomes are the unwanted outcomes, so 162 is the number of favorable outcomes.)
Because of the formula: Number of favorable outcomes/Total number of possible outcomes;
the probability is 162/216 = 3/4 or 0.75
Is there a more direct way of approaching this problem? Given that the answer is 3/4, maybe there is an easier way than listing out all 216 possibilities.
Log in to reply
We have 8 equaly likely possibilities (Since the chance of getting an even number is the same than getting an odd number) [ Even (E) Odd (O) ] E E E - E E O - E O E - O E E - O O O - O O E - O E O -E O O
6 of these approaches works so the chances are 6/8 = 3/4.
The chance that two dices getting 1 odd and 1 even is 1 / 2 .
The chance that the next dice gets 1 odd or 1 even is 1 / 2 .
Each combination of even and odd for 2 dice rolls have 1 / 2 ∗ 1 / 2 = 1 / 4 of chance to be picked at random.
So, following this logic:
1º and 2º dices :
[ e , e ] , [ e , o ] , [ o , e ] , [ o , o ] = 1 / 4
3º dice :
[ e ] , [ o ] = 1 / 2
Then :
[ e , e , 3 º ] , [ e , o , 3 º ] , [ o , e , 3 º ] , [ o , o , 3 º ] = 1 / 4 + 1 / 2 = 3 / 4
Clarification :
If 3º is even
[ e , e , e ] is out
[ e , o , e ] , [ o , e , e ] and [ o , o , e ] are in
So 3 / 4 are in.
Of three rolls, the possibilities are: EOE EEO OEE OOE OEO EOO OOO EEE
We get atleast an even and an odd roll in 6 of the 8 cases above, so the probability will be 6/8, which simplifies to 3/4
Python 2.7:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|
Nice one, a cool trick I learned is that you can replace roll % 2 == 0 with 'not roll%2' and roll % 2 != 0 with 'roll%2'.
Problem Loading...
Note Loading...
Set Loading...
Of three rolls, there are only two ways when the condition "atleast one even and atleast one odd roll" is NOT satisfied. The condition is not satisfied only when all the rolls are even or all the rolls are odd. With a fair dice, the probability of three even rolls = probability of three odd rolls = 1/2 * 1/2 * 1/2 = 1/8
Hence, the required probability is =1 - 2 * 1/8 = 3/4.