Why is the Bernoulli distribution with parameter in the exponential family? What are its natural parameter, sufficient statistic and log-partition function, and why does the derivative of the log-partition function give the mean?
Probability and statistics, Exponential family
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.
What's being asked
Writing a distribution as and using the properties of .
Key idea
with , so and .
Steps
- Start with for and take the exponential of its log.
- Rearrange: .
- Match to : , , natural parameter (the log-odds).
- Invert: , the sigmoid. Then , so .
- Differentiate: . Again, .
- Link to ML: this is why logistic regression models linearly and passes it through a sigmoid to get the mean.
Common mistakes
- Leaving as the parameter in the exponent. The natural parameter is the log-odds, not .
- Writing without the sign. The log-partition is .
- Forgetting the base measure (here it equals 1).
How long your answer should be
Half a page; 4–5 minutes.
Last checked on 4 December 2026.
Read this
Previous in Probability and statistics: A die-like variable takes values in with probabilities . Given observations of category (total ), derive the MLE of with a Lagrange multiplier. For counts , what is it?
Next in Probability and statistics: A variable is drawn from with probability 0.3 and from (variance 2) with probability 0.7. Use the law of total variance to find its mean and variance. Why is the variance more than the weighted average of the two component variances?