28 Apr 2026
Binomial Distribution: X ~ Binomial(n, p)
For X ~ Binomial(n, p):
\[P(X = x) = \binom{n}{x} p^x (1-p)^{n-x}, \quad x = 0, 1, 2, \ldots, n\]
Where:
Poisson Distribution: X ~ Poisson(λ)
For X ~ Poisson(λ):
\[P(X = x) = \frac{e^{-\lambda} \lambda^x}{x!}, \quad x = 0, 1, 2, \ldots\]
Where:
By the end of this lecture, you will be able to:
For ANY discrete random variable, we need to calculate:
Key Insight: Master the relationships between these to solve ANY probability problem!
Meaning: The probability that X takes on exactly the value x
Google Sheets Formula:
=BINOM.DIST(x, n, p, FALSE)
=POISSON.DIST(x, lambda, FALSE)
Note: Use FALSE for exact probability!
Example: X = number of orders in a coffee shop from 4pm - 5pm, X ~ Poisson(5), find P(X = 7)
\[P(X = 7) = \frac{e^{-\lambda} \lambda^x}{x!} = \frac{e^{-5} 5^7}{7!} = 0.1044\]
=POISSON.DIST(7, 5, FALSE) ≈ 0.1044
Interpretation: About 10.44% chance of exactly 7 orders
Meaning: The probability that X takes on exactly the value x
Google Sheets Formula:
=BINOM.DIST(x, n, p, FALSE)
=POISSON.DIST(x, lambda, FALSE)
Note: Use FALSE for exact probability!
Example: X = number of people who order a latte out of 20 clients. X ~ Binomial(n=20, p = 0.4), find P(X = 7)
\[P(X = 7) = \binom{n}{x} p^x (1-p)^{n-x} = \binom{20}{7} 0.4^7 (1-0.4)^{20-7} = 0.1659\]
BINOM.DIST(7, 20, 0.4, FALSE) ≈ 0.1659
Interpretation: About 16.59% probability of getting exactly 7 orders of latte among 20 clients.
Meaning: Probability that X is less than or equal to x
Google Sheets Formula:
=BINOM.DIST(x, n, p, TRUE)
=POISSON.DIST(x, lambda, TRUE)
Note: Use TRUE for cumulative probability!
Example: X ~ Binomial(20, 0.05), find P(X ≤ 2)
\[P(X ≤ 2) = P(X = 0) + P(X = 1) + P(X = 2)\] \[ = \binom{20}{0} 0.05^0 (1-0.05)^{20-0} + \binom{20}{1} 0.05^1 (1-0.05)^{20-1} + \] \[\binom{20}{2} 0.05^2 (1-0.05)^{20-2}= 0.9245\]
=BINOM.DIST(2, 20, 0.05, TRUE) ≈ 0.9245
Critical Distinction: Less than x does NOT include x itself!
The Formula: P(X < x) = P(X ≤ x-1)
Google Sheets:
=BINOM.DIST(x-1, n, p, TRUE)
=POISSON.DIST(x-1, lambda, TRUE)
Example: X ~ Poisson(8), find P(X < 5)
\[P(X < 5) = \sum_{i = 0, n =5} P(X = i)\] \[P(X = 0) = \frac{e^{-8} \cdot 8^0}{0!} = \frac{0.00033546 \cdot 1}{1} = 0.00033546\]
\[P(X = 1) = \frac{e^{-8} \cdot 8^1}{1!} = \frac{0.00033546 \cdot 8}{1} = 0.00268368\]
\[P(X = 2) = \frac{e^{-8} \cdot 8^2}{2!} = \frac{0.00033546 \cdot 64}{2} = 0.01073472\]
\[P(X = 3) = \frac{e^{-8} \cdot 8^3}{3!} = \frac{0.00033546 \cdot 512}{6} = 0.02862592\]
\[P(X = 4) = \frac{e^{-8} \cdot 8^4}{4!} = \frac{0.00033546 \cdot 4096}{24} = 0.05725184\]
\[P(X < 5) = 0.00033546 + 0.00268368 + 0.01073472 + 0.02862592 + 0.05725184\]
\[P(X < 5) = 0.09963162\]
Answer: P(X < 5) ≈ 0.0996 or 9.96%
=POISSON.DIST(4, 8, TRUE) ≈ 0.0996
The Formula: P(X ≥ x) = 1 - P(X ≤ x-1)
Google Sheets:
=1-BINOM.DIST(x-1, n, p, TRUE)
=1-POISSON.DIST(x-1, lambda, TRUE)
Example: X ~ Binomial(50, 0.30), find P(X ≥ 20)
P(X ≥ 20) = 1 - P(X < 19)
=1-BINOM.DIST(19, 50, 0.30, TRUE) ≈ 0.0848
The Formula: P(X > x) = 1 - P(X ≤ x)
Compare: - P(X ≥ x) = 1 - P(X ≤ x-1) includes x - P(X > x) = 1 - P(X ≤ x) excludes x
Example: X ~ Poisson(12), find P(X > 15)
=1-POISSON.DIST(15, 12, TRUE) ≈ 0.1556
The Master Formula: P(a ≤ X ≤ b) = P(X ≤ b) - P(X ≤ a-1)
All Four Range Types:
Example: X ~ Poisson(6), find P(4 ≤ X ≤ 8)
=POISSON.DIST(8,6,TRUE) - POISSON.DIST(3,6,TRUE) ≈ 0.6960
Probability Practice Problems
A call center receives an average of 10 calls per hour. Let X ~ Poisson(10)
Calculate:
P(X = 12) - exactly 12 calls
P(X ≤ 8) - at most 8 calls
P(X < 7) - fewer than 7 calls
P(X ≥ 15) - at least 15 calls
P(X > 13) - more than 13 calls
P(8 ≤ X ≤ 12) - between 8 and 12 calls
Write Google Sheets formulas AND calculate answers! Post on Ed Discussion with your partner’s name!
Use BINOMIAL when:
Fixed number of trials (n is known)
Each trial: success or failure
Trials are independent
Same probability p each time
Use POISSON when:
Counting events over time/space
Events happen at constant rate
Events are independent
No upper limit on count
Quick Test: Can you list all outcomes? YES = Binomial, NO = Poisson
Website gets 200 visitors, 5% buy - how many purchases?
How many typos in 50-page document?
Out of 100 coin flips, how many heads?
How many emails arrive per day?
Inspect 50 products, how many defective?
Choose the right answer according to the question number.
Time to recharge!
New Concept: What if we transform a random variable?
Linear Transformation: Y = aX + b
Example: Coffee shop with X ~ Poisson(8) customers per hour Each customer spends 5 dollars Revenue: Y = 5X
How do we find E(Y) and Var(Y)?
The Rules:
E(aX + b) = aE(X) + b
Special cases:
E(aX) = aE(X)
E(X + b) = E(X) + b
E(c) = c
Example: X ~ Poisson(8), Revenue Y = 5X
E(Y) = 5 × E(X) = 5 × 8 = 40 dollars per hour
With Fixed Cost: Z = 3X + 50, E(X) = 20
E(Z) = 3 × 20 + 50 = 110 dollars
The Rules:
Var(aX + b) = a² Var(X)
IMPORTANT: Adding a constant does not change variance!
Special cases:
Var(aX) = a² Var(X)
Var(X + b) = Var(X)
Var(c) = 0
Example: X ~ Poisson(8), Revenue Y = 5X
Var(Y) = 25 × 8 = 200
SD(Y) = sqrt(200) ≈ 14.14 dollars
X ~ Poisson(12) deliveries per day E(X) = 12, Var(X) = 12
Calculate E(R):
E(R) = 8 × 12 + 25 = 121 dollars per day
Calculate Var(R):
Var(R) = 64 × 12 = 768
SD(R) = sqrt(768) ≈ 27.71 dollars
Functions of Random Variables Practice
Ride-sharing driver: X ~ Poisson(15) rides per day
Earnings model: E = 12X + 40
Calculate:
E(X) and Var(X)
E(E) - expected daily earnings
Var(E) - variance of earnings
SD(E) - standard deviation
Interpretation: What do these tell the driver?
Show all work! Post on Ed Discussion with partner’s name!
Discrete:
But what about:
These take ANY value in an interval - CONTINUOUS!
Definition: Can take any value within an interval
DISCRETE vs CONTINUOUS:
Critical Difference: For continuous, P(X = any specific value) = 0
We can only calculate P(a ≤ X ≤ b) over intervals!
Intuition: Infinite precision means infinitely many values
Example: Height exactly 170 cm?
Not 169.9 or 170.1, but exactly 170.000000… cm?
With infinite precision, probability is 0!
But we CAN ask:
P(169 ≤ Height ≤ 171) = positive
P(Height ≤ 170) = positive
P(Height > 165) = positive
Key Consequence: For continuous, P(X ≤ a) = P(X < a)
For discrete: Probability mass function (PMF)
For continuous: Probability density function (PDF), f(x)
Key Properties:
f(x) ≥ 0 for all x
Total area under f(x) = 1
P(a ≤ X ≤ b) = area under f(x) from a to b
f(x) itself is NOT a probability
For continuous: P(a ≤ X ≤ b) = area under PDF
Our First Continuous Distribution!
Uniform: All values in interval equally likely
Notation: X ~ Uniform(a, b)
PDF: f(x) = 1/(b-a) for a ≤ x ≤ b, otherwise 0
The PDF is constant (flat) over the interval!
Example: Bus arrives between 8:00 and 8:20
X ~ Uniform(0, 20) minutes after 8:00
f(x) = 1/20 for 0 ≤ x ≤ 20
For X ~ Uniform(a, b):
Mean: E(X) = (a + b)/2
Variance: Var(X) = (b-a)²/12
Standard Deviation: SD(X) = (b-a)/sqrt(12)
Example: X ~ Uniform(0, 20)
E(X) = 10 minutes
Var(X) = 400/12 ≈ 33.33
SD(X) ≈ 5.77 minutes
For X ~ Uniform(a, b):
P(c ≤ X ≤ d) = (d - c)/(b - a)
This is area of rectangle!
Height = 1/(b-a), Width = (d-c), Area = (d-c)/(b-a)
Example: X ~ Uniform(0, 20)
P(5 ≤ X ≤ 15) = (15-5)/(20-0) = 10/20 = 0.50
50% chance bus arrives in that window
X ~ Uniform(0, 20)
P(X ≤ 10) = 10/20 = 0.50
P(X > 15) = 5/20 = 0.25
P(X < 5 or X > 18) = 5/20 + 2/20 = 0.35
P(8 ≤ X ≤ 12) = 4/20 = 0.20
No built-in function, but easy formulas!
For X ~ Uniform(a, b):
Mean: =(a+b)/2
Variance: =(b-a)^2/12
Std Dev: =(b-a)/SQRT(12)
P(c ≤ X ≤ d): =(d-c)/(b-a)
P(X ≤ c): =(c-a)/(b-a)
P(X ≥ d): =(b-d)/(b-a)
Example: X ~ Uniform(5, 15)
Mean: =(5+15)/2 = 10
P(7 ≤ X ≤ 12): =(12-7)/(15-5) = 0.5
When do we see uniform distributions?
Uniform Distribution Practice
Customer arrives uniformly between 7:15 and 7:45
X ~ Uniform(15, 45) minutes after 7:00
Calculate:
E(X) - expected arrival time
Var(X) and SD(X)
P(X ≤ 30) - arrive by 7:30
P(X > 40) - arrive after 7:40
P(20 ≤ X ≤ 35) - between 7:20 and 7:35
P(within 5 minutes of 7:30)
| Feature | Discrete | Continuous |
|---|---|---|
| Values | Countable | Uncountable |
| Function | PMF | |
| P(X=x) | Can be positive | Always 0 |
| Probabilities | Sum | Integrate |
| Total Prob | Sum = 1 | Integral = 1 |
| Examples | Binomial, Poisson | Uniform, Normal |
| Less than vs Less than or equal | Different | Same |
Key: Continuous needs intervals, not exact values!
Part 1: Mastering Discrete Probabilities
All probability types
Choosing distributions
Complement rule
Part 2: Functions of Random Variables
E(aX + b) = aE(X) + b
Var(aX + b) = a² Var(X)
Real-world applications
Part 3: Continuous Distributions
P(X = x) = 0
PDF and area under curve
Uniform distribution
Rate your confidence (1-5) on Ed Discussion:
If you rated anything 3 or below, visit office hours!
Questions? I have office hours right after class today!
Next up: The Normal Distribution
Remember:
![]()
STAT 17 – Spring 2026