Tom K. answered 11/12/20
Knowledgeable and Friendly Math and Statistics Tutor
For this problem, q = 1 - p.
Excel has a negative binomial distribution function. With one success this becomes the geometric distribution
P(X = 3)= q^2p = .882(.12) = 0.0929
Alternatively, in Excel, NEGBINOM.DIST(2,1,0.12,0) (the 0 means exactly this solution)
P(X = 3 or X = 4) = q^2p+ q^3p = q^2p(1 + q) = .882(.12)(1.88) = 0.1747
In Excel, NEGBINOM.DIST(2,1,0.12,0) + NEGBINOM.DIST(3,1,0.12,0)
1 - q^3 = 1 - .88^3 (1 - all 3 not being brown) = 0.3185
Alternatively, NEGBINOM.DIST(2,1,0.12,1) (note that the final value is 1 here; this is cumulative - up to 2 failures)
Expected value is 1/p = 1/.12 = 25/3 = 8.3333 ; since this is not a probability, I assumed that we still want 4 numbers after the decimal point (note that this is the number of trials until a success, not the number of failures until a success; be careful which version of the geometric distribution that you use)