Question

In: Statistics and Probability

2) Suppose that you need to generate a random variable Y with a density function f...

2) Suppose that you need to generate a random variable Y with a density function f (y) corresponding to a beta distribution with range [0,1], and with a non-integer shape parameter for the beta distribution. For this case there is no closed-form cdf or inverse cdf. Suppose your choices for generating Y are either: a) an acceptance-rejection strategy with a constant majorizing function g(u) = V over [0, 1], i.e., generate u1 and u2 IID from a U[0,1] generator and accept y = u1 if Vu2

Or b) use a numerical approximation to the inverse cdf of Y, say G, generate u from U[0,1] generator, and let y = G(u). Discuss the advantages and disadvantages of each approach. (10 points)

Solutions

Expert Solution

Advantages of acceptance-rejection method:

  • As compared to inverse transform method, it requires neither CDF nor inverse of the function. And since in this particular question it is given that there is no closed dorm CDF or inverse CDF, it is appropriate to use this method as it will give a more efficient result.

Disadvantages of acceptance-rejection method:

  • Finding a function g(x) with the same range and same shape to f(x) from which we need to generate random values can be difficult.
  • It is a lengthy method to solve.

Advantages of acceptance-rejection method:

  • It can be extended to the cases of truncated distribution. Following the same algorithm, instead of generating a random number u from a uniform distribution over the range[a,b], you can generate a uniform distribution which ranges from F(a) to F(b).

Disadvantages of Inverse transform method:

  • Using this method requires us to estimate the inverse of a cumulative distribution function but since it is given in that there is no closed form CDF or inverse CDF, using this method would lead to an inefficient result.
  • It is often a very slow method since it requires us a number of comparisons.

Related Solutions

The random variable Y has an exponential distribution with probability density function (pdf) as follows: f(y)...
The random variable Y has an exponential distribution with probability density function (pdf) as follows: f(y) = λe−λy, y >0 = 0, otherwise (i) Showing your workings, find P (Y > s|Y > t), for s ≥ t. [3] (ii) Derive an expression for the conditional pdf of Y , conditional on that Y ≤ 200. [3] N(t) is a Poisson process with rate λ (iii) Find an expression for the Cumulative Distribution Function (CDF) of the waiting time until...
2 Consider the probability density function (p.d.f) of a continuous random variable X: f(x) = (...
2 Consider the probability density function (p.d.f) of a continuous random variable X: f(x) = ( k x3 , 0 < x < 1, 0, elsewhere, where k is a constant. (a) Find k. (b) Compute the cumulative distribution function F(x) of X. (c) Evaluate P(0.1 < X < 0.8). (d) Compute µX = E(X) and σX.
Suppose that we have two random variables (Y,X) with joint probability density function f(y,x). Consider the...
Suppose that we have two random variables (Y,X) with joint probability density function f(y,x). Consider the following estimator of the intercept of the Best Linear Predictor: A = ?̅ - B • ?̅ , where ?̅ is the sample mean of y, ?̅ is the sample mean of x, and B is the sample covariance of Y and X divided by the sample variance of X. Identify the probability limit of A (if any). For each step in your derivation,...
Suppose that the joint probability density function of ˜ (X, Y) is given by:´ f X,Y...
Suppose that the joint probability density function of ˜ (X, Y) is given by:´ f X,Y (x,y) = 4x/y3 I(0.1)(x), I (1, ∞)(y). Calculate a) P(1/2 < X < 3/4, 0 < Y ≤ 1/3). b) P(Y > 5). c) P(Y > X).
Consider a continuous random variable X with the probability density function f X ( x )...
Consider a continuous random variable X with the probability density function f X ( x ) = x/C , 3 ≤ x ≤ 7, zero elsewhere. Consider Y = g( X ) = 100/(x^2+1). Use cdf approach to find the cdf of Y, FY(y). Hint: F Y ( y ) = P( Y <y ) = P( g( X ) <y ) =
Assume that a continuous random variable has a following probability density function: f ( x )...
Assume that a continuous random variable has a following probability density function: f ( x ) = { 1 10 x 4 2 ≤ x ≤ 2.414 0 o t h e r w i s e Use this information and answer questions 3a to 3g. Question a: Which of the following is a valid cumulative density function for the defined region ( 2 ≤ x ≤ 2.414)?    A.F x ( x ) = 1 50 x 5 −...
Suppose that X and Y have the following joint probability density function. f (x, y) =...
Suppose that X and Y have the following joint probability density function. f (x, y) = (3/394)*y, 0 < x < 8, y > 0, x − 3 < y < x + 3 (a)   Find E(XY). (b)   Find the covariance between X and Y.
The joint density function for random variables X, Y, and Z is f(x, y, z)= Cxyz  if...
The joint density function for random variables X, Y, and Z is f(x, y, z)= Cxyz  if 0 ≤ x ≤ 1, 0 ≤ y ≤ 2, 0 ≤ z ≤ 2, and f(x, y, z) = 0 otherwise. (a) Find the value of the constant C. (b) Find P(X ≤ 1, Y ≤ 1, Z ≤ 1). (c) Find P(X + Y + Z ≤ 1).
R Code 2. Suppose X is a random variable with density f(x; ψ) = 2ψ-2 xI(0...
R Code 2. Suppose X is a random variable with density f(x; ψ) = 2ψ-2 xI(0 ≤ x ≤ ψ), where ψ > 0 is a parameter. (a) Draw a graph of the density when ψ = 3 in R. (b) Write a function called genTri that generates n independent realizations of X. The function should take the arguments n and psi and return a vector of n realizations. Make a histogram of n = 104 realizations and compare the...
Let the continuous random variable X have probability density function f(x) and cumulative distribution function F(x)....
Let the continuous random variable X have probability density function f(x) and cumulative distribution function F(x). Explain the following issues using diagram (Graphs) a) Relationship between f(x) and F(x) for a continuous variable, b) explaining how a uniform random variable can be used to simulate X via the cumulative distribution function of X, or c) explaining the effect of transformation on a discrete and/or continuous random variable
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT