In: Statistics and Probability
Write it in P program. This is only one question with multiple parts, so please answer all the parts of the question, it is not much. Please also include a screenshot of your R program.
Z=(X-E(X))/sd(X)
Where E(X)= mean of B(n,p), which is np, sd(X) = standard deviation of B(n,p), which is sqrt(np(1-p)).
To generate 500 random numbers from Binomial distribution n=100, we can use rbinom(500,100,0.5) p=0.5 in R.
Single histogram is for B(100,0.5) which seems to be symmetric about 0.
Histogram B(100,0.1) shows that distribution is right skewed.
Histogram B(100,0.3) shows almost symmetric about with a little positive skewness.
Histogram B(100,0.7) almost symmetric but little left skewed.
Histogram B(100,.9) is left skewed.