Docsity

Columbia University Machine learning, Summaries of Microcomputers

Partial preview of the text

Download Columbia University Machine learning and more Summaries Microcomputers in PDF only on Docsity!

Risk estimation, model selection/averaging

COMS 4771

1. Risk estimation

Risk estimation

How good is a predictor f : X! Y? I (^) Risk of predictor f (for classification, using zero-one loss):

R(f ) = P(f (X) 6 = Y ).

(Also called error rate.) I (^) This quantity depends on unknown distribution of (X, Y ). I (^) Can we estimate R(f )?

Risk estimation as Bernoulli parameter estimation

Fix a single predictor f :^ X! Y, and consider iid model, where

(X 1 , Y 1 ),... , (X (^) n , Y (^) n ), (X, Y ) are iid.

Define T (^) i := 1 {f (X (^) i ) 6 = Y (^) i } for i = 1,... , n. Random variables T 1 ,... , T (^) n are iid { 0 , 1 }-valued random variables, each with

mean E

T (^) i

= P(f (X) 6 = Y ) = R(f ) i.e., T 1 ,... , T (^) n ⇠ (^) iid Bern(R(f )). Can estimate R(f ) from T 1 ,... , T (^) n.

Illustration

Let S := T 1 + · · · + T (^) n , where T 1 ,... , T (^) n ⇠ (^) iid Bern(1/3).

exp( RE(u, p)) ⇡ 0. 995

What is P(S u · n) for u = 1/3 + 0. 05?

Illustration

Pr[S=k]

Illustration

Pr[S=k]

Pr[S=k]

Illustration

(^0 100 200 300) k 400 500 600

Pr[S=k]

0

p = 1/ 3 , u = 1/3 + 0. 05 , n = 600 exp( RE(u, p)) ⇡ 0. 995

Illustration

(^0 100 200 300) k 400 500 600 700

Pr[S=k]

p = 1/ 3 , u = 1/3 + 0. 05 , n = 700 exp( RE(u, p)) ⇡ 0. 995

Illustration

(^0 100 200 300 400) k 500 600 700 800 900

Pr[S=k]

p = 1/ 3 , u = 1/3 + 0. 05 , n = 900 exp( RE(u, p)) ⇡ 0. 995

Illustration

(^0 200 400) k 600 800 1000

Pr[S=k]

p = 1/ 3 , u = 1/3 + 0. 05 , n = 1000 exp( RE(u, p)) ⇡ 0. 995

Easier-to-interpret bound

Pinsker’s inequality: RE(q, p) 2(q p) 2. Therefore,

P (ˆp  p ")  exp

n · RE(p ", p)

 exp

n · 2 " 2

The probability bound exp(n · 2 " 2 ) equals 0. 01 when

r ln(100) 2 n

⇡ p^1.^5 n

Therefore, with 99% probability,

ˆp p

r ln(100) 2 n

Similarly, with 99% probability,

ˆp  p +

r ln(100) 2 n

Conclusion: pˆ very likely to be within 1. 5 /

p n of p.

Likely bound on deviations

More general bound: For any 2 (0, 1 /2),

P |pˆ p| 

r ln(1/) 2 n

The

p ln(1/)/(2n) is a conservative bound, intended mainly to be human-interpretable. Better to directly use binomial distribution to get accurate numerical bounds.