Towards AI

The leading AI community and content platform focused on making AI accessible to all. Check out our new course platform: https://academy.towardsai.net/courses/beginner-to-advanced-llm-dev

Follow publication

Source: Unsplash

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

Towards AI Editorial Team
Towards AI
Published in
12 min readSep 25, 2020

--

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:

  1. What is a Random Variable?
  2. Discrete Random Variable.
  3. Continuous Random Variable.
  4. Probability Distributions.
  5. Bernoulli Distribution.
  6. Probability Mass Function (PMF).
  7. Mean of Bernoulli Distribution.
  8. The variance of a Bernoulli Distribution.
  9. Standard Deviation of Bernoulli Distribution.
  10. Mean Deviation of Bernoulli Distribution.
  11. Moment Generating Function for a Bernoulli Distribution.
  12. Cumulative Density Function (CDF) for a Bernoulli Distribution.
  13. Python Implementation.
  14. Summary of the Bernoulli Distribution.
  15. Resources.
  16. References.

📚 Check out our Moment Generating Function Tutorial with Python. 📚

--

--

Published in Towards AI

The leading AI community and content platform focused on making AI accessible to all. Check out our new course platform: https://academy.towardsai.net/courses/beginner-to-advanced-llm-dev

Written by Towards AI Editorial Team

The leading AI community & content platform making AI accessible to all. | 2.5k writers, 60k Discord, 500 k followers

Responses (2)

Write a response