Let X= the number of the bags which contain some toffees: X∼Bin(n,p).
Given n=20,p=0.9,q=1−p=1−0.9=0.1.
a)
P(X=20)=(2020)(0.9)20(0.1)20−20
≈0.1215766546 b)
P(X>18)=P(X=19)+P(X=20)
=(1920)(0.9)19(0.1)20−19+(2020)(0.9)20(0.1)20−20
≈0.2701703435+0.1215766546
≈0.391747
Comments