tezvyn:

MLE: Find the Parameters That Make Data Likely

AI-drafted, machine-checkedSource: Wikipedia: Maximum likelihood estimationadvanced

MLE tunes your model until observed data looks inevitable. Use it to fit distributions to logs, traffic, or errors. The footgun: it assumes your distribution family is correct; under a wrong model, it finds the best-fitting wrong answer with high confidence.

WHY IT EXISTS: Statistical models describe data with parameters we do not know. Before we can predict or simulate, we need a principled way to set those parameters using only the data we have already observed. Maximum likelihood estimation solves this by turning the question around: instead of guessing parameters and hoping the data looks reasonable, it searches for the parameters that make the observed data as probable as possible under the assumed model.

THE MENTAL MODEL: Think of a distribution as a simulation with dials. Each dial setting produces a different pattern of outcomes. MLE asks which single dial setting would make your real data look like a typical run. It is not asking what the true value is in some philosophical sense; it is asking which parameter point in the model's own parameter space renders the evidence least surprising.

HOW IT WORKS: You begin by assuming a probability distribution that could have generated your data. From that assumption you construct a likelihood function, which measures how probable the observed data would be for different parameter values. You then maximize this function across the parameter space. The point where the function peaks becomes the maximum likelihood estimate. Because the logic is both intuitive and flexible, the same procedure applies across many model families.

WHEN TO USE IT: Use MLE when you have a candidate probability model and need to tune its parameters to match observed samples. It shows up whenever engineers fit distributions to logs, traffic, or error rates, and when data scientists calibrate models for inference. It is a dominant approach because one procedure adapts to many shapes of assumed distributions.

WHEN NOT TO USE IT: Do not use MLE if your assumed distribution family is a poor match for reality. The method maximizes fit inside the model you gave it, not the truth outside it. Under misspecification, MLE will still find the parameter that makes the data most probable within the wrong family, delivering a precise but misleading estimate. It also gives no guidance on which distribution family to assume in the first place.

ONE CANONICAL EXAMPLE: Imagine you assume a specific distribution generated your server latency samples. The likelihood function takes the distribution's parameters as inputs and returns the joint probability of seeing those exact measurements. MLE adjusts the parameters until the sample looks like the most likely draw from the distribution. The peak of that search gives you the parameter estimates you plug into your monitoring thresholds.

Read the original → en.wikipedia.org

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.