Advanced Topic 48 of 51 Math for Computing
Maximum Likelihood Estimation
Choosing parameters that make data most probable.
How it works
Maximum likelihood estimation chooses the parameter values that make the observed data most probable under a model. The likelihood is the probability of the data as a function of the parameters, and for independent data it is a product, so the log-likelihood, a sum, is maximized by setting the derivative to zero or using numerical optimization. Estimators are consistent and asymptotically normal under regularity conditions, with the Fisher information giving their variance. Minimizing cross-entropy or squared error in many models is equivalent to maximum likelihood.
Where it is used
Fitting distributions, logistic regression, training neural networks with cross-entropy, estimating parameters in time series and survival models, and hidden Markov models use maximum likelihood.
Common pitfall
With small samples it can be biased or overfit, such as the variance estimate dividing by n, and it may give extreme values like zero probabilities for unseen events, requiring smoothing or priors. Likelihood surfaces can have multiple local maxima. Check model assumptions and use regularization or Bayesian methods with limited data.
Where it fits in the course
Maximum Likelihood Estimation is topic 48 of 51 in Math for Computing, rated Advanced. It follows Stochastic Processes. The next topic is Bayesian Inference.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Math for Computing quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Math for Computing quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Maximum Likelihood Estimation?
Where do people use Maximum Likelihood Estimation?
What is the most common mistake with Maximum Likelihood Estimation?
What should I learn before this topic?
How can I practice it?
Is Maximum Likelihood Estimation hard to learn?
How long does it take to learn Maximum Likelihood Estimation?
Which topics are related to Maximum Likelihood Estimation?
What should I study after Maximum Likelihood Estimation?
Related topics
- Stochastic Processes (Math for Computing)
- Bayesian Inference (Math for Computing)
- Monte Carlo Methods (Math for Computing)
- Information Entropy Math (Math for Computing)
- Maximum Flow (Algorithms)
- Software Estimation (Software Engineering)