Illustrate the inverse transformation method for obtaining a random observation

Ann Tice

Ann Tice

Answered question

2021-11-25

Illustrate the inverse transformation method for obtaining a random observation from a given probability distribution?

Answer & Explanation

Lounctirough

Lounctirough

Beginner2021-11-26Added 14 answers

Step 1
The inverse transform method can be used to generate random numbers from various probability distributions.
For example,
XExp(λ)
So, the distribution function of X is:
F(x)=P(Xx)
=1eλx
To generate random numbers, first generate random numbers for a variable U where
UU(0,1)
such that: U=F(x)
Step 2
Using Excel command RAND() random numbers for Uniform(0,1) can be generated.
Now, the formula for x is:
u=F(x)=1eλx
log(1u)=λx
x=1λlog(1u)
Substituting the values of u generated on excel, we get the corresponding random numbers for x as below:
(Taking the value of λ=0.3 for example)
ux=ln(1u)/0.30.1066190.37580670.5467452.6376702510.84966.3148638410.2384440.9079707840.1260930.4492711940.1187610.4191521160.2532650.973485240.2316650.8784323010.0960530.336614596

Do you have a similar question?

Recalculate according to your conditions!

New Questions in High school statistics

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?