Rapleaf Interview Question Software Engineer / Developers
0of 0 votesAn Activity to Further Your Gambling Addiction
If you roll 5 standard six-sided dice, what’s the probability that you get at least two 4s?
Also: you were offered the following bet: we pay you $1003 if you roll at least two 4s but you have to pay Rapleaf $1003 if you don't. Would you take the bet? Why or why not?
probability of 2 fours = {a = 1/6, b = 5/6, a^5+(a^4 b) 5+a^3 b^2×(5!)/(3! 2!)+a^2 b^3×(5!)/(2! 3!)} = 763/3888

1-P(no_4)-P(only_one_4)= 1-(5/6)^5 - 5*(1/6)*(5/6)^4
- Anonymous on April 15, 2010 Edit | Flag Replyif the result is greater than 0.5, just take the bet, otherwise not.