Question

(25 pts.) Let the random variable X have pdf f(x) = { 0<x<1 1<isa Generate a random variable from f(x) using (a) The inverse-

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a)Inverse Transform method:

If U ~ Unit (0,1) has distribution, then X such that X = F (U) is an observation from the probability distribution FX(X) , this means that we can generate observations from the distribution FX(X) by generating U10, 1) random variables (which most software programs can do easily) and applying the F^{-1}_X transformation.

Here F(x) = 0<x< 1 10.5x – 0.25 ,1<x<5/2 4

The inverse function is

2V0 0<U< 0.25 F(U) = { 20+ 0.5 ,0.25<U<1 .

To generate one random variable from F, generate U = 0.3546786 , then

X = 210.3546786) +0.5 = 1.2093572

b) Acceptance-Rejection Algorithm for continuous random variables

1. Generate a RV Y distributed as F .

2. Generate U (independent from Y )

3. If Us A (Y) 0<9×(y) , then set X = Y(accept) ; otherwise go back to 1, (“reject”).

Take Y~110,52) . Then fy (y) = 0.4; 0 <y <2.5
To find the maximum value of , gx (x) - ** f (x) = 257 ,

Which is maximum when X = Xmax = 2.5
So, c = 9x (2.5) - (2.5) = 2 fy (2.5) 0.4 .

Iterations for generating a random number from G.

Let U = 0.3546786 and Y = 0.8646336 .

gx (Y) cfy (Y) (0.8646336) = 0.34585344 < 0.3546786 0.4 x 2. Reject

Let U = 0.4317008 and Y = 1.764366 .

gx (Y) cfy (Y) = (1.764366) L = 0.7057464 0.4 x 2

Us A (Y) 0<9×(y), so accept X = 0.8646336

Add a comment
Know the answer?
Add Answer to:
(25 pts.) Let the random variable X have pdf f(x) = { 0<x<1 1<isa Generate a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT