Tom K. answered 11/08/20
Knowledgeable and Friendly Math and Statistics Tutor
p = .4 q = 1 - .4 = .6
- This is the geometric distribution: n failures before a success = qnp
1st person with Covid is the 5the person means 4 non-Covids before Covid has probability .64*.4 = .05184
2 This is the negative binomial. P(2 successes before fifth failure) is C(6,2)p2q5 = 15 * .42*.65 = 0.186624
3 Again, we use the negative binomial. Here, we have the fifth with Covid, not the fifth without. 5q/p^2 = 5 * .6/.42 = 18.75
For the next three problems, we use the binomial distribution.
The sample is size 20, so n = 20
P(5 or less successes) = from Excel (and most calculators have similar functions, and you will also see this in tables), binom.dist(5, 20, .4, 1) - in the last position, 1 means cumulative -
.1256
P( X = 3, 4, 5, 6, 7) = P(X <= 7) - P(X <= 2) - notice that it is 2 in the second expression, not 3.
binom.dist(7, 20, .4, 1) - binom.dist(2, 20, .4, 1)
.4123
P(at most 15 will not have Covid) - we can solve this in 2 ways; we can find the probability that at least 5 will have Covid, which equals 1 - P(4 or less have Covid), or we can find the probability as in the first two parts by just switching p and q
1 - binom.dist(4, 20, .4, 1) = .9490
binom.dist(15, 20, .6, 1) = .9490