26
V ARIABLE SELECTION WITH ERROR CONTROL : A NOTHER LOOK AT S TABILITY S ELECTION Richard Samworth University of Cambridge Joint work with Rajen Shah

Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

VARIABLE SELECTION WITH ERROR CONTROL:ANOTHER LOOK AT STABILITY SELECTION

Richard SamworthUniversity of Cambridge

Joint work with Rajen Shah

Page 2: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

What is Stability Selection?

Stability Selection (Meinshausen and Buhlmann, 2010) is a very generaltechnique designed to improve the performance of avariable selection algorithm.

It is based on aggregating the results of applying aselection procedure to subsamples of the data.

A particularly attractive feature of Stability Selection i sthe error control provided by an upper bound on theexpected number of falsely selected variables.

September 12, 2013- 2

Page 3: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

A general model for variable selection

Let Z1, . . . , Zn be i.i.d. random vectors. We think of theindices S of some components of Zi as being ‘signalvariables’, and others N as being ‘noise variables’.

E.g. Zi = (Xi, Yi), with covariate Xi ∈ Rp, response Yi ∈ R

and log-likelihood of the form

n∑

i=1

L(Yi,XTi β),

with β ∈ Rp. Then S = {k : βk 6= 0} and N = {k : βk = 0}.

Thus S ⊆ {1, . . . , p} and N = {1, . . . , p} \ S. A variableselection procedure is a statistic Sn := Sn(Z1, . . . , Zn)

taking values in the set of all subsets of {1, . . . , p}.

September 12, 2013- 3

Page 4: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

How does Stability Selection work?

For a subset A = {i1, . . . , i|A|} ⊆ {1, . . . , n}, write

S(A) := S|A|(Zi1 , . . . , Zi|A|).

Meinshausen and Buhlmann defined

Π(k) =

(

n

⌊n/2⌋

)−1∑

A⊆{1,...,n}|A|=⌊n/2⌋

1{k∈S(A)}.

Stability Selection fixes τ ∈ [0, 1] and selectsSSSn,τ = {k : Π(k) ≥ τ}.

September 12, 2013- 4

Page 5: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

Why subsets of size ⌊n/2⌋?

Both taking subsamples of size m and bootstrap(with-replacement) sampling are examples ofexchangeably weighted bootstrap schemes (Mason and Newton,

1992; Præstgaard and Wellner, 1993) .

The sum of the weights is n in both cases, and thevariance of each component of the bootstrap weights isVar Bin(n, 1/n) = 1− 1/n → 1.

For subsampling, the variance of each component isn/m− 1, which converges to 1 iff m/n → 1/2.

September 12, 2013- 5

Page 6: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

Error controlMeinshausen and Buhlmann (2010)

Assume that {1{k∈S⌊n/2⌋}: k ∈ N} is exchangeable, and

that S⌊n/2⌋ is not worse than random guessing:

E(|S⌊n/2⌋ ∩ S|)E(|S⌊n/2⌋ ∩N |)

≥ |S||N | .

Then, for τ ∈ (12 , 1],

E(|SSSn,τ ∩N |) ≤ 1

2τ − 1

(E|S⌊n/2⌋|)2p

.

September 12, 2013- 6

Page 7: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

Error control discussion

In principle, this theorem helps the practitioner choosethe tuning parameter τ . However:

• The theorem requires two conditions, and theexchangeability assumption is very strong

• There are too many subsets to evaluate SSSn,τ when

n ≥ 20

• The bound tends to be rather weak.

September 12, 2013- 7

Page 8: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

Complementary Pairs Stability SelectionShah and S. (2013)

Let {(A2j−1, A2j) : j = 1, . . . , B} be randomly chosenindependent pairs of subsets of {1, . . . , n} of size ⌊n/2⌋such that A2j−1 ∩A2j = ∅.

Define

ΠB(k) :=1

2B

2B∑

j=11{k∈S(Aj)}

,

and select SCPSSn,τ = {k : ΠB(k) ≥ τ}.

September 12, 2013- 8

Page 9: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

Worst case error control bounds

Let pk,n = P(k ∈ Sn). For θ ∈ [0, 1], let Lθ = {k : pk,⌊n/2⌋ ≤ θ}and Hθ = {k : pk,⌊n/2⌋ > θ}.

If τ ∈ (12 , 1], then

