Search⌘ K
AI Features

Probability Distributions: Binomial and Bernoulli Distributions

Explore the basic concepts of probability distributions focusing on Bernoulli and Binomial types. Understand how these discrete distributions model success and failure in trials, master formulas for calculating probabilities, and apply this knowledge to real-world scenarios such as coin tosses or weather predictions.

What are probability distributions?

Probability distribution is a summary of probabilities associated with all the possible outcomes of a random variable X. Probability distributions have a particular shape that has properties like mean(expected value), variance, skewness, and kurtosis.

Example

When we roll a fair dice, the probability of each outcome is equally likely, meaning 16\frac{1}{6}. We can write it as seen below:

Outcome of rolling a dice Probability
1 1/6
2 1/6
3 1/6
4 1/6
5 1/6
6 1/6

Probability histogram

If we take the dice roll outcome on the x-axis and its probability on the y-axis, we get the following graph representation:

Types of random variables

Discrete random variables

Discrete random variables are the variables whose outcomes take on a discrete set of values. The function that calculates the probability of each outcome (probability distribution) of a discrete random variable is called the probability mass function.

Example

Let X be the random variable representing the sum of two dice. When two dice are rolled, the possible outcomes are (1,1), (1,2), (1,3), (1,4), (1,5), (1,6), (2,1), (2,2), and so on, giving a total of 36 outcomes. The possible sums of the two dice and their probabilities are listed below.

X (the sum of two dice) Probability
2 1/36
3 2/36
4 3/36
5 4/36
6 5/36
7 6/36
8 5/36
9 4/36
10 3/36
11 2/36
12 1/36

Probability histogram

If we take the sum of the two dice on the x-axis and their probability on the y-axis, we get the following graph representation:

Continuous random variables

It is a variable whose outcomes can take on a real value. The probability density function (PDF) defines the probability distribution of a continuous random variable. Notice that for a discrete random variable, it is called the probability mass function.

A continuous random variable has a probability of zero of assuming exactly any of its values. Consequently, its probability distribution cannot be given in tabular form.

The probability distribution of a continuous random variable is shown by a density curve. The probability that X is between an interval of numbers is the area under the density curve between the interval endpoints. One of the most commonly used continuous probability distributions is the Gaussian or normal distribution.

Bernoulli distribution

The Bernoulli distribution is a discrete probability distribution. The Bernoulli distribution consists of only two outcomes: 1 (success) and 0 (failure). The probability of success is denoted by “p,” and the probability of failure is denoted by “q” or “1-p.”

The probability mass function, which calculates the probability of each outcome, is given as:

P(x)P(x) = pxp^x q1xq^{1-x} = pxp^x (1p)1x(1-p)^{1-x} ...