Question: Use MATLAB. Draw 1000 samples form a uniform distribution over [0,1]. Use these to perform random draws from the exponential distribution above. Plot a histogram
Use MATLAB. Draw 1000 samples form a uniform distribution over [0,1]. Use these to perform random draws from the exponential distribution above. Plot a histogram of these 1000 draws using the MATLAB hist.m function. Also plot the original random draws, e.g., plot(x).
![Use MATLAB. Draw 1000 samples form a uniform distribution over [0,1]. Use](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f320c98ccbb_67366f320c915f38.jpg)
In modeling and simulation, one often has a PDF f(x) and corresponding CDF F(x) from which one would like to make random draws. Show that if one draws uniformly yU(0,1) from F(x), then one has x=F1(y) which is a random draw from f(x). The derivation is simple and you can look to the internet for a solution. As an example, consider the exponential density f(x)=e.3. It has a density that for =5 looks like It's CDF and an example of a random draw is shown below: Instructions Draw 1000 samples form a uniform distribution over [0,1]. Use these to perform random draws from the exponential distribution above. Plot a histogram of these 1000 draws using the MATLAB "hist.m" function. Also plot the original random draws, e.g., plot( (x). Deliverables The specified derivation, plots, code, description of what you found and an explanation for what you saw
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
