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
Get step-by-step solutions from verified subject matter experts
