
Member-only story
Probability, Editorial, Statistics, Tutorial
Bernoulli Distribution — Probability Tutorial with Python
Bernoulli distribution tutorial — diving into the discrete probability distribution of a random variable with examples in Python
Author(s): Pratik Shukla, Roberto Iriondo
Last updated, January 7, 2021
In this series of tutorials, we will dive into probability distributions in detail. We will not just showcase formulas, but instead, we will see how each of the formulas derives from their basic definitions (as it is essential to understand the math behind the derivations), and we will showcase such by using some examples in Python.
This tutorial’s code is available on Github and its full implementation as well on Google Colab.
Table of Contents:
- What is a Random Variable?
- Discrete Random Variable.
- Continuous Random Variable.
- Probability Distributions.
- Bernoulli Distribution.
- Probability Mass Function (PMF).
- Mean of Bernoulli Distribution.
- The variance of a Bernoulli Distribution.
- Standard Deviation of Bernoulli Distribution.
- Mean Deviation of Bernoulli Distribution.
- Moment Generating Function for a Bernoulli Distribution.
- Cumulative Density Function (CDF) for a Bernoulli Distribution.
- Python Implementation.
- Summary of the Bernoulli Distribution.
- Resources.
- References.
📚 Check out our Moment Generating Function Tutorial with Python. 📚