Walmart Labs Interview Question | Dice
Question
Let’s say you’re playing a dice game. You have 2 die. What’s the probability of rolling at least one 3?
in progress
0
Statistics
55 years
4 Answers
826 views
Great Grand Master 0
Answers ( 4 )
Here there are two possibilities,
Case 1: One die is rolled and it appears 3 and the other one in not three.
Case 2. Both the die appear 3.
The required probability = case1 or case 2
= 1/6*5/6 + 1/6*1/6
=6/36
=1/6
Each die has a 5/6 chance of avoiding a three, so a pair of dice would have a 5/6 x 5/6 = 25/36 chance of not rolling a three. From that we can conclude that there must be a 11/36 chance of getting at least one three
(1,3), (2,3),(4,3),(5,3),(6,3)
(3,1), (3,2),(3,4),(3,5),(3,6)
(3,3)
Total = 11
so probability of at least one three =
11/36
Sample space:
(1,3), (2,3),(4,3),(5,3),(6,3)
(3,1), (3,2),(3,4),(3,5),(3,6)
(3,3)
Total likely evebts= 11
P robability of at least one three =
11/36