Course contentsShow
← Data Science
Lesson 124 of 2,1454. Discrete Probability DistributionsFree lesson

Bernoulli Distribution PMF and Parameters

Learn the probability mass function P(X=1)=p, P(X=0)=1-p and how parameter p fully defines the distribution.

Bernoulli Distribution PMF and Parameters

You'll learn: How the Bernoulli distribution's probability mass function uses a single parameter p to completely describe any binary outcome scenario.

The Core Idea

A Bernoulli distribution models a single trial with exactly two outcomes: success (1) or failure (0). The probability mass function (PMF) tells us the probability of each outcome, and it's remarkably simple:

  • P(X = 1) = p (probability of success)
  • P(X = 0) = 1 - p (probability of failure)

Here, p is a parameter between 0 and 1 that represents the probability of success. That's it—just one parameter completely defines the entire distribution!

Understanding the Parameter

Think of p as a dial you can turn. Set p = 0.7, and you're modeling a scenario where success happens 70% of the time (like a basketball player's free-throw accuracy). Set p = 0.1, and success is rare (like winning a raffle).

The beauty? Once you know p, you know everything about the distribution. There's no other hidden information needed.

Why This Matters

This PMF satisfies all the properties you learned earlier:

  • Both probabilities are non-negative
  • They sum to 1: p + (1 - p) = 1
  • Every possible outcome (0 or 1) has an assigned probability

Example: Modeling a coin flip where heads = 1 and tails = 0. If it's a fair coin, p = 0.5, so P(X = 1) = 0.5 and P(X = 0) = 0.5. For a biased coin favoring heads, maybe p = 0.6.

Key Takeaway: The Bernoulli distribution's PMF is defined by a single parameter p, where P(X = 1) = p and P(X = 0) = 1 - p—this one value tells you everything about the distribution's behavior.