1.) Work through code on finding QQ-plot of a sequence of
numbers shown on kaggle (no need to submit).
Generate 10000 random numbers from N(50,4), store them as a vector.
It is expected that the sample mean of this vector should be close
to the population mean 50. Verify this.
Suppose X~NB(3,0.8). More specificly, let X be the total numbers
needed to achieve 3rd success in a sequence of independent repeated
Bernoulli trials with success probability 0.8. Report the
probability that P (5 < X ≤ 10).
2.) Simulate random samples from the following
distributions:
Bernoulli(0.5) (so that μ = 0.5 and σ2σ2 = 0.25). (Hint: You can
use rbinom to generate Bernoulli random numbers.)
Uniform(0, 1) (so that μ = 0.5 and σ2σ2 = 1/12).
Possion(1) (so that μ = 1 and σ2σ2 = 1).
For each case, set the number of simulations N to be 1000 and for
each simulation, generate n = 2000 random numbers. Report 3 pieces
of code, 3 Q-Q plots and your conclusion. You only need to slightly
modify the demo code to get the right answer.
Get Answers For Free
Most questions answered within 1 hours.