Get full access to all Data Science, Machine Learning, and AI courses built for finance professionals.
One-time payment - Lifetime access
Or create a free account to start
A step-by-step guide covering Python, SQL, analytics, and finance applications.
Or create a free account to access more
Get full access to all Data Science, Machine Learning, and AI courses built for finance professionals.
One-time payment - Lifetime access
Or create a free account to start
A step-by-step guide covering Python, SQL, analytics, and finance applications.
Or create a free account to access more
A binomial distribution is one of the important discreet probability distributions in statistics. In this article we will learn about binomial distributions.
Before we start, make sure that you know about the concept of combinations in probability and the formula for combinations. Learn about combinations formula.
If you flip a coin 100 times, what’s the probability the it will turn a Tails at least 60 times. We can solve this problem using the binomial distribution. Let’s take another example. You have a pool of stocks having returns either above 5% or below 5%. The probability of selecting a stock with above 5% returns is 0.70. You are going to pick up 5 stocks. What is the probability of picking 2 stocks with above 5% returns? From a probability perspective, both these are similar scenarios. We can use the binomial distribution to calculate this probability.
The binomial distribution has the following characteristics:
Suppose there are n independent trials. Independent here means that knowing the outcome of one trial gives us no information about the outcome of the other trial. Each trial can only result in one of the two possible mutually exclusive outcomes. We can label these outcomes as success or failure. We call the probability of a success in one trial as p. Then the probability of failure will be 1 minus the probability of success, i.e, (1-p).
Let X represent the count of the number of successes in n trials. Then X has a probability distribution. The probability that X takes the value little x, represented as p(x) is the probability x successes in n trials. As in our example, the probability of 60 Tails (successes) in 100 trials or the probability of picking 2 stocks with above 5% returns (x) in 5 stocks picked (n). x can take on any value between 0 and n.
The binomial probability function is given using the following formula.

Let’s take another example. We roll a dice with 6 sides 3 times. What is the probability that it will show 5 exactly 2 times? We can calculate this probability using the above binomial probability function.
Any given roll or trial has 6 possibilities. For us a success is to roll a 5 and a failure is rolling anything other than 5. We now have just 2 outcomes on any given trial. The probability of a success in an independent trial is 1/6. If X represents the number of 5 in 3 rolls, then X has a binomial distribution with n=3, and p=1/6. We are looking for the probability of getting a 5 exactly 2 times in 3 rolls, i.e., x=2. We can put this into our binomial formula.
p(2) = (3!/(3-2)!*2!)*(1/6)^2*(1-1/6)^(3-2)
p(2) = 0.0694
So, the probability of getting 5 exactly 2 times in 3 rolls is 0.0694
Check the Binomial Probability Distribution Table