(Solved) : 13 Birthday Paradox Problem Suppose Group N People Re Interested Examining Event Least Two Q37395481 . . .
pyhton programming
1.3 Birthday Paradox Problem Suppose there are a group of n people. We’re interested in examining the event in which at least two people share the same birthday and its probability as a function of n. Let’s define the random variable X as follows: If in a group of n people there are people (two or more) that share the same day as their birthday, X is equal to 1 otherwise X0. Assume a year is always 365 days, hence no leap year’s hassle. A) What is the value of n for which P(X-1)-0? What is the value of n for which Px)-1? B) What is the theoretical value of P(1) for n 2? C) Write a function named Birthday Paradox that emulates X. This function should take the number of people rn as the input, assign a day of the year from 1 to 365 to each penson randomly, and then scan the results. If there are people with the same birthday it retums 1″, otherwise it returns O D) Rr each population of people r., 1. 2….。306, run the function Brit lulay Parackx for 10XXXX) tiznes. (Brace yourselves, this can take a bit long!). For each n, otimate PCX = “1”) fran sirnulatious. Stare thwrewults. E) Plot than P(X = “1”) values from thr part D vetsus n. What treuxl d) yon see? Plot the approxinate function 1-exp(-0i in the same plot. Compare the two cures Show transcribed image text
Expert Answer
Answer to 13 Birthday Paradox Problem Suppose Group N People Re Interested Examining Event Least Two Q37395481 . . .
OR