Question: Write c code for the following i. (Birthday paradox revisited) Compute analytically the probability that at least two people in a group of N persons


Write c code for the following i. (Birthday paradox revisited) Compute analytically the probability that at least two people in a group of N persons have the same birthday Hint: Let's say, N 4. Then, the number of possible birthday combinations for 4 persons is 365 x 365 x 365 x365 The number of possible cases where 4 persons have different birthdays (no one shares the same birthday) is 365 x 365 x 365 x 365 Therefore, the probability that all 4 persons have different birthdays is 365 364 363 362 365 365 365 365 probability that at least two people out of 4 have a same birthday is
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
