Logarithmic Differentiation

Introduces the technique of taking the natural logarithm of a likelihood function before differentiating it. Students learn to convert product likelihoods into sum log-likelihoods, compute score functions, and find maximum likelihood estimates by solving the score equation.

Step 1 of 119%

Tutorial

Introduction to Log-Likelihoods

When we observe data x1,x2,,xnx_1, x_2, \ldots, x_n drawn independently from a distribution with parameter θ\theta, the likelihood function is the product

L(θ)=i=1nf(xi;θ).L(\theta) = \prod_{i=1}^{n} f(x_i; \theta).

Products are awkward to differentiate. So instead of maximizing L(θ)L(\theta) directly, we maximize the log-likelihood

(θ)=lnL(θ)=i=1nlnf(xi;θ).\ell(\theta) = \ln L(\theta) = \sum_{i=1}^{n} \ln f(x_i; \theta).

Since ln\ln is strictly increasing, the value of θ\theta that maximizes L(θ)L(\theta) is the same value that maximizes (θ)\ell(\theta). The technique of taking the log before differentiating is called logarithmic differentiation.

The log turns products into sums via the rules

ln(ab)=lna+lnb,ln(ak)=klna,ln(ex)=x.\ln(ab) = \ln a + \ln b, \qquad \ln(a^k) = k\ln a, \qquad \ln(e^x) = x.

For example, if L(θ)=θ4e6θL(\theta) = \theta^4 e^{-6\theta}, then

(θ)=ln(θ4)+ln(e6θ)=4lnθ6θ.\ell(\theta) = \ln(\theta^4) + \ln(e^{-6\theta}) = 4\ln\theta - 6\theta.
navigate · Enter open · Esc close · ⌘K/Ctrl K toggle