Suppose a ballot question has a 50% chance of getting approved.
You decided to survey the people coming out of the polling booth if they voted Yes for the ballot question.
You will be asking them the question until you get 5 Yes responses.
Write the R code and the corresponding answer for each of the following using the appropriate distribution.
a) What is the probability that you will get your fifth Yes response from surveying 15 people?
b) What is the probability that you will get your fifth Yes response from surveying atmost 15 people?
c) Atmost how many people you will need to survey to get your fifth Yes response with 50% probability?
d) Suppose 100 poll exit surveyors do the same at 100 different polling stations. Simulate the number of people each one would have asked to get the fifth Yes response for each surveyor. Use set.seed(675) for this solution. Show the frequencies of the results. What is the highest frequency? What is the interpretation of this value?