Question: Acceptance-Rejection Algorithm for discrete random variables 1. Generate a rv Y distributed as q(k). 2. Generate U (independent from Y ). 3. If U p(Y

Acceptance-Rejection Algorithm for discrete random variables

1. Generate a rv Y distributed as q(k).

2. Generate U (independent from Y ).

3. If U p(Y ) cq(Y ) , then set X = Y ; otherwise go back to1

can i get the r coed for this question for the poison and negative binomial distribution

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Mathematics Questions!