Question

Given the pdf,f(x) = x2/9 on 0 < x 3, develop a generator for this distribution. Generate 1000 values of the random variate,

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

MATLAB code to generate the required distribution:

clc;
clear all;
close all;

u=rand(1, 1000); %generate the 1000 random variables
set=3*u.^(1/3); %set-the required random variable collection
%disp(set); %to display the set variables: here it was commneted
disp(mean(set)); %display the mean of operation

%here the mean

Here are the set variables:

Add a comment
Know the answer?
Add Answer to:
Given the pdf,f(x) = x2/9 on 0 < x 3, develop a generator for this distribution. Generate 1000 va...
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