ID-5-02 (TO) · Mathematical Foundations of Diffusion Models · W02 demo
One function, f(x; μ) — read along x it is a density; read along μ it is a likelihood. The entire confusion, dissolved by two slices of the same surface.
The heatmap is f(x; μ) = N(x; μ, σ²) over the (x, μ) plane. Drag the two lines. The horizontal slice (fix μ, vary x) is the pdf — a distribution over data, area = 1. The vertical slice (fix the observed x, vary μ) is the likelihood — a ranking of parameters, whose area means nothing.
pdf: μ fixed at 0.0
likelihood: x observed at 1.0
With data x₁, …, x₆ the log-likelihood is ℓ(μ) = Σᵢ log f(xᵢ; μ) — a downward parabola in μ. Drag the data points and watch the maximizer track one statistic and nothing else: the sample mean.
The one-sentence summary. The pdf and the likelihood are the same formula read along different axes: fix parameters, vary data → a distribution; fix the observed data, vary parameters → a score for fitting. The likelihood is not a probability distribution over μ — only its argmax (and shape near it) carries meaning.