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
1. As my parents are both cost accountants, I thought that accounting is my blood. However, everything is not that easy as I often failed to match my trial balance and was finding it problematic to write my cash-flow statements. I knew I need assistance apart from the help that I get from my accounting professor. So when I saw HelpwithAssignment.com, I was happy as they helped me solve my accounting homework. I even got good grades now.
I was having problem completing my economics assignment submission on the concept of demand and supply for my mid terms. That is when one of my friends suggested HelpwithAssignment.com and they got back to me as soon as I contacted them. I was very impressed by their expert econ tutors and they have been my guides since that time. The professors are happy with the crisp and relevant assignment work and I am happy with their indepth understanding and research for each assignment and timely delivery of assignments. Thank you HelpwithAssignment.!!!
Designing a motivational strategy as a part of the employee development plan was a tough ask for me as I missed few classes last semester. However, the help I got from HwA was remarkable and they not only offered me the assignment solution but also at the same time helped me to understand the concepts.
I was really stuck with my signal processing assignment in my third year of engineering and needed serious help. It was then when I came across this wonderful website. The experts here are open to suggestions and unassuming and instead of a situation where they act like they know everything (as in the case of most online tutoring websites) they listened to me and helped me out. I really liked what they did with all my assignments and most importantly helped me get good grades.
I was going through a rough time for health reasons and needed help with writing my Keynesian Multiplier Model Assignment. The Economics assignment expert at HwA delivered the Keynesian Multiplier Model Assignment essay exactly as per the guidelines that I had suggested.
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.