TL;DR

  1. ; = number of ways to choose of . A set of elements has subsets; points have binary labelings.
  2. Growth hierarchy: (any power beats a log, any exponential beats any power).
  3. : at most a constant times . : (strictly smaller order).
  4. Is it going to 0? Divide out, keep the dominant terms, compare powers: , , .

Counting

Factorials and binomial coefficients

, . , , , , . .

Pascal’s triangle for quick values:

31, 3, 3, 14788
41, 4, 6, 4, 15111516
51, 5, 10, 10, 5, 16162632
61, 6, 15, 20, 15, 6, 17224264
101, 10, 45, 120, 210, …11561761024

The columns are exactly the Sauer-Shelah bound for VC dimension (L3): a class of VC dimension 2 realizes at most 11 of the 16 labelings of 4 points.

Memory aid

Labelings of points: (each point + or βˆ’). While a class shatters, its growth function doubles with every new point; after the VC dimension it can only grow like . Read a growth table as β€œdoubling, doubling, …, then slower”.

Where else counting appears:

  • SHAP weights : among all orderings of the features, the fraction in which exactly the features of come before (L9.2). With 3 features: .
  • No Free Lunch: on points there are possible target functions (L1.2).
  • Bootstrap: a point is missed by one draw with probability , by all draws with , so a bootstrap sample contains about 63% of the distinct points (L6).

Growth rates

The hierarchy

means . The base of the log does not matter for the order ().

O and o

  • : for some constant and large (β€œat most of the order”).
  • : (β€œof strictly smaller order”).
  • : at least of the order; : both.

Example: , but is not .

Deciding whether a rate goes to 0

Recipe: (1) write everything as powers of and logs, (2) keep only the dominant factor, (3) compare exponents: negative power β†’ 0, logs lose against any power.

The stability condition (L4)

Test :

?
yes
yes (power beats log)
yes, slowly
no
no, grows
no, grows

Bound terms of Lecture 3

for fixed (the log loses against ). is constant, so a class with gives no bound. With a growing VC dimension : fine as long as , e.g. , but not .

Memory aid

Logs are slow, powers are fast, exponentials are faster. When in doubt, plug in : , , , and see which way it moves as grows further.

Self-check