Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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).
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 sawStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started