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 that minimises the total bits needed to transmit the model and the data residuals; via Shannon's code length, this matches MAP estimation and reproduces BIC's complexity term.
Steps
- State the two-part MDL objective: to send dataset to a receiver, encode a hypothesis in bits and then encode the data given (essentially the residuals) in bits, choosing A complex shrinks but inflates , balancing fit against complexity.
- Connect to MAP via Shannon–Fano / Kraft coding: any probability distribution corresponds to an optimal prefix code of length . Thus minimising is equivalent to minimising , which maximises the posterior (MAP estimation).
- Connect to BIC: each of continuous parameters estimated from samples has standard error . Truncating a parameter in a bounded range to precision costs bits, so . Adding and converting from bits to units gives .
Common mistakes
- Encoding parameters to arbitrary machine precision (say 64 bits each), which wastes bits on meaningless statistical noise instead of matching the estimation precision.
- Ignoring that two-part codes depend on the chosen coding scheme for (modern normalised maximum likelihood or prequential MDL removes this arbitrariness).
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 () regarding model-selection consistency versus predictive efficiency, and when would you prefer one over the other?
Next in Foundations: For a categorical variable with categories, why does keeping all 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?