Two Words That Aren't Synonyms
In casual English, "probability" and "likelihood" mean the same thing. In statistics they don't, and the distinction matters.
| Question | Variable | |
|---|---|---|
| Probability | Given parameters , how likely is the data ? | data varies, parameters fixed |
| Likelihood | Given the data , how plausible are the parameters ? | data fixed, parameters vary |
Same formula, different perspective. Probability looks forward (model → data); likelihood looks backward (data → model).
Why ML Cares
Maximum Likelihood Estimation (MLE) is the foundation of model training. The principle: the best parameters are the ones that make the observed data most plausible. Mathematically: . In practice you minimize negative log-likelihood, which is what cross-entropy loss really is.
Every time you train a classifier, you're solving an MLE problem in disguise.
Softmax: Logits → Probability Distribution
Neural network classifiers output raw scores called logits. To turn them into probabilities (non-negative, summing to 1), apply softmax:
Subtracting for numerical stability before exponentiating is now standard.