TL;DR

  1. Markov: for . Chebyshev: .
  2. Hoeffding (bounded i.i.d. variables in ): : exponentially small in .
  3. Three ways to read one bound: fix → probability; fix → accuracy ; fix → sample size .
  4. “With probability at least ” = the bad event has probability at most .
  5. Law of large numbers: . Convergence in probability: for every . Consistency is defined this way.

Markov and Chebyshev

Markov's inequality

For a non-negative random variable and : .

Example: average waiting time 5 minutes. Then at most of the people wait 20 minutes or longer, whatever the distribution.

Chebyshev's inequality

(Markov applied to ).

Applied to the mean of i.i.d. variables (): . It goes to 0 like : this proves the (weak) law of large numbers.

Hoeffding’s inequality

Hoeffding

independent with values in , , :

One-sided (only ): without the factor 2.

Why it matters: the loss of a fixed classifier on test points is exactly such an average, so the test error is within of the true risk with high probability (L3).

Solving a bound for the sample size, the accuracy or the confidence

Set the right-hand side equal to and solve:

wantedgivenformula (two-sided)
probability of a bad event,
accuracy ,
sample size ,

Mini example

How many test points guarantee the test error to be within of the true error with probability ()? . For : 25 times as many, about .

Memory aid

Half the error needs four times the data (), but ten times more confidence (δ divided by 10) only costs in the numerator. Confidence is cheap, accuracy is expensive.

Finite class of functions: the union bound (Probability Basics) multiplies the bad probability by , so becomes : (L3).

Reading “with probability at least 1 − δ”

A statement like “with probability at least , ” means: over the random draw of the training set, the event where the inequality fails has probability at most . Smaller (more confidence) makes larger, but only through .

Memory aid

is the “risk of bad luck with the sample”. It always appears as or (the same thing, since for ).

Law of large numbers and convergence

Convergence in probability

in probability if for every : as . Other modes (almost surely, in ) are in L1.2.

Law of large numbers

For i.i.d. with mean : (in probability; also almost surely). In the course: for every fixed (L1.2).

Why the LLN is not enough for ERM

The ERM solution is chosen using the data, so the are not independent of ; the LLN does not apply to . The fix is uniform convergence over the whole class (L3), paid for with or the VC dimension.

Consistency of a learning algorithm is convergence in probability of the risk: (L1.2).

Self-check