E|SCPSSn,τ ∩ Lθ| ≤

θ

2τ − 1E|S⌊n/2⌋ ∩ Lθ|.

Moreover, if τ ∈ [0, 12), then

E|NCPSSn,τ ∩Hθ| ≤

1− θ

1− 2τE|N⌊n/2⌋ ∩Hθ|.

September 12, 2013- 9

Page 10: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

Illustration and discussion

Suppose p = 1000, and q := E|S⌊n/2⌋| = 50. Then onaverage, CPSS with τ = 0.6 selects no more than aquarter of the variables that have below averageselection probability under S⌊n/2⌋.

• The theorem requires no exchangeability or randomguessing conditions

• It holds even when B = 1

• If exchangeability and random guessing conditions dohold, then we recover

E|SCPSSn,τ ∩N | ≤ 1

2τ − 1

(q

p

)

E|S⌊n/2⌋∩Lq/p| ≤1

2τ − 1

(q2

p

)

.

September 12, 2013- 10

Page 11: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

Proof

Let

ΠB(k) :=1

B

B∑

j=1

1{k∈S(A2j−1)}

1{k∈S(A2j)},

and note that E{ΠB(k)} = p2k,⌊n/2⌋. Now

0 ≤ 1

B

B∑

j=1

{

1−1{k∈S(A2j−1)}

}{

1−1{k∈S(A2j)}

}

= 1−2ΠB(k)+ΠB(k).

Thus

P{ΠB(k) ≥ τ} ≤ P{

12(1 + ΠB(k)) ≥ τ

}

= P{ΠB(k) ≥ 2τ − 1}

≤ 1

2τ − 1p2k,⌊n/2⌋.

September 12, 2013- 11

Page 12: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

Proof 2

Note that

E|S⌊n/2⌋ ∩ Lθ| = E

(

k:pk,⌊n/2⌋≤θ

1{k∈S⌊n/2⌋}

)

=∑

k:pk,⌊n/2⌋≤θ

pk,⌊n/2⌋.

It follows that

E|SCPSSn,τ ∩ Lθ| = E

(

k:pk,⌊n/2⌋≤θ

1{k∈SCPSSn,τ }

)

=∑

k:pk,⌊n/2⌋≤θ

P(k ∈ SCPSSn,τ )

≤ 1

2τ − 1

k:pk,⌊n/2⌋≤θ

p2k,⌊n/2⌋ ≤θ

2τ − 1E|S⌊n/2⌋ ∩ Lθ|.

September 12, 2013- 12

Page 13: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

Bounds with no assumptions whatsoever

If Z1, . . . , Zn are not identically distributed, the samebound holds, provided in Lθ we redefine

pk,⌊n/2⌋ =

(

n

⌊n/2⌋

)−1∑

|A|=n/2

P{k ∈ S⌊n/2⌋(A)}.

Similarly, if Z1, . . . , Zn are not independent, the samebound holds, with p2k,⌊n/2⌋ as the average of

P{k ∈ S⌊n/2⌋(A1) ∩ S⌊n/2⌋(A2)}

over all complementary pairs A1, A2.

September 12, 2013- 13

Page 14: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

Can we improve on Markov’s inequality?

September 12, 2013- 14

Page 15: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

Improved bound under unimodality

Suppose that the distribution of ΠB(k) is unimodal foreach k ∈ Lθ. If τ ∈ {1

2 + 1B , 12 + 3

2B , 12 +2B , . . . , 1}, then

E|SCPSSn,τ ∩ Lθ| ≤ C(τ,B) θ E|S⌊n/2⌋ ∩ Lθ|,

where, when θ ≤ 1/√3,

C(τ,B)=

1

2(2τ − 1− 1/2B)if τ ∈ (min(12 + θ2, 12 + 1

2B + 34θ

2), 34 ]

4(1− τ + 1/2B)

1 + 1/Bif τ ∈ (34 , 1].

September 12, 2013- 15

Page 16: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

Extremal distribution under unimodality

September 12, 2013- 16

Page 17: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

The r-concavity constraint

r-concavity provides a continuum of constraints thatinterpolate between unimodality and log-concavity.

A non-negative function f on an interval I ⊂ R isr-concave with r < 0 if for every x, y ∈ I and λ ∈ (0, 1),

