Question: Please code using software R Simulate 10000 binomial random numbers with parameters 20 and 0.3, assigning them to a vector called binsim. Let X be

Please code using software R
Simulate 10000 binomial random numbers with parameters 20 and 0.3, assigning them to a vector called binsim. Let X be a binomial(20, 0.3) random variable. Use the simulated numbers to estimate: (a) P(X 5) (b) P(X = 5) (c) E(X) (d) VAR(X) In each case, compare your estimates with the true values. Simulate 10000 binomial random numbers with parameters 20 and 0.3, assigning them to a vector called binsim. Let X be a binomial(20, 0.3) random variable. Use the simulated numbers to estimate: (a) P(X 5) (b) P(X = 5) (c) E(X) (d) VAR(X) In each case, compare your estimates with the true values
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
