Chapter 8B: Beta and Gamma Distributions  
MATH/STAT 394: Probability I  
Arman Jahangiri  
University of Washington Department of Mathematics  
Summer 2026  
Arman Jahangiri  
Summer 2026  
1
 
Learning Goals  
By the end of this lecture, students should be able to:  
define the Beta distribution;  
understand how Beta parameters affect shape;  
recognize Uniform distributions as special Beta distributions;  
define the Gamma function and Gamma distribution;  
interpret Gamma distributions as sums of Exponential random variables;  
compute means and variances of Beta and Gamma random variables;  
understand the relationship between Gamma and Poisson processes.  
Arman Jahangiri  
Summer 2026  
2
Beta Distribution  
Arman Jahangiri  
Summer 2026  
3
Why the Beta Distribution?  
Many random quantities naturally live between  
0
and 1.  
Examples:  
probabilities;  
proportions;  
percentages;  
fractions;  
success rates.  
Main idea  
The Beta distribution is one of the most important distributions on the interval  
(0, 1).  
Arman Jahangiri  
Summer 2026  
4
Beta Function  
Definition  
For  
a, b > 0,  
the Beta function is  
Z
1
B(a, b) =  
xa1(1 x)b1 dx.  
0
The Beta function serves as a normalization constant.  
Arman Jahangiri  
Summer 2026  
5
Definition of the Beta Distribution  
Definition  
A random variable X has the Beta distribution with parameters  
a, b > 0  
if its PDF is  
xa1(1 x)b1  
f (x) =  
,
0 < x < 1.  
B(a, b)  
Notation:  
X Beta(a, b).  
Arman Jahangiri  
Summer 2026  
6
Shape of Beta Distributions  
Different parameter values create very different shapes.  
Examples:  
a = b = 1  
gives a Uniform distribution;  
a, b > 1  
produces mound-shaped densities;  
a < 1  
or  
b < 1  
can create spikes near the endpoints.  
Important  
The Beta family is extremely flexible.  
Arman Jahangiri  
Summer 2026  
7
Uniform Distribution as a Beta Distribution  
If  
a = b = 1,  
then  
B(1, 1) = 1,  
and the PDF becomes  
Thus:  
f (x) = 1,  
0 < x < 1.  
Beta(1, 1) = Unif(0, 1).  
Arman Jahangiri  
Summer 2026  
8
Mean and Variance of Beta  
If  
X Beta(a, b),  
then  
a
E(X) =  
.
a + b  
Also,  
ab  
Var(X) =  
.
(a + b)2(a + b + 1)  
Interpretation  
The parameters control both:  
the center;  
the concentration.  
Arman Jahangiri  
Summer 2026  
9
Beta Distribution and Beliefs  
Suppose a coin has unknown success probability  
p.  
Before observing data, we may model uncertainty about p using a Beta distribution.  
Example:  
p Beta(2, 2)  
represents a prior belief favoring values near  
0.5.  
Bayesian interpretation  
Beta distributions are natural models for uncertain probabilities.  
Arman Jahangiri  
Summer 2026 10  
Beta-Binomial Connection  
Suppose:  
p Beta(a, b),  
and conditional on p,  
X | p Bin(n, p).  
Then the posterior distribution of p given X = k is again Beta:  
p | X = k Beta(a + k, b + n k).  
This is called conjugacy.  
Arman Jahangiri  
Summer 2026 11  
Bayes’ Billiards  
Imagine tossing a ball uniformly onto a billiard table.  
A second sequence of balls lands independently.  
We ask: what fraction land to the left of the first ball?  
This naturally leads to Beta distributions.  
Historical note  
This is one of the earliest Bayesian probability models.  
Arman Jahangiri  
Summer 2026 12  
Gamma Function  
Arman Jahangiri  
Summer 2026 13  
Why the Gamma Function?  
Recall:  
n! = 1 · 2 · 3 · · · n.  
Can factorials be extended to non-integer values?  
Answer  
Yes. The Gamma function generalizes factorials to positive real numbers.  
Definition  
For  
α > 0,  
the Gamma function is  
Z
Γ(α) =  
xα1 x dx.  
e
0
Arman Jahangiri  
Summer 2026 14  
Connection with Factorials  
Theorem  
For positive integers n,  
Γ(n) = (n 1)!.  
Proof. Show Γ(n) = (n 1) × Γ(n 1) using integration by parts, and then solve the recursion with induction.  
Examples:  
Γ(1) = 1,  
Γ(2) = 1!,  
Γ(3) = 2!,  
etc.  
Arman Jahangiri  
Summer 2026 15  
Gamma Distribution  
Arman Jahangiri  
Summer 2026 16  
Definition of Gamma Distribution  
Definition  
A random variable X has the Gamma distribution with parameters  
α, λ > 0  
if its PDF is  
λα  
f (x) =  
xα1eλx  
,
x > 0.  
Γ(α)  
Notation:  
X Gamma(α, λ).  
Arman Jahangiri  
Summer 2026 17  
Exponential Distribution as a Gamma Distribution  
If  
α = 1,  
Γ(1) = 1,  
then  
and the PDF becomes  
Thus:  
f (x) = λeλx  
.
Gamma(1, λ) = Exp(λ).  
Arman Jahangiri  
Summer 2026 18  
Mean and Variance of Gamma  
If  
X Gamma(α, λ),  
then  
α
E(X) =  
.
λ
Also,  
α
λ2  
Var(X) =  
.
Arman Jahangiri  
Summer 2026 19  
Proof: Mean and Variance of Gamma  
The density is  
λα  
fX (x) =  
xα1eλx  
,
x > 0.  
Γ(α)  
Then  
Z
Z
λα  
E(X) =  
xfX (x) dx =  
xαeλx dx.  
Γ(α)  
0
0
Using  
Z
Γ(α + 1)  
λα+1  
xαeλx dx =  
,
0
we get  
λα  
Γ(α + 1)  
λα+1  
E(X) =  
·
.
Γ(α)  
Since Γ(α + 1) = αΓ(α),  
α
.
E(X) =  
λ
Arman Jahangiri  
Summer 2026 20  
Proof: Variance of Gamma  
First compute  
Z
E(X2) =  
x2fX (x) dx.  
0
Thus  
Z
λα  
E(X2) =  
xα+1 λx dx.  
e
Γ(α)  
0
Using  
we get  
Z
Γ(α + 2)  
λα+2  
xα+1  
e
λx dx =  
,
0
λα  
Γ(α + 2)  
λα+2  
E(X2) =  
·
.
Γ(α)  
Since  
Γ(α + 2) = (α + 1)αΓ(α),  
we have  
α(α + 1)  
E(X2) =  
.
λ2  
Therefore,  
α(α + 1)  
α2  
λ2  
Var(X) = E(X2) (E(X))2 =  
.
λ2  
Hence  
Arman Jahangiri  
Summer 2026 21  
Gamma as a Sum of Exponentials  
Suppose  
X1, . . . , Xn  
are independent Exponential(λ) random variables.  
Define  
T = X1 + · · · + Xn.  
Then:  
T Gamma(n, λ).  
Interpretation  
Gamma distributions describe waiting times for multiple arrivals.  
Arman Jahangiri  
Summer 2026 22  
Gamma and Negative Binomial  
There is a strong analogy:  
Discrete  
Continuous  
Interpretation  
Geometric  
Exponential  
Gamma  
waiting for first event  
Negative Binomial  
waiting for multiple events  
Big picture  
Gamma distributions are continuous analogs of Negative Binomial distributions.  
Arman Jahangiri  
Summer 2026 23  
MGF of Gamma Distribution  
If  
X Gamma(α, λ),  
then its MGF is  
α
λ
MX (t) =  
,
λ t  
for t < λ.  
Arman Jahangiri  
Summer 2026 24  
Proof: MGF of Gamma Distribution  
The density is  
λα  
fX (x) =  
xα1eλx  
,
x > 0.  
Γ(α)  
By definition,  
Z
MX (t) = E(etX ) =  
etx fX (x) dx.  
0
Therefore,  
Z
λα  
MX (t) =  
xα1etx eλx dx.  
Γ(α)  
0
Combining the exponentials, we have  
Z
λα  
MX (t) =  
xα1  
e
(λt)x dx.  
Γ(α)  
0
Using the Gamma integral,  
Z
Γ(α)  
cα  
xα1  
e
cx dx =  
,
c > 0,  
0
with c = λ t, we get  
α
λ
MX (t) =  
,
for λ t > 0.  
λ t  
Arman Jahangiri  
Summer 2026 25  
Relationship Between Beta and Gamma  
If  
X Gamma(a, 1),  
Y Gamma(b, 1),  
Beta(a, b).  
independently, then  
X
X + Y  
Beautiful connection  
Beta and Gamma distributions are deeply linked.  
Arman Jahangiri  
Summer 2026 26  
Summary  
Beta distributions model random quantities between  
0
and 1.  
Gamma functions generalize factorials.  
Gamma distributions generalize Exponential distributions.  
Gamma distributions arise from sums of independent Exponentials.  
Beta and Gamma distributions are closely connected.  
Next lecture  
Conditional expectation and prediction.  
Arman Jahangiri  
Summer 2026 27