Probability theory: Binomial distribution

This is part of the course “Probability Theory and Statistics for Programmers”.

Image for post
Image for post
Probability Theory For Programmers

The binomial distribution is the distribution of the number of successes in a sequence of n repeated Bernoulli trials. Repeated Bernoulli trials mean that all trials are independent and each result have two possible outcomes. Random variable X represents the number of successes in n trials. Now we can construct the formula.

Image for post
Image for post
probability of getting x successes

If you follow the series up to this point you can mention that this formula was explained in the “Repetitive experiments” part.

Let’s take a look at the classic example. Imagine that you tossing coin 20 times. What the probability that you will have exactly 6 tails?

As you can see from chart probability that you have 6 tails is equal to the probability that you will have 6 heads. This is because you have mirroring probabilities.

Let’s take a look at the characteristics of the binomial distribution. The mean and the variance:

Image for post
Image for post

Next part ->

Reach the next level of focus and productivity with increaser.org.

Image for post
Image for post
Increaser

Written by

Software engineer, creator of increaser.org. More at geekrodion.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store