f(λx+ (1− λ)y) ≥ {λf(x)r + (1− λ)f(y)r}1/r;

equivalently iff f r is convex. A pmf f on {0, 1/B, . . . , 1} isr-concave if the linear interpolant to{(i, f(i/B)) : i = 0, 1, . . . , B} is r-concave. The constraintbecomes weaker as r increases to 0.

September 12, 2013- 17

Page 18: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

Further improvements under r-concavity

Suppose ΠB(k) is r-concave for all k ∈ Lθ. Then forτ ∈ (12 , 1],

E|SCPSSn,τ ∩ Lθ| ≤ D(θ2, 2τ − 1, B, r)|Lθ |,

where D can be evaluated numerically.

Our simulations suggest r = −1/2 is a safe and sensiblechoice.

September 12, 2013- 18

Page 19: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

Extremal distribution under r-concavity

September 12, 2013- 19

Page 20: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

r = −1/2 is sensible

September 12, 2013- 20

Page 21: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

Reducing the threshold τ

Suppose ΠB(k) is −1/2-concave for all k ∈ Lθ, and thatΠB(k) is −1/4-concave for all k ∈ Lθ. Then

E|SCPSSn,τ ∩Lθ| ≤ min{D(θ2, 2τ−1, B,−1/2),D(θ, τ, 2B,−1/4)}|Lθ |,

for all τ ∈ (θ, 1]. (We take D(·, t, ·, ·) = 1 for t ≤ 0.)

September 12, 2013- 21

Page 22: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

Improved boundsE

rror

bou

nds

0.4 0.5 0.6 0.7 0.8 0.9 1.0

05

1015

τ

September 12, 2013- 22

Page 23: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

Simulation study

Linear model Yi = XTi β + ǫi with Xi ∼ Np(0,Σ). Take Σ

Toeplitz with Σij = ρ||i−j|−p/2|−p/2. Let β have sparsity s,with s/2 equally spaced within [−1,−0.5] and s/2 equallyspaced in [0.5, 1]. Fix n = 200, p = 1000.

Use Lasso and seek E|SCPSSn,τ ∩ Lq/p| ≤ l. Fix q =

√0.8lp

and for worst-case bound choose τ = 0.9. Choose τ fromr-concave bound, oracle τ∗, and oracle λ∗ for Lasso Sλ∗

n .Compare

E|SCPSSn,0.9 ∩ S|

E|SCPSSn,τ∗ ∩ S|

,E|SCPSS

n,τ ∩ S|E|SCPSS

n,τ∗ ∩ S|and

E|Sλ∗

n ∩ S|E|SCPSS

n,τ∗ ∩ S|.

September 12, 2013- 23

Page 24: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

Simulation results1

0

1/4

1/2

3/4

1

1

SNRsρ

0.540

1 0.58

1 0.54

0.5

1 2 0.58

1 2 0.54

0.75

1 2 0.58

1 2 14

0.9

2 18

2

2

0

1/4

1/2

3/4

1

2

September 12, 2013- 24

Page 25: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

Summary

• CPSS can be used in conjunction with any variableselection procedure.

• We can bound the average number of low selectionprobability variables chosen by CPSS under noconditions on the model or original selectionprocedure

• Under mild conditions, e.g. r-concavity, the boundscan be strengthened, yielding tight error control.

• This allows the practitioner to choose the threshold τ

in an effective way.

September 12, 2013- 25

Page 26: Richard Samworth University of Cambridge Joint work with ......exchangeably weighted bootstrap schemes (Mason and Newton, 1992; Præstgaard and Wellner, 1993). The sum of the weights

R. J. Samworth Stability Selection

References

• Mason, D. M. and Newton, M. A. (1992) A rank statistics approa ch to the consistency of a general

bootsrap, Ann. Statist., 20, 1611–1624.

• Meinshausen, N. and Buhlmann, P. (2010) Stability selecti on, J. Roy. Statist. Soc., Ser. B (with

discussion), 72, 417–473.

• Præstgaard, J. and Wellner, J. A. (1993) Exchangeably weigh ted bootstraps of the general empirical

process, Ann. Probab., 21, 2053–2086.

• Shah, R. D. and Samworth, R. J. (2013) Variable selection wit h error control: Another look at Stability

Selection, J. Roy. Statist. Soc., Ser. B, 75, 55–80.

September 12, 2013- 26