From a statistical perspective, the data
can be interpreted as a sample of
independent realizations of a random variable drawn from an unknown population.
The goal of data analysis is to identify the population most likely to have generated these samples. In statistics, each population is identified by a corresponding probability distribution, and each probability distribution is associated with a unique parameterization
: changing these parameters must produce a different probability distribution.
Let
be the probability density function (PDF) giving the probability of observing
for a given parameterization
.
If the individual observations
are statistically independent, the PDF of
can be expressed as the product of the individual PDFs:
| (2.51) |
Given a parameterization
, we can define a specific PDF that describes the relative likelihood of different data.
In practice, however, the inverse problem arises: the data have been observed, and we must determine which
generated that particular PDF.
| (2.52) |
The maximum likelihood estimator (MLE)
, originally developed by R. A. Fisher in the 1920s, selects the parameterization that makes the resulting probability distribution best fit the observed data.
For a Gaussian probability distribution, a further definition is useful.
| (2.53) |
The best estimate of the model parameters is the one that maximizes the likelihood, or equivalently the log-likelihood:
| (2.54) |
The literature sometimes uses the minimum of the negative log-likelihood as the optimal estimator, rather than the maximum of the likelihood function:
| (2.55) |
This formulation is particularly useful when the noise is Gaussian.
Let be the realizations of the random variable.
For a general function
with normally distributed noise of constant variance and zero mean, the likelihood is
| (2.56) |
| (2.57) |
The partial derivatives of the log-likelihood form a vector
| (2.58) |
| (2.59) |
| (2.60) |
In machine learning, the cost function used to train many probabilistic models is the negative log-likelihood or an approximation to it.