Get in touch with us
Send us an e-mail
Question
Generate 1000 samples for each of the following discrete random variables:
(a) Binomial distribution with n=30, p=0.6, and distr. with n=60, p=0.5
For the above distribution, plot probability mass function for each set parameters on one figure (you should have two curves on each figure and have three figures overall). In addition, you should also plot the corresponding analytical results (probability mass function curve based on distribution formulas) on the same figure. In this way, you can verify whether your simulated random variables match with analytical results.
That means on each figure, there are four curves (two simulations, two analytical). Use “legend” to denote each curve, and use different line style and color for each curve.
You should show the X-axis with reasonable range such that the curves can be clearly seen.
In addition, calculate the mean value and variance of generated samples for distribution (sample mean and sample variance).
Summary
This question belongs to MATLAB software and discusses about application of MATLAB in mathematics to generate samples for discrete random variables using binomial distribution and to calculate the mean value and variance of generated samples.
Answer is in MATLAB format
Download Full Solution
I am really happy with the service I have got so far from here! They know our Taxation law syllabus in Singapore and provide solutions which are well appreciated by the teachers at my university.
1. Having a background of engineering I was pretty confident that I will have no problems with the assignments and homework that will be required to be submitted in my masters program. However there was increasing pressure of assignment submissions. I was spending too much time and effort on writing the assignments and not really gaining any knowledge. The online mechanical engineering tutors at TheReliableTutor.com helped minimize my research time and allowed me to actually gain knowledge from my course.
1. The online creative writing assignment tutor delivered excellent work within the given deadline using all relevant sources. I am very happy with the quality of work and the timely delivery of it. you have a loyal customer in me.
My main concern was the relevant local Singapore research and reference work that is required in my Masters course in the university. They are very particular about referenced and researched assignments and with the stats experts at TheReliableTutor I have never have had to worry about that since the experts provide the most excellent and relevant references in all my assignments which help me get top marks in the class.
I was pursuing my MSN degree when I thought of specializing in musculo-skeletal patients and it was back in 2008 when I came across HwA and learned a lot about the interventions and assessment strategies.
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.