Get in touch with us
Send us an e-mail
Question
Develop a MATLAB script that generates (N) random variables from fx(x) using the methods discussed in class. The script should ask the user for the number of samples to generate and the value (a).

a) Assume a = 1, generate 100 samples and plot the histogram. Hint, to check the distribution generate ~1000 samples.
b) Estimate the mean and variance from the previously generated N samples.
Compare the results to the analytical results below by displaying both in you script.
c) Let g(x) = 2(1-x2 ), Calculate and display E[g(x)] using the N RVs drawn from part (a).
d) Extra Credit: Analytically derive the formula for the mean.
Summary
This question belongs to MATLAB software and discusses about application of MATLAB in statistics to estimate mean and variance of sample data.
Download Full Solution
I never learned how to analyze the results of a multi-variants regression test and ANOVA test before I approached HwA. The experts here are so helpful and cordial that they in simple language wrote the analysis report and helped me get good marks in my assignment. Since then I always approach HwA whenever I face difficulties with my assignments.
HwA turned me into a chemistry lover from a chemistry hater. It was in my final years of my high school when I first took their help with my chemical compounds assignments and how I am doing my B.E. in Chemical Engineering and still taking their help in the matter.
I was stuck with my fault detection in logic circuit assignment when I looked up in the net for help. Luckily I came across HwA and it was all so quick. Within 5 minutes of me enquiring for help, they mailed me back letting me know about the process. The assignment went well and since then I always consult HwA for any of my assignments.
After I started my course in Systems Diagramming and the Process Map using ERP, I was soon losing grip of the things as the teacher was moving too fast. Then eventually I came across HwA where the experts helped me with my assignments and also cleared my concepts.
I totally loved getting helped from a Melbourne based tutor via HwA as I believe someone from UK or the States could have understood the specifications required for my assignment. It is a marvellous website and I encourage all my fellow students from Melbourne to avail help from HwA as and when they need.
Comments
this is a very good website
I have 50 questions for the same test your page is showing only 28
hi can you please help or guide me to answer my assignments. thanks
hi can anyone help or guide me to my assignments. thanks
This solution is perfect ...thanks
Hello Allison,I love the 2nd image that you did! I also, had never heard of SumoPaint, is something that I will have to exolpre a bit! I understand completely the 52 (or so) youtube videos that you probably watched. Sometimes they have what you want, sometimes they don't! However, it is always satisfying when you are able to produce something that you have taught yourself. Great job!Debra 0 likes
Perfect bank of solution.
great !
thanks for the quick response. the solution looks good. :)
thnx for the answer. it was perfect. just the way i wanted it.
works fine.