This is a classic binomial probability scenario.
The formula for binomial probability is:
$P(X=k) = C(n, k) * p^k * (1-p)^{(n-k)}$
Where:
- $P(X=k)$ is the probability of exactly k successes.
- $C(n, k)$ is the binomial coefficient, calculated as $n! / (k! *
Show more…