Appendix A3

Maximum Likelihood Estimation and Newton's Method

The maximum likelihood method is a way of inferring parameter values from sample data. Parameters are chosen such that they maximize the probability (=likelihood) of drawing the sample that was actually observed. We can split the procedure into two main steps:

  1. Set up a likelihood function that describes how the probability of a given sample depends on the parameters.
  2. Based on step 1, determine the parameters that maximize the likelihood of the sample at hand.

Let us work through a simple example. Consider a sample of three numbers

x1 = − 1,     x2 = 5,     x3 = 2

which are derived from a normal distribution with unknown mean μ and unknown variance σ2. The likelihood of observing a single value xi is given by the density of a normal distribution:

images

In many cases, we have good reasons to assume that individual draws are independent. The likelihood of the entire data set then can be obtained by multiplying the individual likelihoods. In our case this leads to (recall exp(x)exp(y) = exp(x + y)):

images

For the simple example, we can easily graph the likelihood function L: it is shown in Table A3.1. The function PI() returns π. To compute the sum of squares ∑(xiμ)2 we could type (here for cell B8):

($B$2-$A8)^2+($B$3-$A8)^2+($B$4-$A$8)^2 ...

Get Credit Risk Modeling Using Excel and VBA with DVD now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.