TL;DR
- ; = number of ways to choose of . A set of elements has subsets; points have binary labelings.
- Growth hierarchy: (any power beats a log, any exponential beats any power).
- : at most a constant times . : (strictly smaller order).
- Is it going to 0? Divide out, keep the dominant terms, compare powers: , , .
Counting
Factorials and binomial coefficients
, . , , , , . .
Pascalβs triangle for quick values:
| 3 | 1, 3, 3, 1 | 4 | 7 | 8 | 8 |
| 4 | 1, 4, 6, 4, 1 | 5 | 11 | 15 | 16 |
| 5 | 1, 5, 10, 10, 5, 1 | 6 | 16 | 26 | 32 |
| 6 | 1, 6, 15, 20, 15, 6, 1 | 7 | 22 | 42 | 64 |
| 10 | 1, 10, 45, 120, 210, β¦ | 11 | 56 | 176 | 1024 |
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
Question cards (4)
Compute and the Sauer-Shelah bound for , .
Answer
. .
Is ?
Answer
Yes: any positive power beats the logarithm, even (it only takes very large ).
Is good enough for the stability bound?
Answer
: yes, .
How many SHAP subset terms does one feature have with ?
Answer
All subsets of the other 3 features: .