Question

Y is an exponential random variable with rate param 1. Assume eter 2. (1) Generate 1000 samples from this exponential distrib

can you guys help me to solve this problem in mathlab

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

Below is the matlab code

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

close all,
clear all,
clc,

No_of_Random_Nummbers=1000;
Lambda = 2;
X = exprnd(Lambda,No_of_Random_Nummbers);
figure,
subplot(1,2,1); hist(X); title('Exponential Random Numbers Histogram');
Y = icdf('Normal',X,0,1);
subplot(1,2,2); hist(Y); title('Inverse Transform Method Random Numbers Histogram');

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Inverse Transform Method Random Numbers Histogram Exponential Random Numbers Histogram 180 900 160 800 140 700 120 600 100 50

Add a comment
Know the answer?
Add Answer to:
can you guys help me to solve this problem in mathlab Y is an exponential random variable with rate param 1. Assume eter 2. (1) Generate 1000 samples from this exponential distribution using inverse...
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