Chapter 10: Problem 11
Use the rejection method with \(g(x)=1,0
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.
/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none}
Learning Materials
Features
Discover
Chapter 10: Problem 11
Use the rejection method with \(g(x)=1,0
These are the key concepts you need to understand to accurately answer the question.
All the tools & learning materials you need for study success - in one app.
Get started for free
Explain how you could use random numbers to approximate \(\int_{0}^{1} k(x) d x,\) where \(k(x)\) is an arbitrary function. Hint: If \(U\) is uniform on \((0,1),\) what is \(E[k(U)] ?\)
The following algorithm will generate a random permutation of the elements \(1,2, \ldots, n .\) It is somewhat faster than the one presented in Example 1 a but is such that no position is fixed until the algorithm ends. In this algorithm, \(P(i)\) can be interpreted as the element in position \(i\) Step 1. Set \(k=1\) Step \(2 .\) Set \(P(1)=1\) Step \(3 .\) If \(k=n,\) stop. Otherwise, let \(k=k+1\) Step 4. Generate a random number \(U\) and let $$\begin{aligned} P(k) &=P([k U]+1) \\ P([k U]+1) &=k \end{aligned}$$ Go to step 3 (a) Explain in words what the algorithm is doing. (b) Show that at iteration \(k\) - that is, when the value of \(P(k)\) is initially set \(-P(1), P(2), \ldots, P(k)\) is a random permutation of \(1,2, \ldots, k\) Hint: Use induction and argue that $$\begin{array}{l} P_{k}\left\\{i_{1}, i_{2}, \ldots, i_{j-1}, k, i_{j}, \ldots, i_{k-2}, i\right\\} \\ \quad=P_{k-1}\left\\{i_{1}, i_{2}, \ldots, i_{j-1}, i, i_{j}, \ldots, i_{k-2}\right\\} \frac{1}{k} \\ \quad=\frac{1}{k !} \text { by the induction hypothesis } \end{array}$$
Let \(X\) be a random variable on (0,1) whose density is \(f(x) .\) Show that we can estimate \(\int_{0}^{1} g(x) d x\) by simulating \(X\) and then taking \(g(X) / f(X)\) as our estimate. This method, called importance sampling, tries to choose \(f\) similar in shape to \(g,\) so that \(g(X) / f(X)\) has a small variance.
Suppose it is relatively easy to simulate from \(F_{i}\) for each \(i=1, \ldots, n .\) How can we simulate from $$\text { (a) } F(x)=\prod_{i=1}^{n} F_{i}(x) ?$$ $$\text { (b) } F(x)=1-\prod_{i=1}^{n}\left[1-F_{i}(x)\right] ?$$
In Example \(2 \mathrm{c}\) we simulated the absolute value of a unit normal by using the rejection procedure on exponential random variables with rate \(1 .\) This raises the question of whether we could obtain a more efficient algorithm by using a different exponential density - that is, we could use the density \(g(x)=\lambda e^{-\lambda x} .\) Show that the mean number of iterations needed in the rejection scheme is minimized when \(\lambda=1\)
What do you think about this solution?
We value your feedback to improve our textbook solutions.