A binomial random variable is a discrete random variable counting the number of "success" outcomes in a binomial experiment. Such a random variable follows a binomial distribution, denoted , where is the number of trials and is the probability of success in each one.
Formally,
if is a binomial random variable, i.e. , then the probability of successes is given by the probability mass function