Log-Likelihood Functions for Discrete Probability Distributions
Introduces the log-likelihood function for iid samples from discrete distributions. Students learn to write the log-likelihood as a sum of log-PMF terms, derive closed-form expressions for Bernoulli and Poisson samples, and evaluate the log-likelihood numerically at a specified parameter value.
Tutorial
Introduction to the Log-Likelihood
The log-likelihood function is defined as the natural logarithm of the likelihood function:
Why work with the logarithm? For an iid sample, the likelihood is a product of PMF values, and products are awkward to differentiate. The logarithm converts products into sums:
Sums are far easier to manipulate and differentiate. Furthermore, since is strictly increasing, the value of that maximizes also maximizes -- the two functions attain their maximum at the same point.
To illustrate, suppose we observe two independent Bernoulli() trials with outcomes and . The likelihood is
Taking the natural logarithm of both sides,