Chapter 11: Problem 9
Set up the alias method for simulating from a binomial random variable with parameters \(n=6, p=0.4\).
/*! 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 11: Problem 9
Set up the alias method for simulating from a binomial random variable with parameters \(n=6, p=0.4\).
All the tools & learning materials you need for study success - in one app.
Get started for free
Suppose we want to simulate a large number \(n\) of independent exponentials
with rate \(1-\) call them \(X_{1}, X_{2}, \ldots, X_{n} .\) If we were to employ
the inverse transform technique we would require one logarithmic computation
for each exponential generated. One way to avoid this is to first simulate
\(S_{n}\), a gamma random variable with parameters \((n, 1)\) (say, by the method
of Section 11.3.3). Now interpret \(S_{n}\) as the time of the \(n\) th event of a
Poisson process with rate 1 and use the result that given \(S_{n}\) the set of
the first \(n-1\) event times is distributed as the set of \(n-1\) independent
uniform \(\left(0, S_{n}\right)\) random variables. Based on this, explain why
the following algorithm simulates \(n\) independent exponentials:
Step 1: Generate \(S_{n}\), a gamma random variable with parameters \((n, 1)\).
Step 2: Generate \(n-1\) random numbers \(U_{1}, U_{2}, \ldots, U_{n-1}\). Step 3:
\(\quad\) Order the \(U_{i}, i=1, \ldots, n-1\) to obtain
\(U_{(1)}
The Hit-Miss Method: Suppose \(g\) is bounded in \([0,1]-\) for instance, suppose
\(0 \leqslant g(x) \leqslant b\) for \(x \in[0,1]\). Let \(U_{1}, U_{2}\) be
independent random numbers and set \(X=U_{1}, Y=b U_{2}\) - so the point \((X,
Y)\) is uniformly distributed in a rectangle of length 1 and height \(b\). Now
set
$$
I=\left\\{\begin{array}{ll}
1, & \text { if } Y
Consider the following procedure for randomly choosing a subset of size \(k\)
from the numbers \(1,2, \ldots, n:\) Fix \(p\) and generate the first \(n\) time
units of a renewal process whose interarrival distribution is geometric with
mean \(1 / p-\) that is, \(P\\{\) interarrival time \(=k\\}=p(1-p)^{k-1}, k=1,2,
\ldots .\) Suppose events occur at times \(i_{1}
The Discrete Rejection Method: 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 .
Give an algorithm for simulating a random variable having density function
$$
f(x)=30\left(x^{2}-2 x^{3}+x^{4}\right), \quad 0
What do you think about this solution?
We value your feedback to improve our textbook solutions.