Let p denote the probability of drawing a defective pen. Then,
Let X denote the number of defective pens drawn. Then, X is a binomial variate with parameter n = 5 and .
Now, P(X = r) = Probability of drawing r defective pens =
∴ Probability of drawing at most 2 defective pens
= P(X ≤ 2)
= P(X = 0) + P(X = 1) + P(X = 2)