Chapter 11: Problem 14
The Discrete Hazard Rate Method: Let \(X\) denote a nonnegative integer valued random variable. The function \(\lambda(n)=P\\{X=n \mid X \geqslant n\\}, n \geqslant 0\), is called the discrete hazard rate function. (a) Show that \(P\\{X=n\\}=\lambda(n) \prod_{i=0}^{n-1}(1-\lambda(i))\) (b) Show that we can simulate \(X\) by generating random numbers \(U_{1}, U_{2}, \ldots\) stopping at $$ X=\min \left\\{n: U_{n} \leqslant \lambda(n)\right\\} $$ (c) Apply this method to simulating a geometric random variable. Explain, intuitively, why it works. (d) Suppose that \(\lambda(n) \leqslant p<1\) for all \(n\). Consider the following algorithm for simulating \(X\) and explain why it works: Simulate \(X_{i}, U_{i}, i \geqslant 1\) where \(X_{i}\) is geometric with mean \(1 / p\) and \(U_{i}\) is a random number. Set \(S_{k}=X_{1}+\cdots+X_{k}\) and let $$ X=\min \left\\{S_{k}: U_{k} \leqslant \lambda\left(S_{k}\right) / p\right\\} $$