


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















In this lecture, we will look at concentration inequalities or law of large numbers for a fixed function. Let (Ω, L, μ) be a probability space. Let x 1 , ..., xn be real random variables on Ω. A sequence of random variables yn converges almost surely to a random variable Y iff IP(yn → Y ) = 1. A sequence of random variables yn converges in probability to a random variable Y iff for every > 0, limn→∞ IP(|yn − Y | > ) = 0. Let ˆμn := n−^1
∑n i=1 xn.^ The sequence^ x^1 , ..., xn^ satisfies the strong law of large numbers if for some constant c, ˆμn converges to c almost surely. The sequence x 1 , ..., xn satisfies the weak law of large numbers iff for some constant c, ˆμn converges to c in probability. In general the constant c will be the expectation of the random variable IEx. A given function f (x) of random variables x concentrates if the deviation be- tween its empirical average, n−^1
∑n i=1 f^ (xi) and expectation, IEf^ (x), goes to zero as n goes to infinity. That is f (x) satisfies the law of large numbers.
Theorem (Jensen). If φ is a convex function then φ(IEx) ≤ IEφ(x).
Theorem (Bienaym´e-Chebyshev). For any random variable x, > 0
IP(|x| ≥ ) ≤
IEx^2 ^2
Proof.
IEx^2 ≥ E(x^2 I{|x|≥}) ≥ ^2 IP(|x| > ).
Theorem (Markov). For any random variable x, > 0
IP(|x| ≥ ) ≤
IEeλx eλ
and
IP(|x| ≥ ) ≤ inf λ< 0 e−λIEeλx.
77
78 S. MUKHERJEE, PROBABILISTIC MACHINE LEARNING
Proof.
IP(x > ) = IP(eλx^ > eλ) ≤
IEeλx eλ^
For the sums or averages of independent random variables the above bounds can be improved from polynomial in 1/ to exponential in .
Theorem (Bennet). Let x 1 , ..., xn be independent random variables with IEx = 0, IEx^2 = σ^2 , and |xi| ≤ M. For > 0
∑^ n
i=
xi| >
≤ 2 e
−nσ^2 M 2 φ(^ M nσ^2 ),
where φ(z) = (1 + z) log(1 + z) − z.
Proof. We will prove a bound on one-side of the above theorem
( (^) n ∑
i=
xi >
( (^) n ∑
i=
xi >
≤ e−λIEeλ^
∑ (^) x i (^) = e−λΠni=1IEeλxi
= e−λ(IEeλx)n.
IEeλx^ = IE
k=
(λx)k k!
k=
λk^ IExk k!
k=
λk k!
IEx^2 xk−^2 ≤ 1 +
k=
λk k!
M k−^2 σ^2
σ^2 M 2
k=
λkM k k!
σ^2 M 2
(eλM^ − 1 − λM )
≤ e
σ^2 M 2 (e λM (^) −λM −1) .
The last line holds since 1 + x ≤ ex. Therefore,
( (^) n ∑
i=
xi >
≤ e−λe
σ^2 M 2 (e λM (^) −λM −1) .
We now optimize with respect to λ by taking the derivative with respect to λ
0 = − +
nσ^2 M 2
(M eλM^ − M ),
eλM^ =
nσ^2
λ =
log
nσ^2
80 S. MUKHERJEE, PROBABILISTIC MACHINE LEARNING
and
n−^1
∑^ n
i=
f (xi) − IEf (x) ≤
uM n
2 σ^2 u n
Similarly,
IEf (x) − n−^1
∑^ n
i=
f (xi) ≥
uM n
2 σ^2 u n
In the above bound (^) √ 2 σ^2 u n
4 uM n
which implies u ≤ nσ
2 8 M 2 and therefore
|n−^1
∑^ n
i=
f (xi) − IEf (x)|.
2 σ^2 u n
for u. nσ^2 ,
which corresponds to the tail probability for a Gaussian random variable and is predicted by the Central Limit Theorem (CLT) Condition that limn→∞ nσ^2 → ∞. If limn→∞ nσ^2 = C, where C is a fixed constant, then
|n−^1
∑^ n
i=
f (xi) − IEf (x)|.
n
which corresponds to the tail probability for a Poisson random variable. We now look at an even simpler exponential inequality where we do not need information on the variance.
Theorem (Hoeffding). Let x 1 , ..., xn be independent random variables with IEx = 0 and |xi| ≤ Mi. For > 0
∑^ n
i=
xi| >
≤ 2 e
− ∑n^2 ^2 i=1 M^ i^2.
Proof.
( (^) n ∑
i=
xi >
≤ e−λIEeλ^
∑n i=1 xi^ = e−λΠni=1IEeλxi^.
It can be shown (Homework problem)
IE(eλxi^ ) ≤ e
λ^2 M (^) i^2 (^8).
The bound is proven by optimizing the following with respect to λ
e−λΠni=1e
λ^2 M (^) i^2 (^8). Applying Hoeffding’s inequality to
n−^1
∑^ n
i=
f (xi) − IEf (x)
we can state that with probability 1 − e−u
n−^1
∑^ n
i=
f (xi) − IEf (x) ≤
2 M u n
ONE DIMENSIONAL CONCENTRATION INEQUALITIES* 81
which is a sub-Gaussian as in the CLT but without the variance information we can never achieve the (^1) n rate we achieved when the random variable has a Poisson tail distribution. We will use the following version of Hoeffding’s inequality in later lectures on Kolmogorov chaining and the Dudley’s entropy integral.
Theorem (Hoeffding). Let x 1 , ..., xn be independent random variables with IP(xi = Mi) = 1/ 2 and IP(xi = −Mi) = 1/ 2. For > 0
∑^ n
i=
xi| >
≤ 2 e
− ∑n^2 ^2 i=1 M^ i^2.
Proof.
( (^) n ∑
i=
xi >
≤ e−λIEeλ^
∑n i=1 xi^ = e−λΠni=1IEeλxi^.
IE(eλxi^ ) =
eλMi^ +
e−λMi^ ,
1 2 eλMi^ +
e−λMi^ =
k=
(Miλ)^2 k (2k)! ≤ e
λ^2 M (^) i^2 (^2).
Optimize the following with respect to λ
e−λΠni=1e
λ^2 M (^) i^2 (^2).
In the previous section we stated some concentration inequalities for sums of inde- pendent random variables. We now look at more complicated functions of indepen- dent random variables and introduce a particular Martingale inequality to prove concentration. Let (Ω, L, μ) be a probability space. Let x 1 , ..., xn be real random variables on Ω. Let the function Z(x 1 , ..., xn) : Ωn^ → IR be a map from the random variables to a real number. The function Z concentrates if the deviation between Z(x 1 , ..., xn) and IEx 1 ,..,xn Z(x 1 , .., xn) goes to zero as n goes to infinity.
Theorem (McDiarmid). Let x 1 , ..., xn be independent random variables let Z(x 1 , ..., xn) : Ωn^ → IR such that
∀x 1 , ..., xn, x′ 1 , ..., x′ n |Z(x 1 , .., xn) − Z(x 1 , ..., xi− 1 , x′ i, xi+1, xn)| ≤ ci,
then
IP (Z − IEZ > ) ≤ e
− 2 ∑n^2 i=1 c^2 i (^).
Proof.
IP(Z − IEZ > ) = IP(eλ(Z−IEZ)^ > eλ) ≤ e−λIEeλ(Z−IEZ).
ONE DIMENSIONAL CONCENTRATION INEQUALITIES* 83
If the loss function is bounded one can show that for all (v 1 , ..., vn, v′ i)
|Z(v 1 , ..., vn) − Z(v 1 , ..., vi− 1 , v i′, ...vn)| ≤ k n
Therefore with probability 1 − e−u
|Z − IEZ| ≤
2 ku n
So the empirical minima concentrates.
86 S. MUKHERJEE, PROBABILISTIC MACHINE LEARNING
We now look at the case of ERM on a hypothesis space H with a finite number of functions, k = |H|. In this case, the empirical minimizer will be one of the k functions.
Theorem. Given 0 ≤ V (fj , z) ≤ M for all fj ∈ H, z and S = {zi}ni=1 drawn i.i.d. then with probability at least 1 − e−t^ (t > 0 ) for the empirical minimizer, fS ,
IEz V (fS , z) < n−^1
∑^ n
i=
V (fS , zi) +
M 2 (log K + t) n
Proof. The follow implication of events holds {
max fj ∈H IEz V (fj , z) − n−^1
∑^ n
i=
V (fj , zi) < ε
IEz V (fS , z) − n−^1
∑^ n
i=
V (fS , zi) < ε
max fj ∈H
IEz V (fj , z) − n−^1
∑^ n
i=
V (fj , zi) ≥ ε
f ∈H
IEz V (f, z) − n−^1
∑^ n
i=
V (f, zi) ≥ ε
fj ∈H
IEz V (fj , z) − n−^1
∑^ n
i=
V (fj , zi) ≥ ε
≤ ke−nε
(^2) /M 2 ,
the last step comes from our single function result. Set e−t^ = ke−nε
(^2) /M 2 and the result follows.
We now prove a sufficient condition for the generalization of hypothesis spaces with an infinite number of functions and then give some examples of such spaces. We first assume that our hypothesis space is a subset of the space of continuous functions, H ⊂ C(X ).
Definition. A metric space is compact if and only if it is totally bounded and complete.
Definition. Let R be a metric space and any positive number. Then a set A ⊂ R is said to be an -net for a set M ⊂ R if for every x ∈ M , there is at least one point a ∈ A such that ρ(x, a) < . Here ρ(·, ·) is a norm.
Definition. Given a metric space R and a subset M ⊂ R suppose M has a finite -net for every > 0. Then M is said to be totally bounded.
Proposition. A compact space has a finite -net for all > 0.
For the remainder of this section we will use the supnorm, ρ(a, b) = sup x∈X
|a(x) − b(x)|.
LECTURE 12. VAPNIK- CERVONENKIS THEORYˇ 87
Definition. Given a hypothesis space H and the supnorm, the covering number N (H, ) is the minimal number ∈ IN such that for every f ∈ H there exists functions {gi}i=1 such that
sup x∈X
|f (x) − gi(x)| ≤ for some i.
We now state a generalization bound for this case. In the bound we assume V (f, z) = (f (x) − y)^2 but the result can be easily extended for any Lipschitz loss
|V (f 1 , z) − V (f 2 , z)| ≤ C||f 1 (x) − f 2 (x)||∞ ∀z.
Theorem. Let H be a compact subset of C(X ). Given 0 ≤ |f (x) − y| ≤ M for all f ∈ H, z and S = {zi}ni=1 drawn i.i.d. then with probability at least 1 − e−t^ (t > 0 ) for the empirical minimizer, fS ,
IEx,y (fS (x) − y)^2 < n−^1
∑^ n
i=
(fS (xi) − yi)^2 +
M 2 (log N (H, ε/ 8 M ) + t) n
We first prove two useful lemmas. Define
D(f, S) := IEx,y (f (x) − y)^2 − n−^1
∑^ n
i=
(f (xi) − yi)^2.
Lemma. If |fj (x) − y| ≤ M for j = 1, 2 then
|D(f 1 , S) − D(f 2 , S)| ≤ 4 M ||f 1 − f 2 ||∞.
Proof. Note that
(f 1 (x) − y)^2 − (f 2 (x) − y)^2 = (f 1 (x) − f 2 (x))(f 1 (x) + f 2 (x) − 2 y)
so
|IEx,y (f 1 (x) − y)^2 − IEx,y (f 2 (x) − y)^2 | =
(f 1 (x) − f 2 (x))(f 1 (x) + f 2 (x) − 2 y)dμ(x, y)
≤ ||f 1 − f 2 ||∞
|f 1 (x) − y + f 2 (x) − y|du(x, y)
≤ 2 M ||f 1 − f 2 ||∞,
and
|n−^1
∑^ n
i=
[(f 1 (xi) − yi)^2 − (f 2 (xi) − yi)^2 ]| = n−^1
∑^ n
i=
(f 1 (xi) − f 2 (xi))(f 1 (xi) + f 2 (xi) − 2 yi)
≤ ||f 1 − f 2 ||∞
n
∑^ n
i=
|f 1 (xi) − yi + f 2 (xi) − yi|
≤ 2 M ||f 1 − f 2 ||∞. The result follows from the above inequalities.
Lemma. Let H = B 1
B` and ε > 0. Then
sup f ∈H
D(f, S)
j=
sup f ∈Bj
D(f, S)
LECTURE 12. VAPNIK- CERVONENKIS THEORYˇ 89
Lemma. Given a metric space (A, ρ). Then for all > 0 and for every W ⊂ A, the covering numbers and packing numbers satisfy
P(W, 2 , ρ) ≤ N (W, , ρ) ≤ P(W, , ρ).
Proof. For the second inequality suppose P is an -packing of maximal cardinality, P(W, , d). Then for any w ∈ W there must be a u ∈ P with ρ(u, w) < , otherwise w is not an element of P and P ∪w is an -packing. This contradicts the assumption that P is a maximal -packing. So any maximal packing is an -cover. For the first inequality suppose C is an -cover for W and and that P is a 2- packing of W with maximum cardinality P(W, , d). We will show that |P | ≤ |C|. Assume that |C| > |P |. Then for two points w 1 , w 2 ∈ P and one point u ∈ C the following will hold
ρ(w 1 , u) ≤ and ρ(w 2 , u) ≤ =⇒ ρ(w 1 , w 2 ) ≤ 2 .
This contradicts the fact that the points in P are 2-separated. In general we will compute packing numbers for hypothesis spaces and use the above lemma to obtain the covering number. The following proposition will be useful.
Proposition. Given x ∈ IRd, the restriction the space to the unit ball B = {x : ||x|| ≤ M }, and the standard Euclidean metric ρ(x, y) = ||x − y||, then for ≤ M
P(B, , ρ) ≤
)d .
Proof. The points w 1 , .., w form an optimal -packing so
Vol
= Cd
)d
Vol
= Cd
)d
`[Cd
)d ] = Cd
)d
)d
)d for all ≤ M.
Example. Covering numbers for a finite dimensional RKHS. For a finite dimensional bounded RKHS
f : f (x) =
∑^ m
p=
cpφp(x)
with ‖f ‖^2 K ≤ M.
90 S. MUKHERJEE, PROBABILISTIC MACHINE LEARNING
By the reproducing property and Cauchy-Schwartz inequality, the supnorm can be bound by the RKHS norm:
||f (x)||∞ = ||〈K(x, ·), f (·)〉K ||∞ ≤ ||K(x, ·)||K ||f ||K =
K(x, x)||f ||K ≤ κ||f ||K This means that if we can cover with the RKHS norm we can cover with the supnorm. Each function in our cover, {gi}`i=1 can be written as
gi(x) =
∑^ m
p=
dipφp(x)
So if we find ` vectors di for which for all c :
∑m p=
c^2 p λp ≤^ M^ there exists a^ di^ such that ∑m
p=
(cp − dip)^2 λp
we have a cover at scale . The above is simply a weighted Euclidean norm and can be reduced to the problem of covering a ball of radius M in IRm^ using the Euclidean metric. Using proposition 12.4 we can bound the packing number with the RKHS norm and the supnorm
P(H, , || · ||Hk ) ≤
)m ,
κ
)m .
Using lemma 12.4 we can get a bound on the covering number
κ
)m .
We have shown that for H ⊂ C(X ) that is compact with respect to the supnorm we have uniform convergence. This requirement is to strict to determine necessary conditions. A large class of functions that these conditions do not apply to are indicator functions f (x) ∈ { 0 , 1 }.
In this section we derive necessary and sufficient conditions for uniform convergence of indicator functions and as a result generalization bounds for indicator functions, f (x) ∈ { 0 , 1 }. As in the case of compact functions we will take a class of indicator functions H and reduce this to some finite set of functions. In the case of indicator functions this is done via the notion of a growth function which we now define.
92 S. MUKHERJEE, PROBABILISTIC MACHINE LEARNING
which implies the initial assumption when n ≥ 2 /^2. By symmetrizing we now have a term that depends only on samples. The problem is that it depends on the samples we have but also an independent compy. This nuisance is removed by a second step of symmetrization.
Lemma. Let σi be a Rademacher random variable (IP(σi = ±1) = 1/2) then
IP (|D(f, S) − D(f, S′)| > /2) ≤ 2IP
n−^1
∑^ n
i=
σiI{f (xi) 6 =yi}
Proof.
IP (|D(f, S) − D(f, S′)| > /2) = IP
n−^1
∑^ n
i=
σiI{f (xi) 6 =yi} − n−^1
∑^ n
i=
σiI{f (x′ i) 6 =y i′}
n−^1
∑^ n
i=
σiI{f (xi) 6 =yi}
n−^1
∑^ n
i=
σiI{f (x′ i) 6 =y′ i}
n−^1
∑^ n
i=
σiI{f (xi) 6 =yi}
The second symmetrization step allows is to bound the deviation between the empirical and expected errors based upon a quantity computed just on the empirical data. We now prove Lemma 12.5. By the symmetrization lemmas for n ≥ 8 /^2
IP(|D(f, S)| > ) ≤ 4 IP
n−^1
∑^ n
i=
σiI{f (xi) 6 =yi}
By the Rademacher version of Hoeffdings inequality
n−^1
∑^ n
i=
σiI{f (xi) 6 =yi}
≤ 2 e−^2
2 .
Combining the above for a single function
IP(|D(f, S)| > ) ≤ 8 e−
(^2) / 8 .
Given data S the growth function characterizes the cardinality of subsets that can be “picked out” which is a bound on the number of possible labellings or realizable functions, = (^4) n(H, S). We index the possible labelings by fj where j = 1, ...,.
LECTURE 12. VAPNIK- CERVONENKIS THEORYˇ 93
We now proceed as in the case of a finite number of functions
sup f ∈H
|D(f, S)| ≥
f ∈H
|D(f, S)| ≥
i=
IP (|D(fj , S)| ≥ ε)
≤ (^84) n(H, S)e−n
(^2) / 8 .
Setting e−t/^8 = 8 (^4) n(H, S)e−n
(^2) / 8 completes the proof. This bound is not uniform since the growth function depends on the data S. We can make the bound uniform by defining a uniform notion of the growth function.
Definition. The uniform growth function is
(^4) n(H) = max x 1 ,...,xn∈X (^4) n(H, {xi}ni=1).
Corollary. Let H be a class of indicator functions and S = {zi}ni=1 drawn i.i.d. then with probability at least 1 − e−t/^8 (t > 0 ) for the empirical minimizer, fS ,
IEx,y I{fS (x) 6 =y} < n−^1
∑^ n
i=
I{fS (xi) 6 =yi} +
(log 8 (^4) n(H) + t) n
where (^4) n(H) is the uniform growth function.
Corollary. For a class of indicator functions ERM is consistent if and only if for all ε > 0
lim n→∞
8 log (^4) n(H) n
We now characterize conditions under which the uniform growth function grows polynomially. To do this we need a few definitions.
Definition. A hypothesis space, H, shatters a set {x 1 , ..., xn} if each of its 2 n subsets can be “picked out” by H. The Vapnik- Cervonenkis (VC) dimension,ˇ v(H), of a hypothesis space is the largest n for which all sets of size n are shattered by H
v(H) = sup {n : (^4) n(H) = 2n} ,
if the exists no such n then the VC dimension is infinite.
Definition. A hypothesis space of indicator functions H is a VC class if and only if it has finite VC dimension.
Examples.
The VC dimension controls the growth function via the following lemma.
Lemma. For a hypothesis space H with VC dimension d and n > d
(^4) n(H) ≤
∑^ d
i=
n i
LECTURE 12. VAPNIK- CERVONENKIS THEORYˇ 95
Proof. For 0 ≤ i ≤ d and n ≥ d (m/d)d(d/m)i^ ≥ 1 ,
so ∑d
i=
n i
≤ (n/d)d
∑d
i=
n i
(d/n)i^ ≤ (n/d)d(1 + d/n)n^ < (ne/d)d.
This now lets state the generalization bound in terms of VC dimension.
Theorem. Let H be a class of indicator functions with VC dimension d and S = {zi}ni=1 drawn i.i.d. then with probability at least 1 − e−t/^8 (t > 0 ) for the empirical minimizer, fS ,
IEx,y I{fS (x) 6 =y} < n−^1
∑^ n
i=
I{fS (xi) 6 =yi} + 2
(8d log(8en/d) + t) n
Proof. From the proof of lemma we have
sup f ∈H
|D(f, S)| ≥
≤ (^84) n(H, S)e−n
(^2) / 8 ,
therefore since (^4) n(H, S) ≤
( (^) en d
)d , we have
sup f ∈H
|D(f, S)| ≥
( (^) en d
)d e−n
(^2) / 8 ,
and setting e−t/^8 = 8
( (^) en d
)d e−n
(^2) / 8 gives us
IEx,y I{fS (x) 6 =y} < n−^1
∑^ n
i=
I{fS (xi) 6 =yi} +
(8d log(8en/d) + t + 8 log 8) n
for n > 2 and d > 1 8 log 8 < 8 d log(en/d) so √ (8d log(8en/d) + t + 8 log 8) n
(8d log(8en/d) + t) n
which proves the theorem.
Theorem. For a class of indicator functions ERM the following are equivalent
(1) ERM is consistent (2) for all ε > 0
lim n→∞
8 log (^4) n(H) n
(3) the VC dimension v(H) is finite.
In this section we introduce Kolmogorov chaining which is a much more efficient way of constructing a cover. In the process we derive Dudley’s entropy integral. We first define an empirical norm.
96 S. MUKHERJEE, PROBABILISTIC MACHINE LEARNING
Definition. Given S = {x 1 , ..., xn} the empirical ` 2 norm is
ρS (f, g) =
n−^1
∑^ n
i=
(f (xi) − g(xi))^2
We can define a cover given the empirical norm
Definition. Given a hypothesis space H and the above norm, the covering number N (H, , ρS ) is the minimal number ∈ IN such that for every f ∈ H there exists functions {gi}i=1 such that
ρS (f, gi) ≤ for some i. The proof of the following theorem is identical to the proof of lemma 12.5.
Theorem. Given the square loss and H be a functions such that − 1 ≤ f (x) ≤ 1 , y ∈ [− 1 , 1] and S = {zi}ni=1 drawn i.i.d. then with probability at least 1 − e−t/^8 (t > 0 ) for the empirical minimizer, fS ,
IEx,y (fS (x) − y)^2 < n−^1
∑^ n
i=
(fS (xi) − yi)^2 +
(8 log N (H, ε/ 8 M, ρS ) + t) n
where N (H, ε/ 8 M, ρS ) is the empirical cover.
The key idea in the proof of both lemma 12.5 and the above theorem is that
IP(|D(f, S)| > ) ≤ 4 IP
n−^1
∑^ n
i=
σif (xi)
where
D(f, S) := IEx,y (f (x) − y)^2 − n−^1
∑^ n
i=
(f (xi) − yi)^2 ,
and σi is a Rademacher random variable. We now prove the chaining theorem.
Theorem. Given a hypothesis space H where for all f ∈ H − 1 ≤ f (x) ≤ 1 if we define
R(f ) = n−^1
∑^ n
i=
σif (xi),
then
IP
∀f ∈ H, R(f ) ≤
n
∫ (^) d(0,f )
0
log^1 /^2 P(H, ε, ρS )dε + 2^7 /^2 d(0, f )
u n
≥ 1 −e−u,
where P(H, ε, ρS ) is the empirical packing number and ∫ (^) d(0,f )
0
log^1 /^2 P(H, ε, ρS )dε
is Dudley’s entropy interal.
Proof. Without loss of generality we will assume that the zero function { 0 } is in H. We will construct a nested sets of functions
{ 0 } = H 0 ⊆ H 1 ⊆ H 2 ... ⊆ Hj ⊆ ...H. These subsets will have the following properties