How do VC dimension and effective degrees of freedom measure model capacity in the bias-variance tradeoff?

Quick Overview

Asks how VC dimension and effective degrees of freedom measure model capacity and how each connects to the bias-variance tradeoff. Tests shattering and generalization bounds, the trace of a smoother matrix for ridge and kNN, model selection criteria, and why these measures fall short for deep networks.

How do VC dimension and effective degrees of freedom measure model capacity in the bias-variance tradeoff?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: hard

Interview Round: Other

How do measures such as VC dimension or effective degrees of freedom quantify model capacity in the context of the bias-variance tradeoff? Define each measure, show how it connects capacity to bias and variance, and explain where each one is useful and where it falls short. ```hint Class or fit For each measure, ask whether it depends only on the family of models you could choose from, or also on the procedure and data used to fit one of them. ``` ```hint Linear smoothers For a model whose fitted values are a linear function of y, look at the matrix that maps y to those fitted values. ``` ### What a Strong Answer Covers - The definition of VC dimension through shattering, with an example such as linear classifiers - How a VC generalization bound ties capacity to the train-test gap and to the bias-variance tradeoff - The definition of effective degrees of freedom and its form for linear smoothers such as ridge and kNN - How effective degrees of freedom enter model selection criteria - How the two measures differ, and their limits, especially for deep networks ### Follow-up Questions - Why does ridge regression have non-integer degrees of freedom, and what happens to them as λ goes to 0 and to infinity? - Why are VC bounds vacuous for large neural networks, and what do norm-based or PAC-Bayes bounds use instead? - How would you estimate effective degrees of freedom for a gradient-boosted model, which is not a linear smoother? - What is structural risk minimization, and how does it compare with choosing capacity by cross-validation?

Overview: Asks how VC dimension and effective degrees of freedom measure model capacity and how each connects to the bias-variance tradeoff. Tests shattering and generalization bounds, the trace of a smoother matrix for ridge and kNN, model selection criteria, and why these measures fall short for deep networks.

General logo
General
Nov 25, 2026
hardMachine Learning EngineerOtherMachine Learning
0
0

How do measures such as VC dimension or effective degrees of freedom quantify model capacity in the context of the bias-variance tradeoff?

Define each measure, show how it connects capacity to bias and variance, and explain where each one is useful and where it falls short.

What a Strong Answer Covers Guidance

  • The definition of VC dimension through shattering, with an example such as linear classifiers
  • How a VC generalization bound ties capacity to the train-test gap and to the bias-variance tradeoff
  • The definition of effective degrees of freedom and its form for linear smoothers such as ridge and kNN
  • How effective degrees of freedom enter model selection criteria
  • How the two measures differ, and their limits, especially for deep networks

Follow-up Questions Guidance

  • Why does ridge regression have non-integer degrees of freedom, and what happens to them as λ goes to 0 and to infinity?
  • Why are VC bounds vacuous for large neural networks, and what do norm-based or PAC-Bayes bounds use instead?
  • How would you estimate effective degrees of freedom for a gradient-boosted model, which is not a linear smoother?
  • What is structural risk minimization, and how does it compare with choosing capacity by cross-validation?