Lecture 6 Full Handout

Derek Wang14 min read

Complete reading edition preserving all sections, results, proofs, and numbering: finite-class concentration, zero-covers, littlestone dimension, online regression, and sequential fat dimension, with explicit editorial notes.

Fall 2026. Haipeng Luo.

Reading edition of all eight pages, retaining four sections, subsection 3.1, Lemma 1, Theorems 1–6, Corollary 1, Proposition 1, Equations (1)–(3), both regression examples, and the footnote. Source: lecture6.pdf (local source, not published online). Companion: detailed explanation. Editorial notes are explicit. The original has no figures or bibliography.

1 Online Learning with a Finite Class

The previous lecture introduced online learning and derived the following sequence of upper bounds on the game value:

The first two steps are general; the last is specific to supervised learning. Its shorthand suppresses the Lipschitz constant and possible logarithmic factor from contraction. This lecture bounds , starting with finite classes and the maximal inequality.

Lemma 1 (Maximal Inequality). If the finite collection consists of variables with the zero-centered -sub-Gaussian moment-generating-function bound, then

Theorem 1. Let be finite. For every input tree,

Consequently, if , then

Proof. Write

It suffices to show that is -sub-Gaussian, then apply Lemma 1 and divide by . For positive , first peel off the last round:

Conditionally on the past, is sub-Gaussian with parameter . Peeling one more round gives

The final squared term still depends on , so it cannot simply be treated as constant. First take a worst case:

Continuing in the same fashion yields

This proves that finite bounded classes are online learnable and will be a key ingredient for infinite classes.

2 Infinite Class: Online Binary Classification and Zero-Cover

Start with binary classification and zero-one loss. In statistical learning, even an infinite class has a finite projection on a fixed sample. The online analogue is

The projection is a finite set of binary-valued trees. A depth- tree has nodes, so its projection can have size , whereas a statistical sample has at most labelings. Both crude bounds are vacuous for learnability. Perhaps a simple class has a small projection? Unfortunately, consider the singleton-indicator class on the real line:

Each classifier predicts +1 at exactly one input. It cannot shatter two points, so its VC dimension is exactly 1 and it is statistically learnable. But if all nodes of the input tree are distinct, the projection contains the all-negative tree and trees with a single positive node: trees in total. Bound (1) is again vacuous. Is projection the wrong measure, or is even this simple class not online learnable? Fortunately, the former is true.

A projection requires

Swapping two quantifiers gives a weaker property that already suffices for (1), with its second equality changed to an inequality:

Such a set is a zero-cover of , and its minimum size is . Hence

A zero-cover is no larger than the projection, which covers itself. It is also always at most : take all trees constant within each level, one for each binary sequence of length . They match every possible path labeling. This crude bound is still vacuous but matches the statistical setting’s crude bound.

The class in (2) has a zero-cover of size at most , implying online learnability. First consider the special case with no repeated input on any path. Use the all-negative tree and, for each level , a tree positive throughout level and negative elsewhere. Repeated values make direct construction less obvious. Ideally a combinatorial parameter analogous to VC dimension would control covers through a Sauer-type lemma. The next section provides one.

Editorial note: the source says “zero-covering number .” For an arbitrary fixed tree this is an upper bound, not always equality. If every input is identical, two trees suffice; a worst-case tree can attain .

3 Littlestone Dimension

A class shatters a tree if every path/label sequence can be matched by one function along the entire path:

The Littlestone dimension is the maximum depth of a shattered tree: zero when no positive-depth tree is shattered, and infinity when every finite depth is possible. (Original note 1) VC dimension never exceeds Littlestone dimension: fill level with the -th point of a shattered fixed sample. For a nonempty class, Littlestone dimension zero implies VC dimension zero and thus only one distinct function.

To prove dimension , construct a shattered depth- tree and rule out all depth- trees. The singleton class in (2) has dimension exactly 1: any root can be shattered, but after a positive first label only one function remains, so both and cannot be realized. HW2 studies a higher-dimensional extension. The following Sauer analogue also provides a recursive cover construction.

Theorem 2. For any depth- input tree and binary class of dimension ,

Proof. Let . The second inequality was established in Sauer’s lemma. Induct on . The base is immediate, and any case needs one tree. Now take and partition by the root input :

Let be the root’s subtrees. Take minimal zero-covers for on them. Construct with positive roots and pair elements of the two subcovers as left and right subtrees, ensuring every element appears. Repeat elements of the shorter list, so only the maximum of the two sizes is needed. A path enters only one subtree, making this a valid cover of . Construct similarly and take their union.

Both subclasses cannot have dimension . Otherwise attach their respective shattered depth- trees under , producing a shattered depth- tree, a contradiction. Without loss of generality the negative subclass has dimension at most . Induction gives

The final equality is Pascal’s identity. Zero-covering allows pairing by the maximum; covering entire projected trees could require a product of subtree cover sizes. For the singleton class, this gives , even with repeated inputs. Try the recursion on a small depth-three tree.

Editorial note: the original induction is stated for , but recursion can reach the boundary. Add the trivial case for to close the induction. An empty subclass needs no cover; interpret the power bound as 1.

Corollary 1. The value for a binary class satisfies

Finite Littlestone dimension is sufficient for online learnability and is also necessary. Use the display for ; the value is zero at , and use a trivial bound for .

Theorem 3. If Littlestone dimension is infinite, then the game value is at least for every horizon.

Proof. Take a shattered depth- tree and independent random signs. At time , the environment provides . For every proper or improper binary algorithm, the current label is a fresh fair sign, so expected total loss is exactly . Shattering provides a zero-error comparator on every realized path, so expected regret is . HW2 establishes the stronger lower bound when .

