Exponential Family
A beginner-friendly introduction to exponential family distributions, with examples like Bernoulli, Poisson, and Normal. Learn how to rewrite distributions in exponential form and understand their components visually.
Many of the probability distributions you encounter—like the normal, Poisson, and Bernoulli—belong to a powerful, unified class known as the exponential family. This article introduces the concept, explains its structure, and rewrites familiar distributions in exponential form with step-by-step math.
What is the exponential family?
A distribution belongs to the exponential family if its probability density or mass function can be written as:
Each part plays a specific role:
- : base measure
- : natural parameter
- : sufficient statistic
- : log-partition function (normalizes the distribution)
Why is this form useful?
- Sufficient statistics are made explicit
- Maximum likelihood estimation (MLE) becomes easier
- Conjugate priors exist for Bayesian analysis
- It enables unified analysis and transformation across distributions
Example 1: Bernoulli Distribution
The Bernoulli distribution is:
Step 1: Convert to exponential form
Step 2: Identify exponential family parts
✅ Bernoulli is in the exponential family.
Example 2: Poisson Distribution
The Poisson distribution is:
Step 1: Exponential form
Step 2: Map to the exponential form
✅ Poisson is in the exponential family.
Example 3: Normal Distribution (with known variance)
Consider the normal distribution with known variance :
Step 1: Expand and rearrange
Step 2: Identify components
✅ Normal (with fixed variance) is also in the exponential family.
The log-partition function
This function ensures that the probability integrates (or sums) to 1. Formally:
It also plays a key role in computing expectations and variances in exponential families.
Visual Interactive Demo
Use the demo below to explore how the shape of distributions in the exponential family changes with the natural parameter . You can also experiment with different sufficient statistics and see how the log-partition function affects normalization.
Exponential Family Builder
Explore exponential family distributions interactively
Distribution
Distribution Visualization
Exponential Family Form
Standard Form
Maximum Probability
0
Distribution Type
Discrete
Components
h(x) - Base Measure
Constant (same for all x)
T(x) - Sufficient Statistic
Identity function (x itself)
η - Natural Parameter
Controls the distribution shape
A(θ) - Log-partition
Ensures normalization
Parameter Relationship
Understanding Exponential Families
General Form
All exponential family distributions can be written as:
Component Roles
Summary
The exponential family provides a unified framework for many common distributions. Understanding how different distributions fit this structure helps in both frequentist and Bayesian inference.