Computing Probabilities from PMFs
You'll learn how to use a probability mass function to calculate the probability of any event involving a discrete random variable.
The Core Idea
Once you have the PMF of a discrete random variable X, computing probabilities becomes straightforward: you simply add up the PMF values for all outcomes in your event.
For a single value, just look it up: P(X = k) = p(k), where p is the PMF.
For ranges or more complex events, sum the relevant probabilities. Since the PMF tells you the probability at each point in the range, computing P(X ∈ A) for any event A means:
P(X ∈ A) = Σ p(k) for all k in A
Practical Examples
Single value: If p(3) = 0.2, then P(X = 3) = 0.2
Range: To find P(X ≤ 5), sum p(0) + p(1) + p(2) + p(3) + p(4) + p(5)
Interval: For P(2 ≤ X ≤ 4), compute p(2) + p(3) + p(4)
Compound events: P(X is even) = p(0) + p(2) + p(4) + p(6) + ... for all even values in the range
The Complement Trick
Sometimes it's easier to compute what you don't want:
- P(X > 3) = 1 − P(X ≤ 3) = 1 − [p(0) + p(1) + p(2) + p(3)]
Analogy
Think of a PMF as a price list at a store. To find the total cost (probability) of your shopping basket (event), you look up the price of each item you want and add them up. The PMF guarantees all prices sum to exactly 1 (100% probability).
Key Takeaway: To compute any probability from a PMF, identify which outcomes belong to your event and sum their PMF values—leveraging the fact that probabilities of disjoint outcomes add.