This is a question from "Applied Statistics for Bioinformatics using R" by Wim P. Krijnen
Let X be binomially distributed with n = 60 and p = 0.4
(a) P(20 ≤ X or X ≥ 40)
(b) P(20 ≤ X and X ≥ 10)
I'm using RStudio for this
For (a), I can get it with P(X ≥ 20) as it fulfils the 'or' condition, which is either P(X ≥ 20) OR P(X ≥ 40):
P(X ≥ 20) = 0.8830403
But for (b), from my understanding, only P(X ≥ 20) fulfil the 'and' condition of P(X ≥ 10) AND P(X ≥ 20)
However, the answer from the book is P(X ≥ 10) = 0.999975
Can anybody explain this?
Original question:
- Binomial Let X be binomially distributed with n = 60 and p = 0.4.
Compute the following.
(a) P(X = 24), P(X ≤ 24), and P(X ≥ 30).
(b) P(20 ≤ X ≤ 30), P(20 ≤ X).
(c) P(20 ≤ X or X ≥ 40), and P(20 ≤ X and X ≥ 10).
(d) Compute the mean and standard deviation of X.
(e) The quantiles x0.025, x0.5, and x0.975.
Answer from the book:
- Binomial
(a) P(X = 24) = 0.1046692, P(X ≤ 24) = 0.5557756, and P(X ≥ 30) = 0.0746237.
(b) P(20 ≤ X ≤ 30) = 0.83856, P(20 ≤ X) = 0.8830403.
(c) P(20 ≤ XorX ≥ 40) = 0.8830403, and P(20 ≤ XandX ≥ 10) = 0.999975.
(d) E(X) = 24, var(X) = 3.794733 Use: sqrt(60 * 0.4 *0.6)
(e) x0.025 = 17, x0.5 = 24, and x0.975 = 32.
Update:
How can i find the following probabilities?
This link suggests using P(X ≥ 20), but the two answers here are suggesting P(X ≥ 10), which might be the more accurate idea?