Maximum Likelihood Estimation (MLE) is one of the most important estimation methods in statistics and econometrics. NYC students encounter it in courses on regression, machine learning, and mathematical statistics. This guide explains how MLE works in linear regression, logistic regression, and generalized regression models.
1. What MLE Tries to Do
MLE chooses parameter values that make the observed data “most likely.” Formally, if the data have density or mass function \( f(y_i \mid \theta) \), the likelihood is:
\[ L(\theta) = \prod_{i=1}^n f(y_i \mid \theta) \]
We usually maximize the log-likelihood:
\[ \ell(\theta) = \sum_{i=1}^n \log f(y_i \mid \theta) \]
The MLE is the value of \( \theta \) that maximizes \( \ell(\theta) \).
2. MLE in Linear Regression
Consider the classical linear regression model:
\[ y_i = x_i^\top \beta + \varepsilon_i, \quad \varepsilon_i \sim N(0, \sigma^2) \]
The density of each \( y_i \) is:
\[ f(y_i \mid \beta, \sigma^2) = \frac{1}{\sqrt{2\pi\sigma^2}} \exp\left( -\frac{(y_i – x_i^\top \beta)^2}{2\sigma^2} \right) \]
The log-likelihood is:
\[ \ell(\beta, \sigma^2) = -\frac{n}{2}\log(2\pi\sigma^2) – \frac{1}{2\sigma^2}\sum_{i=1}^n (y_i – x_i^\top \beta)^2 \]
Key result:
Maximizing the likelihood with respect to \( \beta \) is equivalent to minimizing the sum of squared residuals:
\[ \hat{\beta}_{MLE} = \arg\min_\beta \sum_{i=1}^n (y_i – x_i^\top \beta)^2 \]
Thus, under normal errors, OLS is the MLE.
3. MLE in Logistic Regression
For binary outcomes, we use the logistic model:
\[ P(y_i = 1 \mid x_i) = \frac{1}{1 + e^{-x_i^\top \beta}} \]
The likelihood for one observation is:
\[ f(y_i \mid \beta) = p_i^{y_i}(1 – p_i)^{1 – y_i} \]
The log-likelihood is:
\[ \ell(\beta) = \sum_{i=1}^n \left[ y_i \log p_i + (1 – y_i)\log(1 – p_i) \right] \]
There is no closed-form solution. We use numerical optimization (Newton–Raphson, Fisher scoring, or gradient descent).
This is why logistic regression is always estimated by MLE, not OLS.
4. MLE in Generalized Regression Models
MLE extends naturally to:
- Poisson regression
- Negative binomial regression
- Probit models
- Gamma regression
- Survival models
Each model specifies a likelihood based on the assumed distribution of \( y_i \). The estimation process is the same: maximize the log-likelihood.
5. Why MLE Is So Popular
- It provides consistent, asymptotically normal estimators.
- It yields natural standard errors via the Fisher information.
- It works for non-linear and non-Gaussian models.
- It allows likelihood ratio tests and AIC/BIC comparisons.
For NYC students in econometrics, machine learning, and statistics, MLE is a foundational tool for modern regression modeling.
6. MLE vs. OLS: When They Differ
OLS and MLE coincide only when:
- errors are normal,
- variance is constant,
- errors are independent.
When these assumptions fail, MLE often provides more efficient or more appropriate estimates.
Internal Links (NYC Architecture)
Statistics Tutoring NYC
Regression Analysis Tutoring NYC
Statistics Blog Hub
Mathematical Statistics Tutoring NYC

Leave a Reply