A manager of a store wants to give away some money to her well-earned employees. So, she sets up 20 vases with 1(worthless) lead coin and 1 gold coin in each. Then, she lets an employee roll a single 20-sided die to determine how many vases the employee can sample from. If the employee rolls a k on the die, they can draw 1 coin from k-many vases. (For example, if the employee rolls a 5, they walk away with 5 coins, some of which are worthless lead, but the rest are gold). The die is fair, vases are indistinguishable, and a gold coin feels exactly like a lead coin, so everything here is perfectly random.
a) What is the probability that the employee walks away with EXACTLY 8 gold coins?
b) What is the probability that the employee walks away with AT LEAST 8 gold coins?
c) What is the expected value of the number of gold coins a person wins?
R code:
x=8:20
p=choose(x,8)*(0.5)^x*(1/20)
round(sum(p))
R code:
sum=0
for(x in 8:20)
{
for(y in 8:x)
{
sum=sum+choose(x,y)*(0.5)^x*(1/20)
}
}
sum
A manager of a store wants to give away some money to her well-earned employees. So, she sets up 20 vases with 1(worthless) lead coin and 1 gold coin in each. Then, she lets an employee roll a single...