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
Solution a The mean of X is given by The integral over the list is where Px pi x We ... View full answer
Get step-by-step solutions from verified subject matter experts
