Question

Write a well-documented MATLAB script that verifies the Central Limit Theorem based on uniform distribution. Write...

Write a well-documented MATLAB script that verifies the Central Limit Theorem based

on uniform distribution. Write a MATLAB script that would allow you to specify n and k where n is the sample size and k is the number of times that you repeat this experiment (to obtain the distribution that you will compare with the normal distribution). Use n = 10; 000 and k = 1; 000. The

result of the script should be the histogram for the probability density function.

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

clc;
n=10000;
k=1000;
mu=1;
sigma2=1/12; % pupulation mean and variance of uniform(0,2)
for i=1:k
    x(:,i)=unifrnd(0,2,n,1);
end
y=mean(x);
z=100*(y-mu)/(1/12)^(1/2);
hist(z)

a258sEwAAAABJRU5ErkJggg==

From above histogram we can observe that distribution is symmetric about zero which is same as standard normal distribution, hence central limit theorem is proved

Add a comment
Know the answer?
Add Answer to:
Write a well-documented MATLAB script that verifies the Central Limit Theorem based on uniform distribution. Write...
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