Question: Show that the discrete inverse transform algorithm for generating a geometric random variable with parameter p reduces to the following: 1. Generate a random number
Show that the discrete inverse transform algorithm for generating a geometric random variable with parameter p reduces to the following:
1. Generate a random number U 2. Set X = Int(
log(1−U)
log(1−p) ) + 1 Give a second algorithm for generating a geometric random variable with parameter p that takes into account the probabilistic interpretation of such a random variable.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
