Question: Let p = (p 1 , . . . ,p n ) be a list of probabilities with p 1 + + p n

Let p = (p1, . . . ,pn) be a list of probabilities with p1 +· · ·+ pn = 1. Write a function coupon(n, p) which generalizes the function, above, and simulates the coupon collector’s problem for unequal probabilities, where the probability of choosing item i is pi. For n = 52, let p be a list of binomial probabilities with parameters 52 and 1/2. Use your function to simulate the mean and standard deviation of X.

Step by Step Solution

3.39 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Solution a The mean of X is given by The integral over the list is where Px pi x We ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Probability With Applications Questions!