Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 17

Negative Binomial Distribution: Exponential Family Form

Recommended resources

Introduction

Welcome to the final lesson in our module on the exponential family of distributions. In the last two lessons, you learned how to convert Binomial, Poisson, Normal, and Gamma distributions into the exponential family form. This process was key to understanding where components like the natural parameter , the cumulant function , and the dispersion parameter come from.

Today, we'll apply this skill one last time to the Negative Binomial distribution. This is a particularly important distribution in practice because it's a go-to choice for modeling count data that is "overdispersed"—meaning its variance is greater than its mean, a scenario where the Poisson model often falls short.

Your goal for this lesson is to convert the probability mass function (PMF) of the Negative Binomial (NB2) distribution into the exponential family form and correctly identify its components. Mastering this will complete your toolkit for handling the distributions most commonly used in GLMs.


The Negative Binomial (NB2) Distribution

Like many distributions, the Negative Binomial has several different parameterizations. For the purpose of GLMs, the most useful one is the NB2 parameterization, which is defined by its mean and a dispersion parameter. We will use the parameterization from the exam-style problem you've seen, where the dispersion parameter is denoted by . The size parameter, often called or , is related to by .

The PMF of a Negative Binomial random variable with mean and dispersion is:

This formula looks intimidating, but our goal is to show it belongs to the exponential family. The method is the same as before: algebraically manipulate it to fit the standard form.


Converting the Negative Binomial PMF

The algebraic conversion of the Negative Binomial PMF is very similar to what you've done for other distributions. It involves taking the logarithm, grouping terms, and identifying the components.

To see this process demonstrated, the following video provides a clear, step-by-step walkthrough. A quick heads-up: the video uses a slightly different but common parameterization of the Negative Binomial PMF. Don't worry about the difference in the starting formula—the algebraic strategy and logic for identifying the components are exactly the same.

Negative Binomial - a member of the Natural Exponential Family

This video, 'Negative Binomial - a member of the Natural Exponential Family', will guide you through the algebraic steps of the conversion. Focus on the process of rearranging the log-PMF to match the exponential family structure.

Watch the entire video (about 3.5 minutes). Pay close attention to how the presenter takes the log of the PMF, defines the natural parameter theta (θ), and then expresses the other parts of the equation in terms of theta to find b(θ).


The NB2 Components in Exponential Family Form

As you saw in the video, the core of the conversion is to express the PMF in the form:

For the standard NB2 parameterization with mean and dispersion , if we perform the same algebraic steps, we arrive at the following components. For this conversion, we treat the dispersion parameter (and thus ) as a known constant. This makes the Negative Binomial a member of the exponential family.

  1. Natural Parameter (): This is defined by the term that multiplies in the log-PMF.

    This is the canonical parameter for the Negative Binomial distribution.

  2. Cumulant Function (): This function is derived from the parts of the PMF that depend on but not on . After substituting in terms of , we get:

  3. Dispersion Function (): Since we are treating the dispersion parameter as known for this derivation, the function is simply:

  4. Normalizing Function (): These are the remaining terms, which depend on the data and the dispersion parameter .

This set of components precisely defines the Negative Binomial (NB2) distribution within the exponential family framework.


Connecting to the Exam-Style Problem

Let's look at the problem sheet you'll be studying. Part (a) asks you to do exactly what we just did.

Negative Binomial GLM Problem Set
This image shows an exam-style problem asking to convert the NB2 PMF into exponential family form and identify its components, assuming the dispersion parameter γ is known.

The question provides the NB2 PMF and asks you to show it is in the exponential family, identifying the components. The components we just derived are the solution to part (a) of this problem. Understanding this derivation is a direct answer to a potential exam question.


Conclusion

In this lesson, you've completed your survey of key distributions in the exponential family by tackling the Negative Binomial (NB2) distribution. You learned how to convert its PMF into the standard form and identified its key components.

Key Takeaways:

  • The Negative Binomial (NB2) distribution is essential for modeling overdispersed count data.
  • Its PMF can be converted to the exponential family form: , assuming the dispersion parameter is known.
  • The components for the NB2 distribution are:
    • Natural Parameter:
    • Cumulant Function:
    • Dispersion Function: (as is considered fixed)

You have now successfully converted all the key distributions for your exam—Binomial, Poisson, Normal, Gamma, and Negative Binomial—into the exponential family form. This algebraic skill provides the theoretical foundation for how GLMs work.

In the next lesson, we will shift from derivation to application. You'll learn a practical decision-making process for choosing the most appropriate distribution for a response variable based on its characteristics (e.g., mean, variance, domain). This is a critical skill for tackling application-based exam questions.