Let p = (p 1 , . . . ,p n ) be a list of probabilities

Question:

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.

Coupon
A coupon or coupon payment is the annual interest rate paid on a bond, expressed as a percentage of the face value and paid from issue date until maturity. Coupons are usually referred to in terms of the coupon rate (the sum of coupons paid in a...
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question
Question Posted: