Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2023/ii/paper-1/5j/solution

For , the last flip must be the th head. Among the preceding flips, exactly are tails and are heads. There are choices for their positions, and every resulting sequence has probability . The negative binomial stopping argument therefore gives
so has the failures-before-the-th-success negative binomial distribution.
To put the mass function into exponential family form, set
Since ,
where
Thus the natural parameter of an exponential family is , and the Fisher-Neyman factorization theorem shows that is a sufficient statistic. This is the negative binomial exponential family.
The exponential-family derivative identities now give
and

New to topics? Read the docs here!