Chapter 11: Problem 13
The Discrete Rejection Metbod: Suppose we want to simulate \(X\) having probability mass function \(P\\{X=i\\}=P_{i}, i=1, \ldots, n\) and suppose we can easily simulate from the probability mass function \(Q_{i}, \sum_{i} Q_{i}=1, Q_{i} \geqslant 0 .\) Let \(C\) be such that \(P_{i} \leqslant C Q_{i}, i=1, \ldots, n .\) Show that the following algorithm generates the desired random variable: Step 1: Generate \(Y\) having mass function \(Q\) and \(U\) an independent random number. Step \(2:\) If \(U \leqslant P_{Y} / C Q_{Y}\), set \(X=Y .\) Otherwise return to step \(1 .\)
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.