Summary. Combining the classification bounds gives

Here , and the conditional expectation denotes the loss of an independent conditional copy. The bounds still differ by a logarithmic factor; “tight” here does not mean equality up to an absolute constant.

3.1 Online Learning Is Strictly Harder

The online-to-batch conversion from Lecture 1 showed that online learning is at least as hard. The singleton class, whose two dimensions both equal 1, does not show strict separation. Instead consider thresholds on the real line:

Lecture 2 established VC dimension exactly 1, but its Littlestone dimension is infinite. Proposition 1. The threshold class in (3) has infinite Littlestone dimension.

Proof. Construct an infinite input tree with root . A node of value at level has left and right children and . Draw the tree to see the construction. For any finite depth and path, set

Use defaults 0 and 1 when the corresponding sets are empty. We claim ; then every matches all path labels. After a positive step, every later node on the path is larger; after a negative step, every later node is smaller. Thus every positive node is strictly smaller than every negative node, regardless of their temporal order. Hence , completing the proof.

Thus this simple class is statistically learnable but not online learnable. More generally, affine linear classifiers

contain thresholds and therefore have infinite Littlestone dimension despite finite VC dimension . Online learning is strictly harder. Is this too restrictive if even linear classification is impossible? For online zero-one loss, in a sense yes. Yet in statistical learning, finite VC dimension only gives learnability via ERM; computing ERM can still be difficult for linear classifiers. Practice therefore uses nicer surrogate losses, moving toward regression, where more possibilities open up online as well.

4 Online Regression

Now let . A set of trees valued in this interval is an -cover of if

The quantifier order agrees with zero-covering and parallels approximate covering in the statistical setting. The smallest size is . It is nonincreasing in radius , and, under this normalization, nondecreasing in . For , use maximum error along a path. Covering reduces infinite classes to finite ones.

Theorem 4. For every input tree,

Proof. Fix , choose a minimal cover , and let be a representative for that function and path. Add and subtract it, split the supremum, and apply the approximation property and Theorem 1:

Take the infimum over radii. Similar chaining techniques give the tighter Dudley entropy integral; the handout omits the proof.

Theorem 5.

Again a combinatorial parameter controls covering numbers. A tree is -shattered if there exists a witness tree , valued in , such that

and the largest such depth is the sequential fat-shattering dimension, denoted . The following connection is also stated without proof.

Theorem 6. For positive , depth , and the preceding class, the handout states

Editorial note: use this at the effective scales ; for , the zero tree already covers and the covering number is 1. Avoid formal products of infinite dimensions and negative logarithms. Match the handout’s margin convention when comparing sources.

Example 1: Linear Functions

Recall on , with and . Proposition 2 of Lecture 3 gave a pointwise cover of size at most . Projecting it onto any tree gives a sequential cover, hence

The latter follows from the previously computed Dudley integral. Linear real-valued classes are therefore online learnable, with the same complexity rate as statistically. Passing to a game value through general Lipschitz contraction still carries its additional factor; the complexity rate is not unconditionally the regret rate for every loss.

Example 2: Nondecreasing Functions

Statistically, all nondecreasing functions from the real line to have a covering estimate written in the handout as and fat dimension . Online, no corresponding learnability bound is possible because the problem is not online learnable. Use the bisection tree from Proposition 1 and let the environment choose

Notice the reversed path signs. The current label is equally likely to be positive or negative, so every prediction has conditional expected squared loss at least

On the other hand, every negatively labeled input lies to the left of every positively labeled input. A nondecreasing function can interpolate all observations with zero squared loss, forcing linear regret. The handout additionally remarks, without details, that the problem becomes learnable in the transductive setting where the input set is known in advance, though neither its order nor labels are known.

Editorial note: 1 is a lower bound on conditional expected loss, not on every realized loss. The statistical cover expression retains the source’s scale shorthand; interval length, rounding, and radius conventions affect constants in its exponent, not the online impossibility conclusion.

Bridging Classification and Regression

Binary classifiers often have the form : a score’s sign predicts the label and its magnitude expresses confidence. Choosing scores instead of their classifiers does not change the zero-one problem. With the handout’s conservative convention for zero scores, loss is . Infinite does not become learnable merely by rewriting it.

But one may optimize an online-learnable surrogate that upper-bounds zero-one loss. Then

The source mixes and here; this edition consistently uses . If expected average regret tends to zero, the learner’s average mistakes are controlled by the best function’s average surrogate loss plus a vanishing term. This avoids the zero-one impossibility using a different comparator loss. Statistical learning often does the same for computational reasons. Typical surrogates are

The handout says both losses are 1-Lipschitz in the score. Sufficient control of sequential fat dimension at every scale then yields online learnability and meaningful mistake bounds.

Editorial note: with natural logarithms, logistic loss equals at zero score and does not directly upper-bound this zero-one loss. The correct inequality is ; the normalized loss has Lipschitz constant . Both claims hold for hinge loss. A fixed binary sign convention at zero may also differ from the conservative zero-margin loss.

Summary

For -Lipschitz regression loss, the handout summarizes

The handout states that these bounds are tight in an appropriate sense and sequential fat dimension is the right complexity measure. This finishes its discussion of statistical and online learnability for classification and regression. The next lecture begins algorithm design. The full equivalence theorem and its conditions are not proved here and do not follow automatically from this single logarithmic upper bound.

Original Footnote

Original note 1: In sequential Rademacher complexity and shattering, represents both a path and a labeling. In zero-covering, it represents only a path.

Search the site

Notes
Blog
Projects
Resources
About me