Q. 10.4

Question

Present a method for simulating a random variable having distribution function 

F(x)=0x-312+x6-3<x<012+x2320<x41x>4

Step-by-Step Solution

Verified
Answer

The universality of uniform is used to obtain the required method.

1Step 1: Given Information

We have given the function

F(x)=0x-312+x6-3<x<012+x2320<x41x>4

2Step 2: Simplify

Finding the value F-1. fory(0,1/2) we have

 y=12+x6

x=6y-3


and fory(1/2,1) we have

y=12+x232

x=42y-1


So, the method is as follows. choose a random number (call it y) from the interval (0,1). If it is less than 12, declare x = 6y - 3. And if it is greater than 12 , declare x=42y-1 . from the universality of the uniform, we have that x follows the distribution of X.

y-12+x6x = 6y-3y=12+x6x=6y-3