Introduction
Maximum likelihood is a way to use observed data to choose among possible explanations. It asks: if a particular set of assumptions were true, how plausible would it be to see the data we actually observed? The method selects the parameter values that make those observations most plausible under a chosen statistical model. Understanding that process reveals both what maximum likelihood can do and what it cannot.
- The central idea: compare explanations against the data
- Likelihood is not quite the same as probability
- A coin-toss example, step by step
- Why the calculation often uses logarithms
- What “best fit” means—and what it does not
- When a maximum may be hard to find
- Estimation and uncertainty are separate questions
- Why the model matters so much
- Where maximum likelihood is used
- How it differs from Bayesian estimation
- Conclusion
The central idea: compare explanations against the data
Many statistical problems begin with a model: a simplified description of how data might be generated. The model may include unknown quantities called parameters. For example, a model of coin tosses might have one parameter, the probability of landing heads. A model of adult heights might include parameters describing the average and spread.
After collecting observations, we can ask how well different parameter values fit them. Maximum likelihood chooses the values under which the observed data would have the greatest probability, or, for continuously measured data, the greatest probability density. The resulting estimates are called maximum likelihood estimates, often shortened to MLEs.
This does not mean the method proves that the selected values are true. It means they rank highest according to a particular model and a particular set of observations. Change the model or the data, and the answer may change.
Likelihood is not quite the same as probability
Probability usually starts with a model and asks what data might occur. For instance, if a fair coin is tossed ten times, probability theory can describe the chance of seeing a particular number of heads.
Likelihood turns the question around. Once the data have been observed, it compares possible model settings. If ten tosses produce seven heads, how well does a coin with a 50% chance of heads explain that result? How well does a coin with a 70% chance explain it?
The distinction is about what is being treated as fixed. In a likelihood calculation, the observed data are held fixed while the parameter varies. The likelihood is therefore a function of the parameter, not a probability distribution over possible parameter values. It does not, by itself, say that one parameter value has a particular probability of being true.
That last point can be surprising. A likelihood can compare how well parameter values explain the data, but it does not automatically include prior beliefs about which values were plausible before the observations. Bayesian statistics handles that different question by combining a likelihood with a prior distribution.
A coin-toss example, step by step
Imagine tossing a coin ten times and observing seven heads and three tails. Let p represent the probability of heads on any toss. If the tosses are independent and the same p applies each time, the likelihood of this particular sequence is proportional to p7(1 − p)3. The expression counts how the proposed value of p fits the seven heads and three tails.
At p = 0.5, the model gives equal probability to heads and tails. At p = 0.7, it gives a higher probability to heads. For these observations, the likelihood is greatest at p = 0.7. That is the MLE: the observed proportion of heads.
The result is intuitive, but it does not establish that the coin’s true chance of heads is exactly 70%. Ten tosses provide limited information, and other results could have occurred by chance even if the coin were fair. Maximum likelihood identifies the best-fitting value within the model; assessing how uncertain that estimate is requires additional statistical work.
Also, the calculation depends on assumptions. If tosses influence one another, or the coin changes during the experiment, the simple model may not describe the process. A precise calculation under a poor model can still produce a misleading answer.
Why the calculation often uses logarithms
For independent observations, the likelihood of the whole dataset is commonly the product of the likelihoods for each observation. This follows from the independence assumption: the model treats each observation as contributing its own factor to the joint likelihood.
Products of many small numbers can become extremely tiny, making them inconvenient for computation. A standard solution is to take the logarithm. Because the logarithm increases as its input increases, maximizing a positive likelihood gives the same parameter estimate as maximizing its log. The product becomes a sum, which is easier to work with.
The resulting quantity is called the log-likelihood. In the coin example, the log-likelihood, apart from a constant that does not affect the maximizing value, is 7 log(p) + 3 log(1 − p). The estimate is found by choosing p to make this expression as large as possible.
In practical statistics, software often searches for the largest log-likelihood numerically. Some models have a simple formula for the MLE; others require an iterative algorithm that tests and updates parameter values. The software’s numerical search is a way to carry out the optimization, not a substitute for checking whether the model and assumptions make sense.
What “best fit” means—and what it does not
Maximum likelihood uses a specific definition of fit: how much likelihood the model assigns to the observed data. It does not simply count prediction errors, nor does it always select the model that looks best in a chart. In some familiar settings, maximizing likelihood is closely related to minimizing a measure of error, but that relationship depends on the assumed distribution.
The method also does not automatically prefer simpler explanations. A more flexible model can often fit the data it was given very closely, including patterns that arose by chance. This is one form of overfitting: a model captures peculiarities of the observed sample that may not recur in new data.
For that reason, model assessment often includes more than the maximum likelihood value. Analysts may examine performance on separate data, consider whether additional parameters are justified, or use criteria that balance fit with complexity. The appropriate approach depends on the purpose of the analysis and the kind of data involved.
When a maximum may be hard to find
Not every likelihood has one clear, well-behaved peak. It may have several local peaks, a broad flat region, or a maximum at the edge of the allowed parameter range. Different starting values in a numerical search can sometimes lead to different local solutions, so checking the result matters.
Some models also have parameters that cannot be distinguished using the available observations. This is called non-identifiability. If several parameter combinations imply the same distribution of observable data, the data cannot uniquely determine which combination generated them. The likelihood may then fail to select a single meaningful answer.
Small samples can create other difficulties. An estimate may be unstable, especially when the data contain little information about a parameter. In some statistical models, certain patterns of data can even cause a parameter estimate to grow without bound rather than settle at a finite value. Such cases are signals to examine the model, data, and estimation method rather than treating the numerical output as automatically reliable.
Estimation and uncertainty are separate questions
An MLE is a point estimate: one selected value for each unknown parameter. Researchers and analysts usually also want to know how much the estimate might vary if new data were collected under similar conditions.
That uncertainty can be described in several ways, including confidence intervals, standard errors, or likelihood-based intervals. These methods rely on additional reasoning and assumptions. A confidence interval, for example, is not simply a range containing a fixed probability that the parameter lies inside it; its standard interpretation concerns the behavior of the procedure across repeated samples.
With suitable conditions and enough informative data, MLEs often have useful large-sample properties, including consistency and approximately normal sampling behavior. These are general results, not guarantees for every dataset or model. Small samples, weak information, boundary estimates, or a misspecified model can make simple uncertainty approximations unreliable.
Why the model matters so much
Maximum likelihood can only compare explanations that the model makes available. If a model assumes that observations are independent when they are connected, or assumes a particular distribution that poorly represents the data, the estimate may be precisely optimized for the wrong description of the process.
Consider measurements that are grouped by location, person, or time. Treating every measurement as unrelated may overlook shared influences. A model that accounts for the grouping may give a more suitable likelihood and different estimates. Likewise, unusual observations, measurement errors, missing data, and changes in the data-generating process can affect what the likelihood says.
Model checking is therefore part of responsible maximum-likelihood analysis. Analysts may compare predicted patterns with observed ones, inspect residuals (differences between observations and model predictions), and test whether conclusions change under reasonable alternative assumptions. No single check can prove a model is correct, but checks can reveal important mismatches.
Where maximum likelihood is used
Maximum likelihood appears across statistics because many probability models can be expressed in terms of parameters and observed data. In linear regression, for example, estimates can be obtained by maximum likelihood when a particular model for the errors is assumed. In logistic regression, the method estimates how input variables relate to the probability of a binary outcome.
It is also used in areas such as reliability analysis, population studies, machine learning, and the analysis of time-based data. The details vary: each application has its own model, assumptions, and interpretation. The shared principle is to evaluate candidate parameter values by how well their model accounts for the observations.
In machine learning, maximizing likelihood is often described as learning parameters that make the training examples more likely. This can be useful, but high likelihood on training data alone does not guarantee good predictions on new examples. Validation and careful model design remain important.
How it differs from Bayesian estimation
Maximum likelihood and Bayesian methods can use the same likelihood, but they answer questions in different ways. Maximum likelihood selects the parameter value that maximizes the likelihood. Bayesian analysis combines the likelihood with a prior, which represents information or assumptions about parameter values before considering the current data, and produces a posterior distribution.
A prior can matter especially when data are limited or parameters are weakly determined. It may also encode established background knowledge, provided that choice is made transparently. Maximum likelihood does not use such a prior by itself. Neither approach removes the need to choose and assess a suitable model.
In some settings, Bayesian estimates and maximum likelihood estimates may be similar; in others, they may differ. The distinction is not that one method uses data and the other does not. Both can use observed data, but they combine and summarize information differently.
Conclusion
Behind the scenes, maximum likelihood evaluates a model’s candidate parameter values by asking how well each one accounts for the observations, then selects the value with the highest likelihood. Logarithms and numerical optimization make this practical for complex calculations. The result is a model-dependent estimate, not proof of truth or a complete measure of uncertainty. Its usefulness depends on sound assumptions, informative data, and careful checks of fit.

