How does the minimum description length (MDL) principle turn model selection into a data-compression problem, and how does a two-part MDL code connect mathematically to MAP estimation and BIC?

Foundations, Model selection
Level L3 Intermediate. Length Medium. Nature Th+Mat Both.

What's being asked

Whether you can connect information-theoretic code lengths to Bayesian priors, MAP estimation and the BIC complexity penalty.

Key idea

MDL selects the model H that minimises the total bits L(H)+L(D∣H) needed to transmit the model and the data residuals; via Shannon's −log⁡2P code length, this matches MAP estimation and reproduces BIC's k2ln⁡n complexity term.

Steps

  1. State the two-part MDL objective: to send dataset D to a receiver, encode a hypothesis H in L(H) bits and then encode the data given H (essentially the residuals) in L(D∣H) bits, choosing H∗=arg⁡min⁡H∈H(L(H)+L(D∣H)). A complex H shrinks L(D∣H) but inflates L(H), balancing fit against complexity.
  2. Connect to MAP via Shannon–Fano / Kraft coding: any probability distribution P corresponds to an optimal prefix code of length L(⋅)≈−log⁡2P(⋅). Thus minimising L(H)+L(D∣H) is equivalent to minimising −log⁡2P(H)−log⁡2P(D∣H)=−log⁡2(P(D∣H)P(H)), which maximises the posterior P(H∣D) (MAP estimation).
  3. Connect to BIC: each of k continuous parameters estimated from n samples has standard error O(1/n). Truncating a parameter in a bounded range to precision O(1/n) costs ≈log⁡2(n)=12log⁡2n bits, so L(H)≈k2log⁡2n+O(1). Adding L(D∣H)=−log⁡2P(D∣θ^) and converting from bits to 2ln⁡ units gives kln⁡n−2ℓ(θ^)=BIC.

Common mistakes

How long your answer should be

Half a page; 4 minutes.

Last checked on 4 December 2026.

Read this

Previous in Foundations: How do AIC and BIC compare in terms of their complexity penalties and their large-sample behaviour (n→∞) regarding model-selection consistency versus predictive efficiency, and when would you prefer one over the other?
Next in Foundations: For a categorical variable with K categories, why does keeping all K one-hot indicator columns together with an intercept make unregularised linear regression singular, why does ridge regression remove this singularity, and what precaution is required when using target encoding instead?