Calculate the mean value and variance, Basic Statistics

Assignment Help:

1. Generate 1000 samples for each of the following discrete random variables:

(a). Binomial distribution with n=40, p=0.7, and distr. with n=50, p=0.5

(b). Geometric distribution with p=0.5 and distr. with p=0.3

(c). Poisson distribution with λ= 6 and λ= 4.5

For each class of 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 (see help on plot()). You should show the X-axis with reasonable range such that the curves can be clearly seen (check wikipiedia's figures for these distributions).

In addition, calculate the mean value and variance of generated samples for each distribution (sample mean and sample variance). Compare the results with the analytical results.


Related Discussions:- Calculate the mean value and variance

Simulation for structural equation modeling, I want to simulate observed va...

I want to simulate observed variables for structural equation modeling. In real data it is assumed that observed variables are not error free variables, so should i also simulate e

Discrete and continous random variables, determine the required value of th...

determine the required value of the missing probality to make the distribution a discrete probability distribution

Determine the local luminance, 1. Consider a room 3 m x 3m x 3m with one fa...

1. Consider a room 3 m x 3m x 3m with one façade made of glazing with diffuse transmittance 0.6 and reflectance 0.2. The interior surfaces have a reflectance of 0.5. Consider incid

Women tend to work out together, You notice at the gym that it appears more...

You notice at the gym that it appears more women tend to work out together, while more men tend to work out alone.  To show whether this difference is significant, you collect data

Determine the mean and standard deviation, 1.)  Two dice are rolled and the...

1.)  Two dice are rolled and the sum is calculated.  Let X represent the sum of the two dice. Construct a probability distribution expressing probabilities in fractional form. 2

Writing Appropriate Null and Alternative Hypotheses, For this assignment, y...

For this assignment, you will practice creating null and alternative hypotheses of difference based on the presented scenarios. To complete this assignment, consider the three scen

Define mean, Explain what central tendency and variability are. In your ans...

Explain what central tendency and variability are. In your answer define what the mean, median, mode, variance, and standard deviation are. What is the difference between the descr

Limitation of the accounting, Limitation of the Accounting. It informati...

Limitation of the Accounting. It information only accounting purchase, it is restricted to the accounting purchase only, and for example other elements which are not having any

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd