In order to calculate the probability of k successes among n trials, we can use the formula below:

Where C(n, k) is the combination of n choose k:

For n = 15, p = 0.4 and k = 4, we have:

For n = 12, p = 0.2 and k = 2, we have:

For n = 20, p = 0.05 and k = 0, 1, 2 and 3, we have:
