LLGA · Course notes

Statistical Learning Theory

APM_51059_EP · Year 1 · Period 1

Contents

Introduction and overview

Module Statistical Learning Theory — SynapseS 2026-2027 sheet: “Théorie avancée de l’Apprentissage Statistique” (occurrence: “X3A VE2”, applied mathematics department); official note: in 2026-2027, the course unit is scheduled in X-3A-P1 and attached to the “Math de l’IA” and Apprentissage & IA tracks, and no longer appears in the published composition of the LLGA S1 track — these notes keep it for reference as a theoretical deepening
Code APM_51059_EP
Team and workload Course coordinator: Karim Lounici (École Polytechnique, CMAP) · instructors: Jean-Marc Bardet, Evgenii Chzhen, Marc Hoffmann, Karim Lounici · 36 h in person (lecture/tutorial/lab split not published on the sheet, enrollment 5/80) · ECTS on the sheet: 5 for the École Polytechnique degree, the MJH and IES masters and exchange programs, 4.5 for MScT tracks, 4 for the MScT Artificial Intelligence and Advanced Visual Computing and Internet of Things (no LLGA value: the track does not list this unit) · course language: French, slides in English · concentration, Vapnik-Chervonenkis dimension and Rademacher complexity: the theory of generalization, up to the oracle inequalities of the Lasso and the aggregation of estimators.
Status in the program Notes kept for reference M1 · S1 / period 1 (fall semester, from 17/09/26 to 18/12/26) Not in the LLGA 2026–2027 list: the MScT-LLGA-GD1A track page (read on 22 October 2026) does not include this course unit in LLGA 1 – S1; it is still taught at the École in other tracks, and these notes are kept for reference.

Audience: an engineer who has already seen a train/test gap and heard “overfitting” — without opening on VC dimension on line 1. Empirical first: a classifier that memorizes MNIST-like digits, a bound that explodes with class size, a large margin that “generalizes better” on a split. Only then do we name concentration, VC, Rademacher.

Why should minimizing training error predict on new data? Concentration, VC dimension, Rademacher, generalization bounds: the intuition of overfitting becomes theorems — PhD language, and a rare asset for auditing high-stakes models in industry.

What you will be able to do

Official objectives and syllabus (2026-2027 catalog)

Official objectives (paraphrased from the description published on SynapseS): to provide a rigorous theoretical introduction to statistical learning, in supervised as well as unsupervised settings, with non-asymptotic methods for extracting information in a random context, using tools from probability, statistics, perturbation theory and optimization. Announced learning objectives: formulate learning problems in a rigorous mathematical framework; characterize and measure the intrinsic complexity of these problems; analyze learning errors from a theoretical angle; exploit prior knowledge to design and improve better-performing models.

The course is strongly theory-oriented, with a few R/Python practical sessions during the small classes; official assessment: in-class exams and homework assignments.

The official detailed syllabus is organized into three blocks, mapped below to our chapters.

Block of the official syllabus Course section that covers it
I. Supervised learning — statistical learning framework, Bayes decision rule, empirical risk minimization, excess risk, PAC guarantees ch. 1 (framework, Bayes, ERM, excess risk), ch. 4 (PAC guarantees / uniform bounds)
I — empirical process theory: concentration inequalities, Rademacher complexities, VC theory ch. 2 (concentration), ch. 3-4 (VC dimension, Sauer’s lemma, bounds), ch. 5 (Rademacher)
I — stability; Dudley’s chaining; low-noise condition and fast rates added as complements: note “Complement to the official syllabus” in ch. 5 (stability and Dudley’s chaining) and in ch. 6 (low noise and fast rates, Tsybakov’s condition)
I — statistical analysis of popular models: kernel methods, boosting, support vector machines, perceptron ch. 6 (SVM and margin), ch. 3 (VC dimension of the perceptron), ch. 5 (complexities of kernel classes), ch. 7 (aggregation — the theoretical framework of boosting, complemented by the Machine Learning module)
II. Unsupervised learning — PCA and canonical correlation analysis, perturbation analysis, eigenvalue deviation, eigenspace estimation; clustering (spectral, k-means, Lloyd’s algorithm) not covered by these materials (see the complement below); the track’s Machine Learning module covers PCA and k-means at a practical level, without the theoretical perturbation analyses
III. Contemporary topics (indicative list, “subject to change”) — compressed sensing, benign overfitting, multi-task and meta-learning, bandits and conformal prediction, learning of distributions ch. 9 covers the high-dimension/sparsity strand (compressed sensing, oracle inequalities of the Lasso); the other topics are not covered (see the complement below)

Complement to the official syllabus — what these materials do not cover In fairness: two parts of the official detailed syllabus are not treated in this version of the materials.

(1) The unsupervised block (II): the perturbation analysis of PCA and CCA — deviation of the eigenvalues and eigenspaces of a sample covariance matrix (tools: Davis-Kahan inequality, Weyl’s theorem, concentration of Gaussian norms) — and the analysis of clustering (consistency of k-means/Lloyd, spectral relaxation). These tools are spectral and ch. 9 does not use them: the Lasso analysis rests on the KKT conditions, the basic inequality, Gaussian tails and a restricted eigenvalue condition, and only the concentration of ch. 2 is shared. The Graph ML module in Period 2 teaches spectral clustering of graphs, without these perturbation guarantees.

(2) Part of the contemporary topics (III): benign overfitting, meta-learning, bandits, conformal prediction and learning of distributions — a list officially “indicative”; uncertainty quantification and conformal prediction are pursued in the M2 module Privacy and Uncertainty Quantification. These parts will be covered by the team’s official materials (slides in English) during the course unit.

Official field Published value (SynapseS 2026-2027)
Fields Applied Mathematics
Workload 36 h in person · enrollment 5 / 80
Period / language Fall semester, period 1 (17/09/26 – 18/12/26) · French, slides in English
Prerequisites Solid foundations in mathematics: probability (Boole’s inequalities, conditional expectation, Markov, Jensen), statistics (confidence intervals, hypothesis testing), linear algebra (Euclidean geometry, eigenvalue/eigenvector decompositions), analysis (Cauchy-Schwarz, Hölder); for the engineering cycle: at least one course among MAP432, MAP433
Assessment Numerical grade out of 20 · in-class exams and homework assignments · resit allowed (depending on the degree: max of the two grades or resit grade kept) · course unit acquired if final grade ≥ 10 · the grade counts toward the GPA · ECTS: 5 for X, MJH, IES and exchange programs; 4.5 for MScT tracks (no LLGA value: the track does not list this unit), 4 for Artificial Intelligence and Advanced Visual Computing and Internet of Things

Where this course fits in the program

Notes kept for reference: this course unit is not in the LLGA 2026–2027 lists (it is still scheduled in Period 1 for other tracks of the École, 36 h), so no LLGA module requires it. For an LLGA student it is a theoretical deepening.

The official prerequisites of the sheet — solid foundations in probability (Boole, conditional expectation, Markov, Jensen), statistics (confidence intervals, tests), linear algebra (Euclidean geometry, spectral decompositions) and analysis (Cauchy-Schwarz, Hölder), with MAP432/MAP433 recommended for the engineering cycle — correspond precisely to the foundations of the Refresher in Statistics and Machine Learning modules, whose “Generalization theory” chapter it deepens.

The course unit is shared with the engineering cycle (X), the MJH and IES masters, exchange programs and the MScT AI&AVC, IoT and TRAI tracks.

This is the research-orientation module par excellence: proving bounds “by hand” is the daily routine of a PhD student in theoretical ML (CMAP, Hi!PARIS, Inria), and doctoral schools expect familiarity with it. Downstream, it directly prepares the M2 module Privacy and Uncertainty Quantification, whose guarantees (differential privacy, uncertainty quantification) are written with the same concentration and complexity tools. The oracle inequalities of the Lasso also open onto the high-dimensional statistics encountered in several research seminars of the master’s program.

Course outline

Session plan

36 h in class = 12 sessions of 3 h. The volume is the one of the SynapseS 2026–2027 sheet (36 h in person, lecture/tutorial/lab split not published); the sheet publishes no session-by-session programme, so the split below is our proposal for covering these notes in that time. Level 1 = foundations (reviews, definitions, first worked examples), 2 = core theory (VC, Rademacher, margins, aggregation), 3 = advanced, proof-heavy material (minimax lower bounds, high-dimensional oracle inequalities); the level never goes down from one session to the next.

Session Hours Level Content Practice
1 3 h 1 ch. 0 Review: union bound and the probability toolbox; ch. 1 The ERM framework: risk, empirical risk, decomposition, consistency lab: train/test gap of an over-parametrized classifier
2 3 h 1 ch. 2 Sub-Gaussian variables, Hoeffding’s lemma and inequality Ex. 1
3 3 h 1 ch. 2 (continued) Bernstein, McDiarmid, maximum of sub-Gaussians lab: Hoeffding versus Bernstein by simulation
4 3 h 2 ch. 3 Shattering, VC dimension, Sauer’s lemma Ex. 2, 3
5 3 h 2 ch. 4 VC inequality, risk bound for ERM, no free lunch lab: evaluating the VC bound numerically
6 3 h 2 ch. 5 Rademacher complexity, symmetrization, oracle bound Ex. 4
7 3 h 2 ch. 5 (continued) Contraction, linear classes, stability and chaining Ex. 5
8 3 h 2 ch. 6 Margin theory, the SVM bound, low-noise condition lab: margin distribution of an SVM
9 3 h 2 ch. 7 Aggregation: exponential weights, convex oracle, cross-validation Ex. 8
10 3 h 3 ch. 8 Minimax risk, Le Cam’s method, lower bounds for VC classes Ex. 6
11 3 h 3 ch. 9 Sparse linear model, KKT conditions of the Lasso, restricted eigenvalues Ex. 7
12 3 h 3 ch. 9 (continued) Oracle inequality of the Lasso, selection and inference lab: Lasso with the theoretical and the cross-validated \lambda

Self-study, outside the 36 h (about 3 h in total): ch. 10 Research at CMAP (Lounici) — four papers on the Lasso, the group Lasso and aggregation (≈ 3 h).

How to study this module

independent note Prove what the other modules observe: without generalization theory, neither LLMs nor GNNs can truly be audited. We start from a numbered train/test gap, not from Sauer’s lemma cold.

0. Review: probability, estimation, convexity

The proofs of this course use the same small toolbox again and again: the union bound, the classical inequalities of probability, the vocabulary of estimation, and convexity. This review lists these tools at the level the proofs require, and proves the one that does half of the work, the union bound.

L3 review material used

  • Probability: modes of convergence, law of large numbers, central limit theorem (see the Refresher Statistics module, chapter 4; the proved version of these theorems appears in chapter 2 of the Probability Theory for ML module); Markov and Chebyshev inequalities; conditional expectation; binomial and Gaussian distributions;
  • Estimation: bias and variance of an estimator, quadratic error, maximum likelihood (see the Refresher Statistics module, chapter 5), confidence intervals and elementary tests (chapter 6);
  • Linear regression: least-squares estimator, normal equations, Gauss-Markov theorem (chapter 7; and the Machine Learning module, chapter 2, for ridge regularization);
  • Convex analysis: convex sets and functions, strong convexity, subgradients (the \ell_1 norm is not differentiable at 0 — this is the nerve of the Lasso in chapter 9), directional derivatives.

Proposition 0.1 — Union bound (proved) and first use For events A_1, \dots, A_M: \mathbb{P}\big(\bigcup_{j=1}^M A_j\big) \leq \sum_{j=1}^M \mathbb{P}(A_j).

Proof. By induction on M starting from \mathbb{P}(A \cup B) = \mathbb{P}(A) + \mathbb{P}(B) - \mathbb{P}(A \cap B) \leq \mathbb{P}(A) + \mathbb{P}(B). ∎

This trivial lemma does half the work of this course: controlling a supremum over M functions means controlling each one (Hoeffding, ch. 2) then taking \delta/M in each event — the price to pay is a logarithm, \log M, omnipresent in high-dimensional statistics.

There, M will be the number p of variables, or the number of dichotomies (2n)^d of a class of Vapnik-Chervonenkis dimension d (ch. 3-4).

Position in the curriculum This module is the theoretical counterpart of the Machine Learning module: the statistical framework is laid out there in chapter 1 and “generalization theory” is surveyed in chapter 8 — we take up these two points and prove them. It also prepares chapter 2 of the Machine Learning module (Lasso), the choice of hyperparameters by cross-validation (Machine Learning module, chapter 4), and provides the concentration background used everywhere else (Deep Learning and Emerging ML modules).

1. The empirical risk minimization framework

Concrete scene: a classifier with 106 parameters, 5,000 examples — train error 0%, test 28%. The model “learns”… and memorizes. Conversely, a too-poor model stalls at 40% everywhere. This chapter formalizes the diagnosis: risk vs empirical risk, ERM, what must be proved to talk about generalization — before VC and Rademacher.

What breaks Three classic mistakes: confusing the empirical error with the risk, tuning on the test set, and citing a numerical VC bound as an operational guarantee (it is often vacuous). All three sabotage a model audit as badly as a theory homework.

Notation. Site-wide conventions: see Notation conventions. Deviations on this page: p is the number of variables (site-wide d), because d is the VC dimension from ch. 3 on; the sample is written with capitals because it is random.

On this page R is always a risk, \mathfrak{R} the Rademacher complexity (ch. 5) and r the radius of the data (ch. 5–6).

Definition 1.1 — Statistical model of learning We observe D_n = ((X_1,Y_1), \dots, (X_n,Y_n)), i.i.d. with distribution \mathbb{P} on \mathcal{X} \times \mathcal{Y} (\mathcal{Y} = \{-1,+1\} in binary classification, \mathcal{Y} = \mathbb{R} in regression).

A predictor is a measurable function h : \mathcal{X} \to \mathcal{Y} (or into \mathbb{R}, the decision being t \mapsto \mathrm{sign}(t)).

A loss \ell : \mathbb{R} \times \mathcal{Y} \to [0,\infty), written with the prediction first, measures the error (0-1, for a real score t: \ell(t,y) = \mathbf{1}_{yt \leq 0}, that is \mathrm{sign}(t) \neq y with a zero score counted as an error; quadratic: (t-y)^2; hinge: \max(0, 1-yt)).

The risk and the empirical risk are R(h) = \mathbb{E}\big[\ell(h(X), Y)\big], \qquad \hat R_n(h) = \frac1n \sum_{i=1}^n \ell(h(X_i), Y_i). For a class \mathcal{H} of predictors, the ERM estimator (empirical risk minimization) is \hat h \in \arg\min_{h \in \mathcal{H}} \hat R_n(h). This is the paradigm of almost all of supervised machine learning: least squares, logistic regression, SVMs, neural networks (see the Machine Learning module, chapter 1).

Proposition 1.2 — Risk decomposition (proved) Let h^\star_\mathcal{H} \in \arg\min_{h \in \mathcal{H}} R(h) be the best hypothesis in the class (the oracle). For every ERM \hat h:

Key result — excess risk and uniform deviation R(\hat h) - R(h^\star) \;\leq\; 2 \sup_{h \in \mathcal{H}} \big|R(h) - \hat R_n(h)\big|.

Proof. By definition of \hat h (empirical optimality): \hat R_n(\hat h) \leq \hat R_n(h^\star). Then R(\hat h) - R(h^\star) = \big[R(\hat h) - \hat R_n(\hat h)\big] + \big[\hat R_n(\hat h) - \hat R_n(h^\star)\big] + \big[\hat R_n(h^\star) - R(h^\star)\big] \leq \big[R(\hat h) - \hat R_n(\hat h)\big] + 0 + \big[\hat R_n(h^\star) - R(h^\star)\big], and each of the two brackets is bounded in absolute value by \sup_{h} |R(h) - \hat R_n(h)|.∎

All the theory that follows consists in bounding this uniform supremum of gaps — a random quantity, controlled with high probability.

Let R^\star = \inf_h R(h) be the smallest risk over all measurable predictors (the Bayes risk). The excess risk over R^\star splits into two terms: R(\hat h) - R^\star = \underbrace{\inf_{h \in \mathcal{H}} R(h) - R^\star}_{\text{approximation}} + \underbrace{R(\hat h) - \inf_{h \in \mathcal{H}} R(h)}_{\text{estimation}}. A richer class lowers the approximation term and raises the estimation term, which the key result above controls: richness of the class versus sample size.

Definition 1.3 — Consistency and learnability A learning rule h_n = h(D_n) is universally consistent if R(h_n) \to \inf_{h} R(h) = R^\star \quad\text{in probability} for every distribution \mathbb{P} (the minimum over all measurable functions; R^\star is attained by the Bayes rule \eta(x) = \mathbb{P}(Y=1\mid X=x) in 0-1 classification).

Central question of the course: at what speed, and for which classes \mathcal{H}? Chapters 3-6 bound the speed by the “size” of \mathcal{H}; chapter 8 shows that these speeds are optimal in the minimax sense.

Example 1.4 — Thresholds on the line (running example) \mathcal{X} = \mathbb{R}, \mathcal{H} = \{h_t : t \in \mathbb{R},\; h_t(x) = \mathbf{1}_{x \leq t}\}. Why this small example? The class is continuously parametrized, but:

  • (i) on n points it produces only n+1 distinct dichotomies (the order of the X_i suffices to describe everything);
  • (ii) its Vapnik-Chervonenkis dimension equals d = 1, and n + 1 is exactly the Sauer bound for d = 1 (ch. 3);
  • (iii) the associated minimax speed is \sqrt{d/n} (ch. 8).

Theory thus turns an infinite family into a finite combinatorial object — this is the founding gesture of Vapnik and Chervonenkis.

2. Concentration inequalities

A generalization bound must say how far an empirical average can be from its expectation, with an explicit probability, for a finite sample. Concentration inequalities give exactly this, with tails that decay exponentially fast. This chapter proves Hoeffding’s inequality, states its refinements (Bernstein, McDiarmid), and bounds the expected maximum of finitely many sub-Gaussian variables — the three tools used by every later chapter.

Definition 2.1 — Sub-Gaussian variables A centered r.v. X is sub-Gaussian with parameter \sigma if \mathbb{E}\,e^{\lambda X} \leq e^{\sigma^2\lambda^2/2} \quad \text{for all } \lambda \in \mathbb{R}. Examples: centered Gaussian (\sigma^2 = \mathrm{Var}), centered bounded (lemma 2.2, with \sigma = (b-a)/2), any L-Lipschitz function of a Gaussian vector (parameter L\sigma_G, “Gaussian concentration”; see the Probability Theory for ML module, chapter 2, for the CLT in the same spirit).

(Independent) sums of sub-Gaussians are sub-Gaussian with additive \sigma^2: the whole “Gaussian paradigm” of concentration fits in this semigroup of the Laplace transform.

Lemma 2.2 — Hoeffding’s lemma (proved) If X \in [a,b] almost surely and \mathbb{E}X = 0, then for all \lambda: \mathbb{E}\,e^{\lambda X} \leq e^{\lambda^2 (b-a)^2/8}.

Proof.

  • Step 1 (secant line). The convexity of u \mapsto e^{\lambda u} gives, for u \in [a,b]: e^{\lambda u} \leq \frac{b-u}{b-a}\,e^{\lambda a} + \frac{u-a}{b-a}\,e^{\lambda b}. Taking the expectation with \mathbb{E}X = 0 (average weights b/(b-a) and -a/(b-a)): \mathbb{E}e^{\lambda X} \leq \mathbb{E}e^{\lambda Z}, where Z is the two-point variable taking values a and b with \mathbb{E}Z = 0.
  • Step 2 (variance of a tilted Bernoulli). Set \psi(\lambda) = \log \mathbb{E}e^{\lambda Z}. Differentiating twice under the expectation (everything is bounded): \psi''(\lambda) = \mathrm{Var}_{\lambda}(Z) \leq \frac{(b-a)^2}{4}, where \mathrm{Var}_\lambda is the variance under the tilted distribution d\mathbb{P}_\lambda \propto e^{\lambda z}\,d\mathbb{P}; the variance of a two-point variable with points separated by b-a is p(1-p)(b-a)^2 \leq (b-a)^2/4, whatever the tilt.
  • Step 3 (Taylor). \psi(0) = 0, \psi'(0) = \mathbb{E}Z = 0, hence \psi(\lambda) = \frac{\lambda^2}{2}\psi''(\xi) \leq \lambda^2 (b-a)^2/8 for some \xi \in [0,\lambda].∎

Theorem 2.3 — Hoeffding’s inequality (proved) Let X_1, \dots, X_n be independent, X_i \in [a_i, b_i], and S = \sum_i (X_i - \mathbb{E}X_i). For every t > 0:

Key result — Hoeffding’s inequality \mathbb{P}(S \geq t) \leq \exp\Big(-\frac{2t^2}{\sum_i (b_i - a_i)^2}\Big), \qquad \mathbb{P}(|S| \geq t) \leq 2\exp\Big(-\frac{2t^2}{\sum_i (b_i-a_i)^2}\Big).

Proof. Chernoff’s method: for \lambda > 0, by Markov then independence and lemma 2.2 applied to each X_i - \mathbb{E}X_i: \mathbb{P}(S \geq t) \leq e^{-\lambda t}\,\mathbb{E}e^{\lambda S} = e^{-\lambda t} \prod_i \mathbb{E}e^{\lambda(X_i - \mathbb{E}X_i)} \leq \exp\Big(-\lambda t + \frac{\lambda^2}{8}\sum_i (b_i-a_i)^2\Big). The right-hand side is minimized at \lambda = 4t/\sum_i(b_i-a_i)^2, where the exponent equals -2t^2/\sum_i(b_i-a_i)^2. The two-sided version follows by applying the result to -S and summing.∎

Immediate application: for a binomial empirical frequency (0-1 loss of a fixed h: n\hat R_n(h) is binomial), \mathbb{P}\big(\hat R_n(h) - R(h) \geq \varepsilon\big) \leq e^{-2n\varepsilon^2}.

Example 2.4 — Sample size (numbers) To guarantee |\hat R_n(h) - R(h)| \leq \varepsilon with probability 1 - \delta for a fixed h: n \geq \frac{\log(2/\delta)}{2\varepsilon^2}.

\varepsilon (accuracy) \delta (risk) required n
0.05 0.05 \log 40/(2 \times 0.0025) \approx 738
0.03 0.05 3.689/(0.0018) \approx 2050
0.02 0.01 5.298/(0.0008) \approx 6623

Scaling law in 1/\varepsilon^2 and |\log\delta|: a structure we shall find again up to the Lasso bounds (with \log p playing the role of |\log\delta|).

Theorem 2.5 — Bernstein and McDiarmid (statements)

  • Bernstein: if the independent centered X_i satisfy |X_i| \leq M and \sum_i \mathrm{Var}(X_i) = v, then \mathbb{P}\Big(\sum_i X_i \geq \sqrt{2vt} + \tfrac{Mt}{3}\Big) \leq e^{-t}, that is, after inversion, \mathbb{P}(\sum X_i \geq u) \leq \exp(-u^2/(2v + 2Mu/3)).

    Regime u \lesssim v/M: Gaussian (e^{-u^2/2v}, variance); large u: Poissonian (e^{-3u/2M}, amplitude);

  • McDiarmid (bounded differences): if f : \prod \mathcal{X}_i \to \mathbb{R} satisfies |f(x) - f(x')| \leq c_i whenever x and x' differ only in the i-th coordinate, then \mathbb{P}\big(f - \mathbb{E}f \geq u\big) \leq \exp\Big(-\frac{2u^2}{\sum_i c_i^2}\Big). Proof: Doob’s martingale + lemma 2.2 conditionally on each coordinate (admitted here).

Why McDiarmid is the tool of the course: the supremum f(D_n) = \sup_{h} |R(h) - \hat R_n(h)| has bounded differences with respect to each datum (X_i,Y_i) (changing one observation shifts every \hat R_n(h), hence the supremum, by at most 1/n if the losses are bounded by 1): c_i = 1/n and McDiarmid transports the concentration of the mean to the supremum — all that remains is to control \mathbb{E}f, the heart of chapters 3-5.

Proposition 2.6 — Maximum of sub-Gaussians (proved) If X_1, \dots, X_M are centered sub-Gaussian with parameter \sigma (not necessarily independent): \mathbb{E}\max_{j \leq M} X_j \;\leq\; \sigma\sqrt{2 \log M}.

Proof. For \lambda > 0, monotonicity of the log then of the expectation (Jensen), then sub-additivity of the max and finally the sub-Gaussian assumption: \mathbb{E}\max_j X_j = \frac1{\lambda}\,\mathbb{E}\log e^{\lambda\max_j X_j} \leq \frac1{\lambda}\log \mathbb{E} e^{\lambda \max_j X_j} = \frac1{\lambda}\log \mathbb{E} \max_j e^{\lambda X_j} \leq \frac1{\lambda}\log \sum_j \mathbb{E}e^{\lambda X_j} \leq \frac{\log M}{\lambda} + \frac{\lambda \sigma^2}{2}. Optimization at \lambda = \sqrt{2\log M}/\sigma.∎

Interpretation: the max of M Gaussian noises equals \sigma\sqrt{2\log M} up to a constant — the “price of the max”. It is the key ingredient for controlling suprema: combined with the union bound (Prop. 0.1), it gives \sqrt{\log M/n} for any finite class of M bounded losses.

From the finite max to the infinite Proposition 2.6 and the union bound (Prop. 0.1) control any finite class of M predictors (bounds in \sqrt{\log M/n}). For infinite classes (M = \infty), one must count the realizable dichotomies — the subject of the next two chapters; for “geometric” classes, one will go through Rademacher (ch. 5).

3. Vapnik-Chervonenkis dimension and Sauer’s lemma

Hoeffding’s inequality and the union bound control finitely many predictors, but the classes used in practice — thresholds, half-planes, networks — are infinite. On N given points, however, an infinite class only produces finitely many labelings. This chapter counts them: the VC dimension measures the size of a class, and Sauer’s lemma shows that the number of labelings grows only polynomially in N.

Definition 3.1 — Shattering, VC dimension, growth function Let \mathcal{H} be a class of classifiers \mathcal{X} \to \{0,1\} (or of real functions of which we take the sign).

  • A finite set S = \{x_1, \dots, x_N\} \subset \mathcal{X} is shattered if every binary labeling of S is realized: |\mathcal{H} \cap S| = 2^N, where \mathcal{H} \cap S = \{(h(x_1),\dots,h(x_N)) : h \in \mathcal{H}\};
  • the VC dimension d = \mathrm{VC}(\mathcal{H}) is the maximal size of a shattered set (or \infty);
  • the growth function \Pi_{\mathcal{H}}(N) = \max_{|S| = N} |\mathcal{H} \cap S| counts the realizable dichotomies on N points in the worst case.

Example 3.2 — Computing VC dimensions

  • Thresholds on \mathbb{R} (Example 1.4): one point is shattered (both labels by moving t), but two points x_1 < x_2 are not.

    A threshold returns a set of the form (-\infty, t], so labeling x_2 with 1 forces x_1 to 1, and the labeling (x_1 \mapsto 0, x_2 \mapsto 1) is impossible: d = 1.

    Intervals [a,b]: two points are shattered, three points x_1 < x_2 < x_3 are not (impossible to label \{x_1, x_3\} without x_2: an interval containing the extremes contains the middle): d = 2.

    Unions of k intervals: d = 2k;

  • Affine hyperplanes in \mathbb{R}^p: d = p + 1.

    \geq: the p+1 points 0, e_1, \dots, e_p are shattered by the hyperplanes \langle w, x\rangle = b.

    Around each vertex of the simplex, one isolates any subset: for a label y \in \{0,1\}^{p+1} take w = \sum_j (2y_j - 1)e_j, with b well chosen.

    \leq: p+2 points in general position are linked by an affine dependence \sum_j \alpha_j x_j = 0 with \sum \alpha_j = 0; the labeling y_j = \mathrm{sign}(\alpha_j) is not realizable (dot product of the signs with the \alpha_j strictly positive forbids strict separation).

    Hence, for the perceptron and unregularized logistic regression, a complexity that grows with the dimension — to be contrasted with the margin (ch. 6);

  • Axis-aligned rectangles in \mathbb{R}^2: d = 4 (the 4 “cardinal points” of a cross-shaped configuration); sinusoids \{x \mapsto \mathbf{1}_{\sin(tx) > 0}\}: d = \infty (for every N, well-placed points can follow the sign of any alternation): exponential growth \Pi(N) = 2^N, no universal learnability.

Theorem 3.3 — Sauer-Shelah lemma (proved) If \mathrm{VC}(\mathcal{H}) = d, then for every N \geq d: \Pi_{\mathcal{H}}(N) \;\leq\; \sum_{k=0}^{d} \binom{N}{k} \;\leq\; \Big(\frac{eN}{d}\Big)^{d}.

Proof. The polynomial upper bound by (eN/d)^d is the classic inequality on binomial sums (each \binom{N}{k} \leq (eN/k)^k, sum dominated by k = d; admitted). Let us prove the first inequality by double induction on N and d. Write s(N,d) = \sum_{k=0}^{d}\binom{N}{k}.

Base: s(N,0) = 1 (class reduced to a single function); s(0,d) = 1 (an empty point set: a single dichotomy).

Induction step: fix S = \{x_1, \dots, x_N\} and write S' = \{x_1, \dots, x_{N-1}\}. Partition the traces on S' into two families:

  • \mathcal{A}: traces realizable in both ways on x_N (there exist h, h' \in \mathcal{H} coinciding on S' with h(x_N) = 0, h'(x_N) = 1);
  • \mathcal{B}: all the traces on S' (each is realizable in at least one way on x_N), so that \mathcal{A} \subseteq \mathcal{B}.

Then |\mathcal{H} \cap S| = |\mathcal{A}| + |\mathcal{B}|: each trace of \mathcal{B} extends to at least one dichotomy of S, and each trace of \mathcal{A} to exactly one more. Now:

  • \mathrm{VC}(\mathcal{B}) \leq d (subfamily): by induction, |\mathcal{B}| \leq s(N-1, d);

  • \mathrm{VC}(\mathcal{A}) \leq d - 1.

    If \mathcal{A} shattered T \subseteq S' with |T| = d, then T \cup \{x_N\} (size d+1) would be shattered by \mathcal{H}.

    Indeed, the traces of \mathcal{A} on T give everything and the point x_N separates in both ways: contradiction with \mathrm{VC}(\mathcal{H}) = d. Hence |\mathcal{A}| \leq s(N-1, d-1).

Conclusion by Pascal’s identity: s(N-1,d) + s(N-1,d-1) = s(N,d).∎

Message: a class of VC dimension d emits only (eN/d)^d dichotomies on N points — polynomial growth with exponent d, versus 2^N in the worst case. The “effective number of hypotheses” is finite and controlled.

Worked example — counting the dichotomies of intervals by hand Take three points x_1 < x_2 < x_3 and the class of intervals (d = 2).

The realizable subsets are \varnothing, the three singletons, \{x_1, x_2\}, \{x_2, x_3\} and \{x_1, x_2, x_3\}: 7 dichotomies out of 2^3 = 8, the missing one being \{x_1, x_3\}. Sauer’s bound gives s(3, 2) = 1 + 3 + 3 = 7: it is attained.

On N points the count is 1 + N(N+1)/2 (the empty set and the blocks of consecutive points): 56 out of 1,024 for N = 10, and 500,501 out of 2^{1000} \approx 10^{301} for N = 1000. The fraction of labelings the class can produce collapses as N grows — this is why a class that is infinite as a set of functions can nevertheless be controlled by a union bound over its dichotomies (ch. 4).

import numpy as np
from itertools import combinations

# growth function of thresholds on R: exactly N+1 dichotomies
def threshold_growth(N):
    return N + 1        # on N sorted points, a threshold cuts after the k-th

def sauer(N, d):        # Sauer-Shelah upper bound
    return sum(len(list(combinations(range(N), k))) for k in range(d + 1))

for N in (5, 10, 20):
    print(f"N={N:3d}  thresholds: {threshold_growth(N):3d}  "
          f"Sauer(N,1)={sauer(N,1):4d}")   # equality: N+1 = 1 + N (d = 1)

4. VC generalization bounds

This chapter combines the two previous ones — concentration for each labeling, Sauer’s lemma for the number of labelings — into the central theorem of the course: with high probability, the empirical risk is close to the true risk simultaneously for every predictor of a class of finite VC dimension. Its corollary bounds the excess risk of empirical risk minimization.

Theorem 4.1 — Vapnik-Chervonenkis inequality (statement, proof sketched) Let \mathcal{H} have VC dimension d \geq 1, with losses in [0,1]. With probability at least 1 - \delta, simultaneously for all h \in \mathcal{H}:

Key result — the VC inequality \big|R(h) - \hat R_n(h)\big| \;\leq\; \varepsilon_n(\delta) = \sqrt{\frac{32}{n}\Big(d\,\log\frac{2en}{d} + \log\frac{4}{\delta}\Big)}.

Proof. Sketch (double sample). The constants are not optimal; the structure is what matters.

  • Step 1 — symmetrization: introduce a ghost sample D'_n, i.i.d. with the same distribution. On the deviation event \{R - \hat R_n \geq \varepsilon\}, the ghost version \hat R'_n is at distance \geq \varepsilon/2 from \hat R_n with probability \geq 1 - e^{-n\varepsilon^2/8}.

    For large n\varepsilon^2, controlling R - \hat R_n amounts to controlling \hat R'_n - \hat R_n — two empirical quantities, depending on the distributions only through the 2n sampled points;

  • Step 2 — combinatorial reduction: conditionally on the 2n points, \hat R'_n - \hat R_n is an average of Bernoulli variables (each ghost datum is a uniform draw among the 2n points); the supremum over \mathcal{H} now bears only on the \Pi_{\mathcal{H}}(2n) \leq (2en/d)^d realizable dichotomies; binomial concentration (Hoeffding, Thm 2.3) then union bound (Prop. 0.1) over these dichotomies;

  • Step 3 — assembly: choosing the thresholds so that the three failure probabilities (symmetrization, binomial, union) sum to \delta, one inverts \varepsilon and obtains the announced bound (classical form of Vapnik-Chervonenkis 1974; see Devroye, Györfi and Lugosi, A Probabilistic Theory of Pattern Recognition, Theorem 12.5, for the details).

∎

Corollary 4.2 — Risk bound for ERM Combining Prop. 1.2 and Thm 4.1: with probability 1 - \delta, R(\hat h) \;\leq\; \hat R_n(\hat h) + \varepsilon_n(\delta) \;\leq\; \hat R_n(h^\star_\mathcal{H}) + \varepsilon_n(\delta) \;\leq\; R(h^\star_\mathcal{H}) + 2\,\varepsilon_n(\delta). Consequences:

  • (i) ERM over a class of finite VC dimension d is consistent relative to \mathcal{H}, uniformly over all distributions: R(\hat h) - \inf_{h \in \mathcal{H}} R(h) \leq 2\,\varepsilon_n(\delta) = \tilde{\mathcal{O}}\big(\sqrt{d/n}\big) \to 0. It is not universally consistent in the sense of Def. 1.3: the approximation error \inf_{\mathcal{H}} R - R^\star of a fixed class does not decrease with n, and it is positive for some distributions (Prop. 1.2).

    Universal consistency needs a growing sieve \mathcal{H}_1 \subset \mathcal{H}_2 \subset \cdots whose union approximates every Bayes rule, used with VC dimensions d_n \to \infty and d_n \log n / n \to 0. The class used with n points is fixed in advance as a function of n, or chosen from the data by structural risk minimization (a model selection, ch. 7);

  • (ii) the sample cost to guarantee an excess risk \varepsilon is n = \tilde{\mathcal{O}}(d/\varepsilon^2) (up to logarithms);

  • (iii) it suffices that d \ll n — and not p \ll n — to learn: this is the first appearance of the inverted “curse” of high dimension.

Example 4.3 — Numerical reading (honesty about the constants) With \delta = 0.05, \varepsilon_n = \sqrt{32\,(d\log(2en/d) + \log 80)/n}:

d n = 10^3 n = 10^4 n = 10^5
2 0.80 0.28 0.10
10 1.47 (> 1) 0.54 0.19
50 2.76 (> 1) 1.06 (> 1) 0.39

The classical constants make the bound uninformative at small sample sizes (at n = 10^3, it exceeds 1 as soon as d = 10; at n = 10^4 as soon as d = 50): the theorem is a theorem about rates (\varepsilon_n \sim \sqrt{d/n}), not a practical calibration tool — that role goes to cross-validation (ch. 7; Machine Learning module, chapter 4). The modern versions (Rademacher, ch. 5) will tighten the constants and the logarithm.

Theorem 4.4 — “No free lunch” (statement) For every learning rule h_n, there exists a distribution \mathbb{P} on \mathcal{X} \times \{0,1\} with R^\star = 0 (separable data!) such that \mathbb{E}[R(h_n)] \geq 1/8 \quad\text{whenever } n \leq d/2, where d is the size of a set shattered by the class used.

Without a class restriction (or a regularity assumption), learning over all distributions is impossible: the VC dimension (or any complexity measure) is the currency with which one pays for generalization. Proof by a counting argument over the 2^{2n} consistent labelings (see Shalev-Shwartz and Ben-David, chapter 5).

5. Rademacher complexity

VC bounds depend only on a combinatorial count: they ignore the actual data and the geometry of the class, and they are far too pessimistic for linear predictors of bounded norm. Rademacher complexity measures instead how well the class can correlate with random signs on the observed sample. This chapter defines it, proves the symmetrization inequality that links it to generalization, and computes it for linear classes.

Definition 5.1 — Rademacher complexities Let \mathcal{F} be a class of measurable functions \mathcal{X} \to \mathbb{R} (our families of losses \ell \circ h). The empirical Rademacher complexity on a sample S = (X_1,\dots,X_n) is \hat{\mathfrak{R}}_S(\mathcal{F}) = \mathbb{E}_{\sigma}\Big[ \sup_{f \in \mathcal{F}} \frac1n \Big| \sum_{i=1}^n \sigma_i f(X_i) \Big|\Big], \qquad \sigma_i \ \text{i.i.d. Rademacher } (\pm1 \text{ equiprobable}), and the Rademacher complexity is \mathfrak{R}_n(\mathcal{F}) = \mathbb{E}_S[\hat{\mathfrak{R}}_S(\mathcal{F})]. Reading: it is the maximal correlation of the class with pure sign noise — the capacity of the class to “fit” randomness.

Finite classes of M functions with values in [-1,1]: \hat{\mathfrak{R}}_S \leq \sqrt{2\log(2M)/n}. This is Prop. 2.6 applied to the 2M variables \pm\frac1n\sum_i \sigma_i f(X_i), each sub-Gaussian with parameter 1/\sqrt n; the factor 2 pays for the absolute value.

VC classes with values in \{0,1\}: \mathfrak{R}_n \leq \sqrt{2(d \log(en/d) + \log 2)/n}, the finite-class bound applied to the at most (en/d)^d dichotomies of Sauer’s lemma. Dudley’s chaining even gives \mathfrak{R}_n \leq C\sqrt{d/n}, without the logarithm (note at the end of this chapter).

The key idea: Rademacher complexity replaces combinatorial counting by a geometry of the class — normalization, dimension, convexity.

Proposition 5.2 — Symmetrization (proved) \mathbb{E}_S\Big[\sup_{f \in \mathcal{F}} \big(R(f) - \hat R_n(f)\big)\Big] \;\leq\; 2\,\mathfrak{R}_n(\mathcal{F}).

Proof. Introduce a ghost sample S' = (X'_1,\dots,X'_n), an independent copy of S. Since R(f) = \mathbb{E}_{S'}[\hat R'_n(f)]: \mathbb{E}_S\big[\sup_f (R - \hat R_n)\big] = \mathbb{E}_S\big[\sup_f \mathbb{E}_{S'}(\hat R'_n(f) - \hat R_n(f))\big] \underset{\text{Jensen}}{\leq} \mathbb{E}_{S,S'}\big[\sup_f (\hat R'_n(f) - \hat R_n(f))\big]. Now \hat R'_n(f) - \hat R_n(f) = \frac1n\sum_i \big(f(X'_i) - f(X_i)\big), and since (X'_i, X_i) and (X_i, X'_i) have the same distribution, we may insert symmetric signs \sigma_i: \mathbb{E}_{S,S'}\Big[\sup_f \frac1n\sum_i \big(f(X'_i) - f(X_i)\big)\Big] = \mathbb{E}\Big[\sup_f \frac1n\sum_i \sigma_i\big(f(X'_i) - f(X_i)\big)\Big]. Finally, sub-additivity of the supremum and symmetry -\sigma \overset{d}{=} \sigma: \sup_f \frac1n \sum_i \sigma_i f(X'_i) - \sup_g \frac1n\sum_i \sigma_i g(X_i) \;\leq\; \sup_f \Big|\frac1n \sum_i \sigma_i f(X'_i)\Big| + \sup_g \Big|\frac1n \sum_i \sigma_i g(X_i)\Big|, whose expectation equals 2\mathfrak{R}_n(\mathcal{F}) (the two samples play the same role).∎

Theorem 5.3 — Oracle bound for ERM (proved) With probability at least 1-\delta, for every empirical minimizer \hat h of a class with losses in [0,1]:

Key result — the Rademacher oracle bound R(\hat h) - \inf_{h \in \mathcal{H}} R(h) \;\leq\; 2\,\mathfrak{R}_n(\mathcal{F}) + \sqrt{\frac{2\log(2/\delta)}{n}}.

Proof.

  • Step 1 (one-sided decomposition): the first line of the proof of Prop. 1.2 gives R(\hat h) - R(h^\star) \leq Z + \big[\hat R_n(h^\star) - R(h^\star)\big], \qquad Z = \sup_f \big(R(f) - \hat R_n(f)\big).
  • Step 2 (expectation): by Prop. 5.2, \mathbb{E}Z \leq 2\mathfrak{R}_n.
  • Step 3 (concentration of Z): changing one X_i shifts each \hat R_n(f), hence Z, by at most 1/n. McDiarmid (Thm 2.5) then gives \mathbb{P}\big(Z \geq \mathbb{E}Z + u\big) \leq e^{-2nu^2}, which is at most \delta/2 for u = \sqrt{\log(2/\delta)/(2n)}.
  • Step 4 (the fixed oracle): h^\star does not depend on the sample, so Hoeffding (Thm 2.3) gives, except with probability \delta/2, \hat R_n(h^\star) - R(h^\star) \leq \sqrt{\log(2/\delta)/(2n)}.
  • Assembly: on both events, of probability at least 1 - \delta, R(\hat h) - R(h^\star) \leq 2\mathfrak{R}_n + 2\sqrt{\frac{\log(2/\delta)}{2n}} = 2\mathfrak{R}_n + \sqrt{\frac{2\log(2/\delta)}{n}}. ∎

Numerical comparison (d = 2, n = 2000): Rademacher \sqrt{2(d\log(en/d) + \log 2)/n} \approx 0.13 versus \varepsilon_n \approx 0.59 for the crude VC bound (ch. 4): a factor of about 4.5 gained, and above all a quantity computable from data (code below).

Lemma 5.4 — Talagrand’s contraction (statement) Write \hat{\mathfrak{R}}^{\circ}_S(\mathcal{F}) = \mathbb{E}_{\sigma}\Big[ \sup_{f \in \mathcal{F}} \frac1n \sum_{i=1}^n \sigma_i f(X_i)\Big], \qquad \mathfrak{R}^{\circ}_n(\mathcal{F}) = \mathbb{E}_S\big[\hat{\mathfrak{R}}^{\circ}_S(\mathcal{F})\big], for the complexities of Def. 5.1 without the absolute value. If \varphi : \mathbb{R} \to \mathbb{R} is L-Lipschitz, then \hat{\mathfrak{R}}^{\circ}_S(\varphi \circ \mathcal{F}) \leq L\,\hat{\mathfrak{R}}^{\circ}_S(\mathcal{F}). No condition \varphi(0) = 0 is needed: adding a constant c to \varphi adds the term c\sum_i \sigma_i/n, which does not depend on f and has mean zero. Proof by peeling off one sign at a time (Mohri, Rostamizadeh and Talwalkar, Lemma 5.7; Meir and Zhang, 2003, Theorem 7).

Link with Def. 5.1: dropping the absolute value can only lower the complexity, with equality for a symmetric class (-\mathcal{F} = \mathcal{F}, as in Prop. 5.5); for the non-symmetric class of constants, exercise 5 finds a factor 2 between them. For the absolute-value complexity itself, the classical statement (Ledoux and Talagrand, Probability in Banach Spaces, Theorem 4.12) needs \varphi(0) = 0 and gives the constant 2L.

Immediate consequence: Prop. 5.2 and Theorem 5.3 still hold with \mathfrak{R}^{\circ}_n, because the last step of the proof of Prop. 5.2 needs no absolute value. For a loss \varphi(y\,h(x)) with an L-Lipschitz \varphi, the complexity of the loss class can then be replaced by that of the raw class, since \sigma_i Y_i has the law of \sigma_i: \mathfrak{R}^{\circ}_n\big(\{(x,y) \mapsto \varphi(y\,h(x)) : h \in \mathcal{H}\}\big) \;\leq\; L\,\mathfrak{R}^{\circ}_n(\mathcal{H}) \;\leq\; L\,\mathfrak{R}_n(\mathcal{H}). Hinge loss (L=1), logistic, all the margin classifiers of chapter 6 follow from it.

Proposition 5.5 — Linear classes (proved) On data with norm \|X_i\| \leq r, the class \mathcal{F} = \{x \mapsto \langle w, x\rangle : \|w\|_2 \leq W\} satisfies \hat{\mathfrak{R}}_S(\mathcal{F}) \;\leq\; \frac{rW}{\sqrt n} \qquad \big(\text{for every sample, hence also } \mathfrak{R}_n \leq rW/\sqrt n\big).

Proof. By Cauchy-Schwarz then Jensen (the expectation of a norm bounds the norm of the expectation — convexity): \hat{\mathfrak{R}}_S(\mathcal{F}) = \frac{W}{n}\, \mathbb{E}_\sigma\Big\|\sum_{i=1}^n \sigma_i X_i\Big\| \;\leq\; \frac{W}{n}\sqrt{\mathbb{E}_\sigma\Big\|\sum_i \sigma_i X_i\Big\|^2} = \frac{W}{n}\sqrt{\sum_i \|X_i\|^2} \;\leq\; \frac{rW}{\sqrt n}, where the second-to-last equality uses \mathbb{E}[\sigma_i\sigma_j] = 0 for i \neq j (zero cross terms).∎

Consequence (with Lemma 5.4): linear functions regularized by the norm W learn at rate rW/\sqrt n — the “effective dimension” is r^2W^2, with no dependence on the ambient dimension: this is the gateway to margin SVMs (ch. 6) and kernels (Machine Learning module, chapter 5: bounds in RKHS norm).

import numpy as np
rng = np.random.default_rng(5)

def linear_rademacher(X, W, B=300):
    """Monte-Carlo of the empirical Rademacher complexity of {x -> <w,x> : ||w|| <= W} (def. 5.1)."""
    n, reps = len(X), B
    sigma = rng.choice([-1.0, 1.0], size=(reps, n))
    return W * np.mean([np.linalg.norm(s @ X) for s in sigma]) / n

n, p, r, W = 400, 50, 1.0, 2.0                    # p variables: VC dimension p + 1 = 51
X = rng.normal(size=(n, p)); X /= np.linalg.norm(X, axis=1, keepdims=True)
print(f"estimated R_hat  : {linear_rademacher(X, W):.4f}")   # Jensen is nearly tight: equal up to Monte-Carlo error
print(f"bound prop.5.5   : {r*W/np.sqrt(n):.4f}")       # 0.1
print(f"VC bound dim 51  : {np.sqrt(2*(51*np.log(np.e*n/51) + np.log(2))/n):.4f}")

Complement to the official syllabus: stability and Dudley’s chaining The detailed syllabus of the course unit lists two additional tools of empirical process theory, absent from the outline above: here they are.

(1) Stability (algorithm-dependent analysis): instead of bounding \sup_{h \in \mathcal H} |\hat R_n(h) - R(h)| uniformly over the class, one requires the good algorithm to be stable under the replacement of a sample point (for instance \beta-uniform: inserting or removing a point changes the loss of h_{\mathcal{S}} by at most \beta on average). The decomposition of the excess risk then gives \mathbb{E}\,[R(h_{\mathcal{S}}) - R(h^\star)] \leq \mathbb{E}\,[R(h_{\mathcal{S}}) - \hat R_n(h_{\mathcal{S}})] \lesssim \beta: no complexity dimension appears, only a quantity controllable by regularization — the framework in which the generalization of regularized empirical risk is proved (ridge, Lasso of ch. 9) and, further on, the stability of SGD (beyond the generalization chapter of the Machine Learning module).

(2) Dudley’s chaining: a technique to bound the Gaussian complexity (hence the Rademacher complexity, by symmetry) of an infinite class by approximating it with a chain of finite discretizations of increasing metric entropy, \mathfrak{G}(\mathcal H) \;\lesssim\; \int_0^\infty \sqrt{\log\,\mathcal{N}(\mathcal H, \varepsilon)}\; d\varepsilon, which replaces Sauer’s lemma (ch. 3) when the class has a continuous structure (Lipschitz parametrized classes, networks with bounded norms): it is the bridge between the VC theory of this chapter and the margin bounds of ch. 6.

6. Margin theory

A linear classifier in dimension p has VC dimension p + 1, yet support vector machines generalize well in very high dimension. The explanation is the margin: a classifier that separates the data with a wide margin behaves like a member of a small class. This chapter turns this idea into a bound in which the dimension does not appear.

Definition 6.1 — Functional and geometric margin For an affine classifier h_{w,b}(x) = \mathrm{sign}(\langle w, x\rangle + b), the functional margin of an example (x,y) is y(\langle w,x\rangle + b) (positive if correctly classified), and the geometric margin is this quantity divided by \|w\|_2 — it is the Euclidean distance to the hyperplane. The margin of a sample is the minimum over the examples.

The maximum margin problem (hard-margin SVM, see the Machine Learning module, chapter 3) seeks \max \gamma under the constraints \|w\| \leq 1 and y_i\langle w,x_i\rangle \geq \gamma: minimizing \|w\| is maximizing the margin.

Theorem 6.2 — Margin bound (stated with sketch) Let \mathcal{F} be a class of score functions (e.g. linear), with data satisfying \|X\| \leq r. For every \gamma > 0, denote by \hat R_{n,\gamma} the empirical margin error at \gamma (proportion of examples with y f(x) < \gamma).

With probability 1 - \delta, for a margin \gamma fixed before seeing the data and for all score functions f in the class: R\big(\mathrm{sign}\, f\big) \;\leq\; \hat R_{n,\gamma}(f) + \frac{2\,\hat{\mathfrak{R}}_S(\mathcal{F})}{\gamma} + 3\sqrt{\frac{\log(2/\delta)}{2n}}.

Sketch:

  • (i) chain of losses \mathbf{1}_{t \leq 0} \;\leq\; \varphi_\gamma(t) \;\leq\; \mathbf{1}_{t < \gamma} with the margin loss \varphi_\gamma(t) = \min\big(1, \max(0, 1 - t/\gamma)\big) (immediate case check, at the margin t = y f(x)): the 0-1 loss \mathbf{1}_{y f(x) \leq 0} of Def. 1.1 is dominated by the margin loss, which is itself dominated by the margin-\gamma error;
  • (ii) Talagrand’s contraction (Lemma 5.4) on \varphi_\gamma, which is 1/\gamma-Lipschitz, in its version without absolute value since \varphi_\gamma(0) = 1; the margins y f(x) have the complexity of \mathcal{F}, and dropping the absolute value only lowers it, so the bound holds with \hat{\mathfrak{R}}_S(\mathcal{F}) of Def. 5.1;
  • (iii) symmetrization and McDiarmid, as in steps 2–3 of the proof of Theorem 5.3, on the class of margin losses; a second McDiarmid step replaces the complexity by its empirical version, hence the constant 3.

See Mohri, Rostamizadeh and Talwalkar, Theorem 5.8, for the full proof with these constants.

Corollary 6.3 — SVM: dimension-independent complexity Take linear functions x \mapsto \langle w, x\rangle without bias, with \|w\| \leq W, and data with \|X\| \leq r.

Assume that some such w separates the data with functional margin 1: y_i\langle w, X_i\rangle \geq 1 for every i, hence a geometric margin of at least \gamma = 1/W, with W fixed before seeing the data. Theorem 6.2 at margin 1 (\hat R_{n,1} = 0) with Prop. 5.5 gives:

Key result — the margin bound for SVMs R(h_{w,0}) \;\leq\; \frac{2r}{\gamma\sqrt n} + 3\sqrt{\frac{\log(2/\delta)}{2n}} \quad \text{(Prop. 5.5 substituted).}

Numbers with (r, \gamma, \delta) = (1, 0.1, 0.05): the bound is about 0.24 for n = 10^4 and 0.024 for n = 10^6.

The crucial point: neither p nor the VC dimension p+1 appear — the effective complexity is r^2/\gamma^2. High-dimensional but well-separable data generalize; this is the theorem that justifies SVMs, norm-based regularization, and by extension deep networks with controlled margins (see Deep Learning (Period 2), section 7.1: the product of the layers’ weight norms bounds the Lipschitz constant of a network).

Data-dependent margin Theorem 6.2 and Corollary 6.3 hold for a margin \gamma and a norm bound W fixed in advance, whereas the hard-margin SVM’s margin \hat\gamma = 1/\|\hat w\| (at most r) is computed from the sample.

Apply Corollary 6.3 to each W_k = 2^k/r with failure probability \delta/(2k^2), and take a union bound (Prop. 0.1) over k \geq 1. The smallest W_k \geq 1/\hat\gamma then gives, with probability 1 - \delta, R(h_{\hat w,0}) \;\leq\; \frac{4r}{\hat\gamma\sqrt n} + 3\sqrt{\frac{\log(4/\delta) + 2\log\log_2(2r/\hat\gamma)}{2n}}. The price is a factor 2 on the complexity term and an extra term of order \sqrt{\log\log_2(2r/\hat\gamma)/n} (Mohri, Rostamizadeh and Talwalkar, Theorem 5.9; Koltchinskii and Panchenko, 2002, Theorem 2).

Margins and deep learning Neural networks have infinite VC dimension (or growing with the parameters); yet they generalize. The modern explanation goes through margin- and norm-based bounds of the same type as 6.3 (products of matrix norms with margins), smoothed by depth — and not through VC counting. The “contraction + Lipschitz classes + norms” chain of this chapter is exactly the tool used in that literature.

Complement to the official syllabus: low-noise condition and fast rates The detailed syllabus of the course unit mentions the “low-noise condition and fast rates”: this is the probabilistic generalization of the geometric margin of this chapter. Tsybakov’s margin condition bears on the joint distribution rather than on the sample: for a threshold \Delta > 0, \mathbb{P}\big(|\eta(X) - 1/2| \leq \Delta\big) \leq c\,\Delta^{s}, where \eta(x) = \mathbb{P}(Y = 1 \mid X = x) is the posterior probability and s \geq 0 the noise parameter: s = 0 gives back the general case (no useful assumption); large s means little mass near the boundary — the limit s \to \infty corresponds to a strict margin almost surely.

Its effect: the classification excess risk is bounded by a power of the “approximate” excess risk (that of \eta), with exponent increasing in s — typically of the order of (s+1)/(s+2) for plug-in and convex classifiers (logistic, boosting — Machine Learning module, ch. 3 and 6). Convergence rates then leave the “slow” n^{-1/2} regime of Corollary 6.3 for fast rates, up to parametric order when the margin is strict.

In other words: the sample margin (\gamma, Corollary 6.3) is the geometric object, Tsybakov’s condition is its statistical assumption, and together they explain why large-margin separators often do better than the 1/\sqrt n bound in practice.

7. Aggregation of estimators

In practice one rarely has a single model: one has a list of candidates — several hyperparameters, several model families — and must choose among them or combine them with the same data. This chapter shows how to combine M candidates so that the result is almost as good as the best of them, at a price of order \sqrt{\log M/n}, and reads cross-validation in this light.

Definition 7.1 — The aggregation problem We have a dictionary f_1, \dots, f_M of estimators (hyperparameters, models, features); we want to build an aggregate \tilde f whose risk approaches that of the best of them (or of a combination). Three frameworks:

  • (MS) model selection \tilde f = f_{\hat j};
  • (C) convex combination \tilde f = \sum_j \pi_j f_j, with \pi in the simplex;
  • (L) linear combination (“L^2-convex” aggregation, for the quadratic loss).

Quantitative goal: an oracle excess risk R(\tilde f) - \min_{j \leq M} R(f_j) \;\leq\; \text{price}(M, n) with a price that is small compared to the risk itself — typically \sqrt{\log M/n} or even \log M/n (quadratic loss, see Thm 7.3).

Definition 7.2 — Exponential weights With a temperature \eta > 0 (and a prior \rho on the dictionary): \pi_j = \frac{\rho_j\, e^{-\eta n \hat R_n(f_j)}}{\sum_{k} \rho_k\, e^{-\eta n \hat R_n(f_k)}}, \qquad \tilde f = \sum_j \pi_j f_j \quad (\text{convex loss}). The weights reward good empirical performance exponentially; \rho penalizes complexity (uniform prior: \log M in the bound; sparse prior: recovery of Lasso-type results, ch. 10).

Theorem 7.3 — Convex aggregation oracle (proved for (i)) Losses \ell convex in the prediction, \ell \in [0,1], uniform prior.

  • (i) With probability \geq 1 - \delta: R(\tilde f) - \min_j R(f_j) \leq \frac{\log M}{\eta n} + \sqrt{\frac{2\log(2M/\delta)}{n}}; the first term is at most of the order of the second as soon as \eta \geq \sqrt{\log M/n};
  • (ii) for the quadratic loss, the “progression” argument improves the price to \frac{2\log M}{n} + \sqrt{\ldots} (order \log M/n) — sharp form due to Catoni, Tsybakov; this is the regime attained by mirror averaging (ch. 10, Lounici 2007).

Proof. (i), full proof in four steps.

  • Convexity: \ell convex in the prediction and the \pi_j sum to 1, so (Jensen conditionally on the weights): R(\tilde f) \;\leq\; \sum_j \pi_j R(f_j) \;\leq\; \sum_j \pi_j \hat R_n(f_j) + \max_j \big|R(f_j) - \hat R_n(f_j)\big|.
  • Exponential weights: write a_j = \eta n \hat R_n(f_j) and Z = \sum_k e^{-a_k}, so that \pi_j = e^{-a_j}/Z (the uniform prior cancels). Then \log \pi_j = -a_j - \log Z, and the entropy of \pi reads H(\pi) = -\sum_j \pi_j \log \pi_j = \sum_j \pi_j a_j + \log Z. Since H(\pi) \leq \log M and \log Z \geq -\min_j a_j, we get \sum_j \pi_j a_j \leq \log M + \min_j a_j, that is \sum_j \pi_j \hat R_n(f_j) \;\leq\; \min_j \hat R_n(f_j) + \frac{\log M}{\eta n}.
  • Uniformization: each \hat R_n(f_j) is an average of bounded i.i.d. r.v.; Hoeffding (Thm 2.3) + union bound (Prop. 0.1) over j \leq M give, with probability 1-\delta, \max_j |R - \hat R_n| \leq \sqrt{\log(2M/\delta)/(2n)}.
  • Back to the true risk: on this event, R(\tilde f) \leq \min_j \hat R_n(f_j) + \frac{\log M}{\eta n} + \sqrt{\frac{\log(2M/\delta)}{2n}} \leq \min_j R(f_j) + \frac{\log M}{\eta n} + 2\sqrt{\frac{\log(2M/\delta)}{2n}}, and twice the square root is exactly \sqrt{2\log(2M/\delta)/n}.∎

Proposition 7.4 — Cross-validation as aggregation (statement) K-fold cross-validation (Machine Learning module, chapter 4) is a robust (MS) aggregation: the risk of the selected model \hat j_{\mathrm{CV}} satisfies oracle inequalities of the same type, with M replaced by the number of candidates and a correction for the validation bias (the training sample has size n(1-1/K)).

The “one standard error” rule (pick the most parsimonious model within the error bar of the CV minimum) is the empirical analogue of the approximation/estimation trade-off of Prop. 1.2. Bounds of the Thm 7.3 type for CV: selection by cross-validation inherits oracle inequalities of the same type — literature on aggregation and sequential prediction (Cesa-Bianchi and Lugosi, 2006).

import numpy as np
rng = np.random.default_rng(8)

n, M = 400, 12
x = rng.uniform(-2, 2, n); y = np.sin(2*x) + 0.3*rng.standard_normal(n)
target = lambda z: np.sin(2*z)

# split: the dictionary is fitted on the first half and the weights use the second half,
# so that the f_j are fixed functions for the losses of Thm 7.3
x1, y1, x2, y2 = x[:n//2], y[:n//2], x[n//2:], y[n//2:]
coefs = [np.polyfit(x1, y1, d) for d in range(1, M+1)]
dictionary = [lambda z, c=c: np.polyval(c, z) for c in coefs]
losses = np.array([np.mean((f(x2) - y2)**2) for f in dictionary])   # held-out empirical risk

eta, m = 2.0, len(x2)
pi = np.exp(-eta*m*(losses - losses.min())); pi /= pi.sum()
agg = lambda z: sum(w*f(z) for w, f in zip(pi, dictionary))

z = np.linspace(-2, 2, 400)
risk = lambda f: np.mean((f(z) - target(z))**2)                     # distance to the target
risks = np.array([risk(f) for f in dictionary])
j_hat = int(np.argmin(losses))
print(f"oracle: degree {np.argmin(risks)+1}, risk {risks.min():.4f}")
print(f"held-out selection: degree {j_hat+1}, risk {risks[j_hat]:.4f}")
print(f"exponential aggregate: risk {risk(agg):.4f}")
print("weights by degree:", np.round(pi, 2))

On this draw the weights put almost 90 % of their mass on degrees 5 to 7. The aggregate (risk 0.0059) does slightly better than the degree selected on the held-out half (degree 7, 0.0064) and even than the best single degree (degree 6, 0.0062): a convex combination can beat every member of the dictionary. Without the split, the training losses decrease with the degree, so the weights grow with it and favour the most complex polynomials.

PAC-Bayesian: the bridge Exponential weights are a posterior distribution; PAC-Bayesian bounds directly control R(\tilde f) against the weighted average of the risks, with a KL(weights, prior) divergence term instead of \log M — hence structured priors (sparse: recovery of \log p rates without a design condition): this is the direction of Alquier and Lounici (ch. 10). This literature connects Bayesian model choice and frequentist aggregation in a single inequality.

8. Lower bounds and minimax

The previous chapters give upper bounds: some algorithm reaches a given rate. To know whether a better algorithm could exist, one needs lower bounds that hold for every estimator. This chapter introduces the minimax risk and Le Cam’s two-point method, and uses them to show that the 1/\sqrt n rates of the course cannot be improved in general.

Definition 8.1 — Minimax risk For a model \{\mathbb{P}_\theta^n : \theta \in \Theta\} (n i.i.d. observations) and a loss d: \mathcal{M}_n = \inf_{\hat\theta}\ \sup_{\theta \in \Theta}\ \mathbb{E}_\theta\big[d(\hat\theta(D_n), \theta)\big], the infimum ranging over all measurable estimators. The previous chapters show \mathcal{M}_n \leq \sqrt{d/n} (upper bounds); this chapter establishes the converse: no algorithm can do better in general — the rates obtained are optimal.

Theorem 8.2 — Le Cam’s two-point method (proved) If there exist \theta_1, \theta_2 \in \Theta and s > 0 with d(\theta_1,\theta_2) \geq 2s \qquad\text{and}\qquad \|\mathbb{P}_{\theta_1}^n - \mathbb{P}_{\theta_2}^n\|_{\mathrm{TV}} \leq \delta < 1, then

Key result — Le Cam’s two-point lower bound \mathcal{M}_n \;\geq\; \frac{s}{2}\,(1 - \delta).

Proof. Fix an estimator \hat\theta and set A = \{d(\hat\theta, \theta_1) \leq s\}. Two observations:

  • on A^c: d(\hat\theta, \theta_1) > s, a contribution s\,\mathbb{P}_{\theta_1}(A^c) to the risk under \theta_1;
  • on A: by the triangle inequality and the separation, d(\hat\theta, \theta_2) \geq d(\theta_1,\theta_2) - d(\hat\theta,\theta_1) \geq 2s - s = s, a contribution s\,\mathbb{P}_{\theta_2}(A) under \theta_2.

Hence \sup_{j} \mathbb{E}_{\theta_j} d(\hat\theta,\theta_j) \geq \frac12\sum_j \mathbb{E}_{\theta_j}[\dots] \geq \frac{s}{2}\big( \mathbb{P}_{\theta_1}(A^c) + \mathbb{P}_{\theta_2}(A)\big). Now \mathbb{P}_{\theta_1}(A^c) + \mathbb{P}_{\theta_2}(A) = 1 + \mathbb{P}_{\theta_2}(A) - \mathbb{P}_{\theta_1}(A) \geq 1 - \|\mathbb{P}_{\theta_1}^n - \mathbb{P}_{\theta_2}^n\|_{\mathrm{TV}} \geq 1 - \delta, by the definition of total variation (supremum over events, including A).∎

Moral: two separated but statistically barely distinguishable parameters (small TV) trap any estimator; the distances between product distributions are controlled via divergences (Kullback, see the next application).

Example 8.3 — Gaussian mean: 1/\sqrt n is unavoidable (computation) Model X_i \sim \mathcal{N}(\theta, \sigma^2), \theta \in \mathbb{R}, absolute loss. Take \theta_1 = 0, \theta_2 = \sigma/\sqrt n, so s = \sigma/(2\sqrt n). The Kullback-Leibler divergence of the product distributions equals \mathrm{KL}(\mathbb{P}_{\theta_1}^n \,\|\, \mathbb{P}_{\theta_2}^n) = n \times \frac{(\theta_1 - \theta_2)^2}{2\sigma^2} = \frac12, and Pinsker’s inequality \|\cdot\|_{\mathrm{TV}} \leq \sqrt{\mathrm{KL}/2} gives \delta \leq 1/2. Theorem 8.2 concludes: \mathcal{M}_n \geq \sigma/(8\sqrt n). Under quadratic loss, the same refined argument (exercise 6) gives \mathcal{M}_n \geq c\,\sigma^2/n — the classic parametric rate, attained by the empirical mean: it is optimal.

Theorem 8.4 — Lower bounds for VC classes (sketch) For 0-1 classification with \mathcal{H} of VC dimension d and n \geq c d, there exists a data distribution for which every ERM learner (or any other) incurs \mathbb{E}[R(\hat h) - R^\star] \geq c'\sqrt{d/n}: the bound of Corollary 4.2 is attainable up to constants.

Sketch (Assouad’s hypercube):

  • let X be uniform on d points shattered by the class. For each sign vector \sigma \in \{-1,+1\}^d, the distribution \mathbb{P}_\sigma gives the label 1 to the j-th point with probability \mathbb{P}_\sigma(Y = 1 \mid X = x_j) = \tfrac12 + \sigma_j\Delta, so that its Bayes rule belongs to the class;
  • a classifier that gets the sign \sigma_j wrong pays 2\Delta/d of excess risk on the point x_j;
  • flipping one \sigma_j only changes the n/d observations that fall on x_j on average, so the KL between the two product distributions is of order n\Delta^2/d;
  • with \Delta = c\sqrt{d/n} (which needs n \geq c d so that \Delta \leq 1/2), neighbouring cubes stay indistinguishable, and every learner gets a constant fraction of the d signs wrong: excess risk \gtrsim d \times \Delta/d = c'\sqrt{d/n}.

Assouad’s method is Le Cam’s two-point argument (Thm 8.2) applied to each coordinate of the cube at once. See Tsybakov, Introduction to Nonparametric Estimation, chapter 2.

The same structure holds for nonparametric rates: Lipschitz regression with \beta = 1, minimax rate n^{-1/3} in L^2 (two points becoming two blocks of separated balls).

Loop closed with “no free lunch” Theorem 4.4 says: without assumptions, nothing works. The minimax approach refines it: with a dimension-d assumption, \sqrt{d/n} is exactly the price. Learning is a bargain between expressivity (small R^\star, large d) and estimation (large n); the cross-validation of chapter 7 is its empirical version.

9. High dimension: sparsity and the Lasso

When the number of variables p exceeds the number of observations n, least squares is not even defined; learning remains possible if only a few variables matter. This chapter studies the Lasso, which exploits such sparsity, and proves that it predicts almost as well as if the relevant variables were known in advance, at the price of a factor \log p.

Definition 9.1 — Sparse linear model and the Lasso Y = X\beta^\star + \varepsilon with \varepsilon \sim \mathcal{N}(0, \sigma^2 I_n), a normalized design matrix X \in \mathbb{R}^{n \times p} (\|X_{\cdot j}\|_2^2/n = 1) and p \gg n.

The vector \beta^\star is sparse: it is supported on S, |S| = s \ll n.

The Lasso (Tibshirani 1996; see the Machine Learning module, chapter 2) is \hat\beta \in \arg\min_{b \in \mathbb{R}^p} \Big\{ \frac{1}{2n}\|Y - Xb\|_2^2 + \lambda \|b\|_1 \Big\}. The Dantzig selector (Candès-Tao) replaces the minimization by \min \|b\|_1 under \frac1n\|X^\top(Y - Xb)\|_\infty \leq \lambda — the two are asymptotically equivalent (Bickel, Ritov and Tsybakov, 2009).

Proposition 9.2 — KKT conditions of the Lasso (proved) \hat\beta is a solution if and only if \frac{1}{n} X^\top\big(Y - X\hat\beta\big) = \lambda\, \hat z, \qquad \hat z_j = \mathrm{sign}(\hat\beta_j) \text{ if } \hat\beta_j \neq 0, \quad \hat z_j \in [-1,1] \text{ otherwise.}

Proof. The objective function is convex and proper; its subdifferential at b is -\frac1n X^\top(Y - Xb) + \lambda\,\partial\|b\|_1 with \partial\|b\|_1 = \prod_j \partial|b_j| and \partial|t| = \{\mathrm{sign}(t)\} if t \neq 0, [-1,1] if t = 0.

The function b \mapsto \frac{1}{2n}\|Y-Xb\|^2 + \lambda\|b\|_1 attains its minimum at \hat\beta iff 0 belongs to this subdifferential.∎

These conditions are the stem of all the proofs. Applied to the “empirical noise” z^\star_j = \frac1n X_{\cdot j}^\top \varepsilon, they show that the choice \lambda \geq 2\sigma\sqrt{2\log(2p)/n} makes the event \{|z^\star_j| \leq \lambda/2,\ \forall j\} highly probable: each z^\star_j is \mathcal{N}(0,\sigma^2/n), so \mathbb{P}(|z^\star_j| > \lambda/2) \leq 1/(2p) (Gaussian tail).

The Gaussian tail used here is \mathbb{P}(|Z| > t) \leq e^{-t^2/2}, \qquad Z \sim \mathcal{N}(0, 1),\ t \geq 0. The union bound (Prop. 0.1) then gives at least 1/2 — or 1-\delta by replacing \log(2p) with \log(2p/\delta).

Definition 9.3 — Restricted eigenvalue condition The design X satisfies the restricted eigenvalue (RE) condition of Bickel, Ritov and Tsybakov on the sparsity cone if there exists \kappa > 0 such that, for every h \in \mathbb{R}^p with \|h_{S^c}\|_1 \leq 3\|h_S\|_1: \frac{1}{n}\|Xh\|_2^2 \;\geq\; \kappa^2\, \|h_S\|_2^2. Interpretation: the columns linked to the support must carry enough Euclidean norm, even in directions nearly orthogonal to S — a localized (on the cone) version of invertibility. Verified with high probability for Gaussian or bounded designs as soon as n \gtrsim s\log p (see Wainwright, High-Dimensional Statistics, chapter 7).

The weaker compatibility condition of van de Geer and Bühlmann only asks \frac1n\|Xh\|_2^2 \geq \kappa^2\|h_S\|_1^2/s on the same cone. It follows from the RE condition by Cauchy-Schwarz, \|h_S\|_1^2 \leq s\|h_S\|_2^2, and it suffices for the prediction bound of Theorem 9.4.

Theorem 9.4 — Oracle inequality of the Lasso (stated, proof skeleton) On the event \{|z^\star_j| \leq \lambda/2\ \forall j\} and under the RE condition (Def. 9.3), with \lambda = 2\sigma\sqrt{2\log(2p)/n}: \frac{\|X(\hat\beta - \beta^\star)\|_2^2}{n} \;\leq\; \frac{72}{\kappa^2}\, \frac{\sigma^2 s \log(2p)}{n}, \qquad \|\hat\beta - \beta^\star\|_1 \;\leq\; \frac{24}{\kappa^2}\, \sigma s \sqrt{\frac{2\log(2p)}{n}} (constants not optimal, consistent with the skeleton below; the sharp version of Bickel, Ritov and Tsybakov, 2009, has the same structure).

Skeleton (the four steps to be completed as an exercise):

  • (a) Basic inequality: optimality of \hat\beta against b = \beta^\star gives, with h = \hat\beta - \beta^\star: \frac{1}{2n}\|Xh\|^2 \leq \frac1n h^\top X^\top\varepsilon + \lambda(\|\beta^\star\|_1 - \|\beta^\star + h\|_1);
  • (b) Cone: the KKT conditions (Prop. 9.2) and the event \{|z^\star_j| \leq \lambda/2\} turn (a) into \frac{1}{2n}\|Xh\|^2 + \frac{\lambda}{2}\|h_{S^c}\|_1 \leq \frac{3\lambda}{2}\|h_S\|_1: in particular h lies in the cone \|h_{S^c}\|_1 \leq 3\|h_S\|_1;
  • (c) Conversion: dropping the positive term of (b), then Cauchy-Schwarz \|h_S\|_1 \leq \sqrt s\,\|h_S\|_2, then the RE condition (Def. 9.3) on the cone: \kappa^2\|h_S\|_2^2 \leq \|Xh\|^2/n \leq 3\lambda\sqrt s\,\|h_S\|_2;
  • (d) Assembly: the quadratic inequality of (c) gives \|h_S\|_2 \leq 3\lambda\sqrt s/\kappa^2; hence the prediction \|Xh\|^2/n \leq 9\lambda^2 s/\kappa^2, and return to (b) for the full \ell_1 norm: \|h\|_1 \leq 4\|h_S\|_1 \leq 12\lambda s/\kappa^2.

“Fast” rate s\log p/n: the Lasso estimates as well as if the true support S were known, up to the logarithm.

Numbers (n = 100, p = 1000, s = 5, \sigma = 1): s\log(2p)/n \approx 0.38; ordinary least squares: not defined (p > n); regression on the true support: s/n = 0.05 — the logarithmic surcharge is the price of the search among \binom{1000}{5} \approx 8.3\times10^{12} possible supports.

Beyond prediction: selection and inference The oracle inequality controls prediction; variable selection requires more: a sup-norm bound \|\hat\beta - \beta^\star\|_\infty \lesssim \sigma\sqrt{\log p/n} and “sign concentration” (exact support recovery under a \beta_{\min}-condition) — exactly the results of Lounici 2008, see ch. 10; for inference (p-values, confidence bands) in high dimension: debiasing, and the results of ch. 10 on the group Lasso.

In practice: the theoretical \lambda is a starting point; calibration goes through cross-validation (ch. 7, code below).

import numpy as np
from sklearn.linear_model import Lasso, LassoCV
rng = np.random.default_rng(20)

n, p, s, sigma = 100, 1000, 5, 1.0
X = rng.normal(size=(n, p))
X *= np.sqrt(n) / np.linalg.norm(X, axis=0)        # columns with ||X_j||^2 / n = 1 (def. 9.1)
beta = np.zeros(p); beta[:s] = rng.choice([-1, 1], s) * 1.5
y = X @ beta + sigma * rng.standard_normal(n)

lam_theo = 2*sigma*np.sqrt(2*np.log(2*p)/n)        # prop. 9.2
# sklearn minimizes (1/(2n))||y - Xb||^2 + alpha ||b||_1, the objective of def. 9.1: alpha = lambda
lasso = Lasso(alpha=lam_theo, fit_intercept=False).fit(X, y)
support = np.flatnonzero(lasso.coef_)
err_theo = np.linalg.norm(X @ (lasso.coef_ - beta))**2 / n
print(f"theoretical lambda {lam_theo:.3f}  support {support} (true [0 1 2 3 4])"
      f"  prediction error {err_theo:.3f}")

grid = np.geomspace(1e-2, 1, 60)                   # empirical calibration (ch. 7)
cv = LassoCV(cv=5, alphas=grid, fit_intercept=False).fit(X, y)
err = np.linalg.norm(X @ (cv.coef_ - beta))**2 / n
print(f"CV lambda {cv.alpha_:.3f}  support size {np.count_nonzero(cv.coef_)}"
      f"  prediction error {err:.3f}  (oracle s/n = {s/n:.3f})")

On this draw, the theoretical \lambda = 0.78 recovers exactly the five true variables but shrinks each coefficient by about \lambda, so its prediction error is 3.6. The cross-validated \lambda = 0.27 keeps 15 variables and predicts far better (0.46), against s/n = 0.05 for the oracle that knows the support: the theoretical value is conservative, it guards against false positives and pays for it in shrinkage.

10. Research at CMAP (Lounici)

This self-study chapter presents four papers of the course coordinator that extend chapters 7 and 9: sup-norm rates and support recovery for the Lasso, the group Lasso, and aggregation by exponential weights.

Karim Lounici — research directions Karim Lounici (CMAP, École Polytechnique) works on the statistical theory of high-dimensional learning: sparse estimation, oracle bounds for the Lasso and its extensions, aggregation of estimators. The four papers below structure chapters 7 and 9 of this module.

Paper 1 — “Sup-norm convergence rate and sign concentration property of Lasso and Dantzig estimators” K. Lounici, Electronic Journal of Statistics 2, 2008 — arXiv:0801.4610. After Knight and Fu (consistency in estimation), this paper establishes the rate of the Lasso and of the Dantzig selector in sup norm: \|\hat\beta - \beta^\star\|_\infty decreases exactly at \sigma\sqrt{\log p/n} (an optimal 1/\sqrt{n} factor), and deduces sign concentration: under a \beta_{\min} condition and “columns in general position”, the support and the signs are exactly recovered with probability tending to 1. It is the natural complement of Theorem 9.4 (prediction → selection).

Paper 2 — “Oracle inequalities and optimal inference under group sparsity” K. Lounici, M. Pontil, S. van de Geer, A. B. Tsybakov, Annals of Statistics 39(4), 2011 — arXiv:1007.1771. The group Lasso penalizes by blocks \sum_g \sqrt{d_g}\|b_g\|_2. The authors prove oracle inequalities for the prediction error and in \ell_2 under a group-wise restricted eigenvalue condition, showing the gain from grouping (the “effective dimension” becomes the number of active groups); above all, they construct simultaneous inference procedures (confidence bands for the components) achieving the minimal price s \log p/n: the first stone of high-dimensional inference of the “debiasing” type.

Paper 3 — “Generalized mirror averaging and D-convex aggregation” K. Lounici, Mathematical Methods of Statistics 16(3), 2007. Standard exponential-weights aggregation requires convex sets; this paper extends mirror averaging (aggregation by mirror averages, i.e. mirror descent in the geometry of the simplex) to the D-convex framework, with oracle inequalities for linear aggregation — the \log M/n regime of Theorem 7.3(ii), in a more general geometry (in the lineage of Juditsky-Nemirovski and Rigollet-Tsybakov).

Paper 4 — “PAC-Bayesian bounds for sparse regression estimation with exponential weights” P. Alquier, K. Lounici, Electronic Journal of Statistics 5, 2011 — HAL version. Sparse priors (decreasing masses on supports according to their size) + exponential weights: PAC-Bayesian oracle bounds for high-dimensional regression without a restrictive design condition, with the right \log p. The exact bridge between the PAC-Bayesian note of chapter 7 and the sparsity of chapter 9: aggregation replaces convex penalization.

Exercises

  1. ★ Sample size (Hoeffding). A fixed classifier has a 0-1 loss. How many examples to guarantee |\hat R_n - R| \leq 0.02 with probability 0.99? And if the same guarantee is wanted simultaneously for M = 100 classifiers?

    Solution. For one classifier, n \geq \log(2/\delta)/(2\varepsilon^2) = \log 200/0.0008 = 5.298/0.0008 \approx 6623. For M classifiers, union bound: replace \delta by \delta/M = 10^{-4}: n \geq \log(2\times10^4)/0.0008 = 9.903/0.0008 \approx 12\,379 — the price of “simultaneous” is a factor \log M, not M.

  2. ★ VC dimension of intervals. Show that the class of intervals \{x \mapsto \mathbf{1}_{x \in [a,b]}\} on \mathbb{R} has \mathrm{VC} = 2.

    Solution. Two points x_1 < x_2 are shattered: the four labelings are obtained with [a,b] avoiding everything, containing only x_1, only x_2, or both.

    Three points x_1 < x_2 < x_3: the labeling \{x_1, x_3\} without x_2 is impossible (an interval containing the extremes contains the middle): no shattering, \mathrm{VC} = 2. (Bonus question: unions of k intervals → 2k, by the same parity argument on the components.)

  3. ★ Sauer in small dimensions. Verify s(N,2) = 1 + N + N(N-1)/2 and compute s(10,2); show that the class of thresholds (Example 1.4, VC dimension 1) achieves exactly N+1 = s(N,1) dichotomies and the class of intervals (exercise 2, VC dimension 2) exactly s(N,2), so that the Sauer bound is attained by both.

    Solution. \sum_{k\leq2}\binom{N}{k} = 1 + N + N(N-1)/2; s(10,2) = 1 + 10 + 45 = 56.

    Thresholds produce N+1 dichotomies on N sorted points (cut after the k-th point, k = 0, \dots, N), which is s(N,1) = 1 + N.

    Intervals realize the empty set and the N(N+1)/2 blocks of consecutive points \{x_i, \dots, x_j\}, i \leq j: 1 + N(N+1)/2 = 1 + N + N(N-1)/2 = s(N,2), that is 56 for N = 10. The bound cannot be improved in general.

  4. ★★ Symmetrization to complete (Prop. 5.2). Redo the proof and justify: (a) the use of Jensen to swap \sup and \mathbb{E}_{S'}; (b) the legality of introducing the signs \sigma_i; (c) the final sub-additivity.

    Solution.

    • (a) For each fixed S, \sup_f \mathbb{E}_{S'}[g_f] \leq \mathbb{E}_{S'}[\sup_f g_f]: for every f_0, the pointwise inequality g_{f_0} \leq \sup_f g_f passes to the expectation, and one then takes the supremum over f_0 on the left.
    • (b) Conditionally on (X_i, X'_i), the quantity \sigma_i(f(X'_i) - f(X_i)) has the same distribution as f(X'_i) - f(X_i) because \sigma_i is symmetric and independent — one may therefore insert \sigma_i without changing the distribution of the supremum.
    • (c) \sup_f (A_f + B_f) \leq \sup_f A_f + \sup_f B_f for any choice of decomposition, applied to A_f = \frac1n\sum\sigma_if(X'_i), B_f = -\frac1n\sum\sigma_if(X_i); since -\sigma has the same law as \sigma, the two suprema have the same expectation, which gives the factor 2.
  5. ★★ Rademacher of constants (exact computation). Compute \hat{\mathfrak{R}}_S(\{x \mapsto c : c \in [0,1]\}) and its equivalent as n \to \infty.

    Solution. With \Sigma = \sum_i\sigma_i: \sup_{c \in [0,1]} \frac1n|c\,\Sigma| = \frac1n |\Sigma|, so \hat{\mathfrak{R}}_S = \frac1n\mathbb{E}|\Sigma|. By the CLT (Probability Theory for ML module, chapter 2), \Sigma/\sqrt n is approximately standard Gaussian and \mathbb{E}|\Sigma| \sim \sqrt{2n/\pi}, hence \hat{\mathfrak{R}}_S \sim \sqrt{\frac{2}{\pi n}} \approx \frac{0.798}{\sqrt n}. (Without the absolute value in Definition 5.1, the convention of Lemma 5.4 and of some textbooks, the supremum is \frac1n\max(\Sigma, 0), whose expectation \hat{\mathfrak{R}}^{\circ}_S is half as large, \approx 0.399/\sqrt n.) Even a “one-dimensional” class has nonzero complexity, of order exactly 1/\sqrt n.

  6. ★★ Le Cam for the Bernoulli mean (quadratic loss). Show that the quadratic minimax risk for estimating p from n Bernoulli draws satisfies \mathcal{M}_n \geq 1/(64n). Hint. Two parameters p_{1,2} = 1/2 \pm s, quadratic loss, separation \Delta = 2s; test A = \{|\hat p - p_1| \leq s\} and bound the binomial KL.

    On A^c: (\hat p - p_1)^2 \geq s^2 contributes s^2\,\mathbb{P}_1(A^c); on A: |\hat p - p_2| \geq s contributes s^2\,\mathbb{P}_2(A). Summing then averaging over the two problems: \mathcal{M}_n \geq \frac{s^2}{2}\big(\mathbb{P}_1(A^c) + \mathbb{P}_2(A)\big) \geq \frac{s^2}{2}(1-\delta).

    KL of the product distributions: n\,\mathrm{KL}(\mathrm{Bern}(p_1)\|\mathrm{Bern}(p_2)) \approx n \times \frac{(2s)^2}{2p(1-p)} = 8ns^2 (to first order at p = 1/2). Taking s = 1/(4\sqrt n): \mathrm{KL} \approx 1/2, Pinsker gives \delta \leq 1/2, hence \mathcal{M}_n \geq \frac{s^2}{4} = \frac{1}{64n} — the 1/n order is what matters; the empirical mean achieves p(1-p)/n \leq 1/(4n): the parametric rate is optimal.

  7. ★★ Restricted eigenvalues under orthonormal design. Take n = p and an orthonormal design, X^\top X = n I (normalized columns).

    • (a) Show that the RE condition (Def. 9.3) holds with \kappa = 1.
    • (b) Show that the Lasso reduces to soft-thresholding of the correlations z = X^\top Y/n = \beta^\star + z^\star, that is \hat\beta_j = \mathrm{sign}(z_j)(|z_j| - \lambda)_+.
    • (c) On the event \{|z^\star_j| \leq \lambda/2\ \forall j\} of Prop. 9.2, show that for every j |\hat\beta_j - \beta^\star_j| \leq \min\big(|\beta^\star_j|,\ 3\lambda/2\big). Deduce \|\hat\beta - \beta^\star\|_2^2 \leq \sum_{j \in S} \min\big((\beta^\star_j)^2,\ \tfrac94\lambda^2\big) \leq \tfrac94\, s\lambda^2, and comment on the (s\log p)/n rate.

    Solution (sketch).

    • (a) \|Xh\|^2/n = \|h\|_2^2 \geq \|h_S\|_2^2 (the cone restricts nothing).
    • (b) Since X^\top X = nI, the objective equals \frac12\|z - b\|_2^2 + \lambda\|b\|_1 up to a constant. It separates coordinate by coordinate into \frac12(z_j - b_j)^2 + \lambda|b_j|, whose minimizer is the soft-thresholding. With Y = X\beta^\star + \varepsilon, one gets z = \beta^\star + z^\star.
    • (c) Fix j and write \theta = \beta^\star_j and \xi = z^\star_j, so that z_j = \theta + \xi with |\xi| \leq \lambda/2.
    • Case |z_j| \leq \lambda: then \hat\beta_j = 0 and the error is |\theta| \leq |z_j| + |\xi| \leq 3\lambda/2.
    • Case |z_j| > \lambda: then |\theta| \geq |z_j| - |\xi| > \lambda/2 \geq |\xi|, so z_j has the sign of \theta, and the soft-thresholding gives \hat\beta_j - \theta = \xi - \lambda\,\mathrm{sign}(\theta), \qquad |\hat\beta_j - \theta| \leq 3\lambda/2. Moreover 0 < |\hat\beta_j| \leq |\theta| - \lambda/2: the estimate lies between 0 and \theta, so the error is also at most |\theta|.
    • Off the support, \theta = 0 gives |z_j| = |\xi| < \lambda, hence \hat\beta_j = 0: no false positive on the event.

    Summing the squares over S gives the bound. With \lambda = 2\sigma\sqrt{2\log(2p)/n}, \|\hat\beta - \beta^\star\|_2^2 \leq \frac94\, s\lambda^2 = 18\,\frac{\sigma^2 s\log(2p)}{n}. This is the rate of Theorem 9.4 with \kappa = 1 and a better constant (18 instead of 72). The factor \log(2p) is the price of not knowing S; least squares on the true support would give \sigma^2 s/n.

    The factor 9/4 cannot be dropped: with \beta^\star_j = 10 and z^\star_j = -\lambda/2, the error on that coordinate is exactly 3\lambda/2, more than \lambda.

  8. ★★ Convex aggregation (Thm 7.3(i)) to prove step by step. Redo the four steps (convexity, exponential weights, uniformization, assembly) and write each inequality with its exact constants; where does the proof use (i) the uniform prior, (ii) the convexity of the loss, (iii) independence? Hint. Follow the proof of the theorem; for the uniformization step, write the Hoeffding bound for each j, take \delta/(2M) and sum.

    • (i) The uniform prior is used in the exponential-weights step, through H(\pi) \leq \log M: the bound depends only on \log M, the number of candidates; a non-uniform prior \rho would replace \log M by \log(1/\rho_{j^\star}) for the best candidate j^\star.
    • (ii) Convexity allows R(\tilde f) \leq \sum_j\pi_j R(f_j); without convexity, one would be limited to selection (MS).
    • (iii) Independence between the observations is used exactly in Hoeffding; it is also what makes \hat R_n(f_j) computable and concentrated — the same role as everywhere in the course since Prop. 1.2.

Projects and assessment

The official assessment is “in-class exams and homework assignments”, graded out of 20 with a resit (SynapseS 2026–2027 sheet, quoted in the fiche above). The unit is not in the LLGA lists, so the sheet gives it no LLGA weight or ECTS. Everything below is a proposal: solo subjects sized as homework assignments, group subjects as a term project, and a mock in-class exam. Every subject exercises objective O1 (machine-learning foundations, here their theory); the benchmark subject also exercises O3 (evaluating LLMs) and O8 (trustworthy claims about models), and the last group subject O4 (graphs).

Solo projects

  1. [Solo · ≈ 20 h] How vacuous are generalization bounds? Question: at realistic sample sizes, how far are the bounds of chapters 4–6 from the gaps one measures, and which term makes each of them vacuous?
    • On two classes of MNIST (digits 3 and 5; LeCun, Bottou, Bengio and Haffner, 1998), train a linear SVM and a one-hidden-layer MLP for n from 500 to 10,000, and measure the train–test gap (ch. 1).
    • Evaluate the VC bound (Thm 4.1), the Rademacher oracle bound with a Monte Carlo estimate of the empirical complexity (Thm 5.3 and the code of ch. 5, for the SVM’s norm-bounded class) and, for the SVM, the margin bound (Thm 6.2, or Cor. 6.3 when the data are separated), each with its stated constants; the SVM’s norm and margin are measured on the data, so use the grid version of the note “Data-dependent margin” (ch. 6); reproduce the table of Example 4.3 (ch. 4–6).
    • Add the random-label run of Zhang, Bengio, Hardt, Recht and Vinyals (2017): at small n both models fit random labels, the VC bound and the Rademacher complexity of the class ignore the labels, and only the margin bound tells the two runs apart.
    • Deliverables: code, a 4–6 page report, a 10-minute talk. Success: every bound is plotted against the measured gap for at least four values of n, and the report names the dominating term of each bound and the sample size at which it drops below 1.
  2. [Solo · ≈ 20 h] Certifying benchmark scores with concentration. Question: how many test items are needed to rank M models, or M prompt variants of one LLM, with confidence 1 - \delta? This is the “Hoeffding versus Bernstein” lab of session 3, carried to the model comparisons of Large Language Models, 9.6 and Machine Learning, 4.9.
    • Derive simultaneous intervals for M accuracies and for the paired differences, with Hoeffding (Thm 2.3), Bernstein (Thm 2.5), the empirical Bernstein bound of Maurer and Pontil (2009) and a union bound (Prop. 0.1). Paired differences vanish on most items, so the variance-sensitive bounds should win there (ch. 0, 2).
    • Check the coverage of each interval on 10^4 simulated benchmarks. Then apply them to per-item results on the 14,042 test questions of MMLU (Hendrycks and coauthors, 2021), from the archived per-sample files of the first Hugging Face Open LLM Leaderboard (2023–2024) or from your own runs of a small open model.
    • Deliverables: code, a 4–6 page report, a 10-minute talk. Success: every interval covers at least 1 - \delta in simulation, and the report gives the number of items each inequality needs to separate two models 2 points apart, compared with McNemar’s test of LLM 9.6.
  3. [Solo · ≈ 15 h] Minimax lower bounds: a written homework with a numerical check. The classical evaluation of the course, in the format of its homework assignments. Question: do the upper bounds of the course meet the lower bounds of chapter 8?
    • Prove Le Cam lower bounds for the Gaussian and Bernoulli means under quadratic loss (Example 8.3, Ex. 6) with explicit constants, then Assouad’s bound for a VC class (Thm 8.4) in full (ch. 8).
    • Simulate the excess risk of the empirical mean and of ERM on the hypercube distributions of Thm 8.4, with \Delta = c\sqrt{d/n}, for n from 10^2 to 10^5 (ch. 4, 8).
    • Deliverables: a 4–6 page typeset proof and one notebook. Success: complete proofs with constants, and a plot where the ratio of the measured risk to the lower bound stays within a constant factor over the whole range of n.

Group projects

  1. [Group of 3 · ≈ 30 h each] Paper study: exponential weights against cross-validation, and sparse PAC-Bayesian aggregation (Alquier and Lounici, 2011). Question: when does aggregating M models beat selecting one by cross-validation, and does the price follow \log M/n? The paper is paper 4 of chapter 10.
    • Member 1: a dictionary of M heterogeneous regressors (polynomials, nearest neighbours, random forests, kernel ridge) fitted on one half of the California housing data (Pace and Barry, 1997; fetch_california_housing in scikit-learn), exponential weights (Def. 7.2) on the other half, and the oracle excess risk against M and n, compared with Thm 7.3 (ch. 7).
    • Member 2: K-fold cross-validation and the one-standard-error rule (Prop. 7.4) under the same budget, and the cost of fitting the dictionary and the weights on the same data, the flaw that the split of the ch. 7 code avoids (ch. 7).
    • Member 3: the sparse prior of the paper on a simulated linear model with p > n, computed by Markov chain Monte Carlo as in the paper, against the Lasso with theoretical and cross-validated \lambda (ch. 9, 10).
    • Deliverables: code, a 6–8 page report, a 15-minute talk. Success: excess-risk curves with intervals over 10 seeds, a measured price of aggregation compared with \log M/n and \sqrt{\log M/n}, and one claim of the paper reproduced or refuted.
  2. [Group of 3 · ≈ 30 h each] Lasso in high dimension: phase transitions and the calibration of \lambda. Question: where does the Lasso recover the support, and how far is the rate of Thm 9.4 from the measured error?
    • Member 1: simulated sparse regression over a grid of (n, p, s), with columns normalized as in Def. 9.1; the theoretical \lambda (Prop. 9.2) against the cross-validated one and the Dantzig selector of Candès and Tao (2007), solved as a linear program with scipy.optimize.linprog (ch. 9).
    • Member 2: exact support recovery against n/(2s\log(p-s)), to reproduce the sharp threshold of Wainwright (2009) for Gaussian designs, and the sup-norm error against the \sigma\sqrt{\log p/n} rate of Lounici (2008) (ch. 9, 10).
    • Member 3: an optimistic estimate of the RE constant \kappa of Def. 9.3, as the smallest ratio \|Xh\|^2/(n\|h_S\|^2) over sampled directions of the cone, and a log–log check of the s\log p/n rate (ch. 9).
    • Deliverables: code, a 6–8 page report, a 15-minute talk. Success: the phase diagram shows the transition near n = 2s\log(p-s), and the measured prediction error stays below the bound of Thm 9.4 with the estimated \kappa.
  3. [Group of 3 · ≈ 30 h each] Paper study: margin and norm bounds for neural networks and graph neural networks (Bartlett, Foster and Telgarsky, 2017). Question: do norm-based bounds, unlike parameter counts, track the generalization of an MLP and of a graph network? The subject prepares Graph ML and extends Deep Learning (Period 2), 7.1.
    • Member 1: MLPs on CIFAR-10 (Krizhevsky, 2009), with true and random labels; the spectral complexity of the paper divided by the margin, against the measured gap (ch. 5, 6).
    • Member 2: a graph convolutional network (Kipf and Welling, 2017) for graph classification on PROTEINS from TUDataset (Morris and coauthors, 2020), with the PAC-Bayesian bound of Liao, Urtasun and Zemel (2021) for graph neural networks.
    • Member 3: the shared protocol (several widths and sample sizes, 3 seeds) and the rank correlation between each measure and the gap, as in Jiang and coauthors (2020), with the parameter count as a VC-style baseline (ch. 4).
    • Deliverables: code, a 6–8 page report, a 15-minute talk. Success: a table of rank correlations with intervals over seeds, and a justified answer on which measure tracks the gap for each model.

Written exam (proposal)

Format: 2 hours, one handwritten A4 sheet and a basic scientific calculator allowed (question 2 needs logarithms and square roots), no other device, four questions. The sheet announces in-class exams but displays no format.

  1. Question (4 points). Write the decomposition of the excess risk R(\hat h) - R^\star of ERM into approximation and estimation errors. Using Prop. 1.2 and the VC inequality, explain why ERM over a class of finite VC dimension is consistent relative to the class but not universally consistent, and how a sieve of classes repairs it.

    Expected: the decomposition of chapter 1, with R^\star the Bayes risk. The estimation error is at most 2\sup_h |R(h) - \hat R_n(h)| (Prop. 1.2), hence at most 2\varepsilon_n(\delta) on the event of the VC inequality, of order \sqrt{d/n} up to a logarithm, for every distribution (Cor. 4.2). The approximation error of a fixed class does not depend on the sample size. Classes of growing VC dimension d_n, with d_n\log n/n \to 0 and a union that approximates every Bayes rule, give universal consistency.

  2. Question (5 points). (a) How many test examples guarantee |\hat R_n(h) - R(h)| \leq 0.05 with probability 0.95 for one fixed classifier, and simultaneously for 50 classifiers? (b) Orthonormal design, z = X^\top Y/n = (1.2, -0.3, 0.5) and \lambda = 0.4: compute the Lasso of Def. 9.1. (c) Evaluate the margin bound of Cor. 6.3 for (r, \gamma, n, \delta) = (1, 0.2, 10^4, 0.05).

    Expected: (a) n \geq \log(40)/(2 \times 0.05^2) \approx 738 for one classifier; the union bound replaces \delta by \delta/50 and gives n \geq \log(2000)/0.005 \approx 1521, about twice as many, not fifty times (Example 2.4, Ex. 1). (b) Soft-thresholding at \lambda (Ex. 7): \hat\beta = (0.8, 0, 0.1). (c) With Prop. 5.5, \frac{2r}{\gamma\sqrt n} + 3\sqrt{\frac{\log(2/\delta)}{2n}} \approx 0.10 + 0.04 = 0.14.

  3. Question (5 points). Let X_1, \dots, X_M be centered and sub-Gaussian with parameter \sigma, not necessarily independent. Prove that \mathbb{E}\max_j X_j \leq \sigma\sqrt{2\log M}. Deduce that a class of M functions with values in [-1, 1] has an empirical Rademacher complexity (Def. 5.1) of at most \sqrt{2\log(2M)/n}.

    Expected: Jensen on the logarithm, \max_j e^{\lambda X_j} \leq \sum_j e^{\lambda X_j}, the sub-Gaussian bound, then \lambda = \sqrt{2\log M}/\sigma (Prop. 2.6).

    For a fixed sample, each of the 2M variables \pm\frac1n\sum_i \sigma_i f(X_i) is sub-Gaussian with parameter 1/\sqrt n, because \mathbb{E}e^{t\sigma_i a} = \cosh(ta) \leq e^{t^2a^2/2}. The absolute value of Def. 5.1 is the maximum over these 2M variables.

  4. Question (6 points). Observations X_1, \dots, X_n are i.i.d. \mathcal{N}(\theta, \sigma^2) with \sigma known. With Le Cam’s two-point method (Thm 8.2, adapted to the quadratic loss) and Pinsker’s inequality, prove that the minimax quadratic risk satisfies \mathcal{M}_n \geq \sigma^2/(16n). Compare with the risk of the empirical mean.

    Expected:

    • Take the means 0 and 2s, and the event that \hat\theta is within s of 0. On this event the loss under the second mean is at least s^2 (triangle inequality); off it, the loss under the first mean exceeds s^2.
    • Averaging the two risks, the maximal risk is at least \frac{s^2}{2}(1 - \mathrm{TV}), where TV is the total variation between the two product laws (proof of Thm 8.2).
    • The KL of the products is n(2s)^2/(2\sigma^2) = 2ns^2/\sigma^2. With s = \sigma/(2\sqrt n) it equals 1/2, and Pinsker gives \mathrm{TV} \leq 1/2.
    • Hence \mathcal{M}_n \geq s^2/4 = \sigma^2/(16n). The empirical mean has risk \sigma^2/n: it is minimax up to the factor 16.

Grading rubric (proposal)

Criterion Weight What earns the marks
Mathematical correctness 30 % every bound stated with its assumptions and constants; proofs complete; computations checked numerically
Theory against experiment 20 % bounds evaluated exactly as stated (constants, confidence level, the class they cover); the gap between bound and measurement explained term by term
Experimental protocol 20 % independent data wherever a theorem needs it (the split of ch. 7), several seeds, intervals, coverage checked by simulation
Code and reproducibility 15 % one script or notebook reruns every number of the report from public or simulated data, with fixed seeds
Report and talk 15 % a clear question, real references, figures that make the point, precise answers to questions

References