We can use the binomial distribution formula, which is given by:
\[P(X=k) = C(n, k) * p^k * (1-p)^{n-k}\]
where \(P(X=k)\) is the probability of getting \(k\) successes in \(n\) trials, \(C(n, k)\) is the number of combinations of \(n\) items taken \(k\) at a
Show more…