Write a R script where you answer the following questions:
1. Consider Y ∼ Binom(n = 10, p = 0.05).
Find the following probabilities: (a) P(2 < Y < 5) (b) P(2 ≤ Y ≤ 5) (c) P(Y < 9)
2. Consider Y ∼ P oisson(λ = 0.5).
Find the following probabilities: (a) P(Y = 5) (b) P(2 ≤ Y ≤ 5) (c) P(Y < 9)
3. Consider Y ∼ N(µ = 3, σ2 = 1).
Find the following probabilities: (a) P(Y = 5) (b) P(Y ≤ 5 (c) P(Y > 9) (d) P(0 < Y < 6)
4. Consider Y ∼ Gamma(α = 3, β = 1.5).
Find the following probabilities: (a) P(Y ≤ 10) (b) P(Y > 10) (c) P(Y = 9) (d) P(0 < Y < 6)
5. What does dnorm function compute in R?
1:
Here we need use pbinom function of r. Following is the screen shot of r script:
Following is the output of r script:
Get Answers For Free
Most questions answered within 1 hours.