Alice and Bob have 9 coins, each with probability of a head equal to p = .6. Bob tosses 5 coins, while Alice tosses the remaining 4 coins. Assuming that all tosses are independent, compute the probability that Bob gets more heads than Alice.
Note :: The probability is calculated using the R-software by the codes:
p=function(x) dbinom(x,5,0.6)
q=function(x) dbinom(x,4,0.6)
prob=0
for(i in 2:5){
{for(j in 1:(i-1))
prob=prob+p(i)*q(j)}}
prob
Get Answers For Free
Most questions answered within 1 hours.