Docsity

Notes on Optimistic VC Inequality, Lecture notes of Mathematics

Toggle sidebar
bg1
Lecture 11 Optimistic VC inequality. 18.465
Last time we proved the Pessimistic VC inequality:
P sup
C
1
n
n
X
i=1
I(Xi∈C)−P(C)≥t!≤42en
VV
e−nt2
8,
which can be rewritten with
t=s8
nlog 4 + Vlog 2en
V+u
as
P sup
C
1
n
n
X
i=1
I(Xi∈C)−P(C)≤s8
nlog 4 + Vlog 2en
V+u!≥1−e−u.
Hence, the rate is qVlog n
n. In this lecture we will prove Optimistic VC inequality, which
will improve on this rate when P(C) is small.
As before, we have pairs (Xi, Yi), Yi=±1. These examples are labeled according to some
unknown C0such that Y= 1 if X=C0and Y= 0 if X /∈C0.
Let C={C:C⊆ X}, a set of classifiers. Cmakes a mistake if
X∈C\C0∪C0\C=C△C0.
Similarly to last lecture, we can derive bounds on
sup
C
1
n
n
X
i=1
I(Xi∈C△C0)−P(C△C0)
,
where P(C△C0) is the generalization error.
Let C′={C△C0:C∈ C}. One can prove that V C(C′)≤V C(C) and △n(C′, X1,...,Xn)≤
△n(C, X1,...,Xn).
By Hoeffding-Chernoff, if P(C)≤1
2,
P P(C)−1
n
n
X
i=1
I(Xi∈C)≤r2P(C)t
n!≥1−e−t.
Theorem 11.1 (Optimistic VC inequality).
P sup
C
P(C)−1
nPn
i=1 I(Xi∈C)
pP(C)≥t!≤42en
VV
e−nt2
4.
1
pf3
pf4

Partial preview of the text

Download Notes on Optimistic VC Inequality and more Lecture notes Mathematics in PDF only on Docsity!

Last time we proved the Pessimistic VC inequality:

P

sup C

n

∑^ n i=

I(Xi ∈ C) − P (C)

∣ ≥^ t

( 2 en V

)V

e−^ nt 82 ,

which can be rewritten with

t =

n

log 4 + V log^2 Ven + u

as

P

sup C

n

∑^ n i=

I(Xi ∈ C) − P (C)

n

log 4 + V log^2 Ven + u

≥ 1 − e−u.

Hence, the rate is

√V log n n.^ In this lecture we will prove Optimistic VC inequality, which will improve on this rate when P (C) is small. As before, we have pairs (Xi, Yi), Yi = ±1. These examples are labeled according to some unknown C 0 such that Y = 1 if X = C 0 and Y = 0 if X /∈ C 0. Let C = {C : C ⊆ X }, a set of classifiers. C makes a mistake if

X ∈ C \ C 0 ∪ C 0 \ C = C△C 0.

Similarly to last lecture, we can derive bounds on

sup C

n

∑^ n i=

I(Xi ∈ C△C 0 ) − P (C△C 0 )

where P (C△C 0 ) is the generalization error. Let C′^ = {C△C 0 : C ∈ C}. One can prove that V C(C′) ≤ V C(C) and △n(C′, X 1 ,... , Xn) ≤ △n(C, X 1 ,... , Xn). By Hoeffding-Chernoff, if P (C) ≤ 12 ,

P

P (C) − (^1) n

∑^ n i=

I(Xi ∈ C) ≤

2 P (C) t n

≥ 1 − e−t.

Theorem 11.1 (Optimistic VC inequality).

P

sup C^ P^ (C)^ −^

(^1) n^ ∑ni=1 I(Xi ∈ C) √ P (C) ≥^ t

( 2 en V

)V

e−^ nt 42 .

Proof. Let C be fixed. Then

P(X i′)

n

∑^ n i=

I(X i′ ∈ C) ≥ P (C)

whenever P (C) ≥ (^1) n. Indeed, P (C) ≥ (^1) n since ∑ni=1 I(X i′ ∈ C) ≥ nP (C) ≥ 1. Otherwise P (∑ni=1 I(X i′ ∈ C) = 0) = ∏ni=1 P (X i′ ∈/ C) = (1 − P (C))n^ can be as close to 0 as we want. Similarly to the proof of the previous lecture, let

(Xi) ∈

sup C^ P^ (C)^ −^ n^1 ∑ni=1^ I(Xi^ ∈^ C) √P (C) ≥ t

Hence, there exists CX such that

P (C) − (^1) n √^ ∑ni=1 I(Xi ∈ C) P (C) ≥^ t.

Exercise 1. Show that if

P (CX ) − (^) √^1 n^ ∑ni=1 I(Xi ∈ CX ) P (CX ) ≥^ t

and 1 n

∑^ n i=

I(X i′ ∈ CX ) ≥ P (CX ) ,

then (^1) n^ ∑ni=1 I(X i′ ∈ CX ) − (^1) n^ ∑ni=1 I(Xi ∈ CX ) √ (^1) n

∑n i=1 I(Xi^ ∈^ CX^ ) +^ n^1

∑n i=1 I(X i′ ∈^ CX^ )

≥ √t 2.

Hint: use the fact that φ(s) = s√−sa = √s − √ss is increasing in s.

From the above exercise it follows that

1 4 ≤^ P(X^ i′^ )

n

∑^ n i=

I(X i′ ∈ CX ) ≥ P (CX )

≤ P(X i′ )

(^1) n^ ∑ni=1 I(X i′ ∈ CX ) − (^1) n^ ∑ni=1 I(Xi ∈ CX ) √ (^1) n

∑n i=1 I(Xi^ ∈^ CX^ ) +^ n^1

∑n i=1 I(X^ i′^ ∈^ CX^ )

≥ t

The last expression can be upper-bounded by Hoeffding’s inequality as follows:

E

∑^ N

k=

Pε

n

∑^ n i=

εi (I(X i′ ∈ Ck) − I(Xi ∈ Ck)) ≥ t

n

∑^ n i=

(I(Xi ∈ Ck) + I(X i′ ∈ Ck))

≤ E

∑^ N

k=

exp

−t

2 1 n^ ∑ni=1 (I(Xi ∈ Ck) + I(X i′ ∈ Ck)) n^12 2 ∑^ (I(X^ i′^ ∈^ Ck)^ −^ I(Xi^ ∈^ Ck))^2

since upper sum in the exponent is bigger than the lower sum (compare term-by-term)

≤ E

∑^ N

k=

e−^ nt^22 ≤

( (^2) en V

)V

e−^ nt^22.