Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Imagine you have a random sample of k people and want to find the probability that 2 or more have the same birthday. What is
Imagine you have a random sample of k people and want to find the probability that 2 or more have the same birthday. What is intriguing about this problem is that the answer is quite counterintuitive. Calculation Suppose A is the event that 2 or more people in the sample (size k) have the same day of birth. Assume 365 days per year and that all birthdays are equally likely. On paper neatly derive the formula for P(A) as a function of k. Create an R function that will calculate the probability for any k>2, call it ptormore(k) Hint: You may find Ifactorial(), Ichoose() useful
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started