The binomial distribution is a discrete random variable distribution function. Describes a random experiment with two possible outcomes (success - failure) and probability of success p repeated n times.
Consider the random variable X is the number of successes. The probability to have k successes in n independent trials with probability p given by :