• No results found

Lecture 12: Variable Selection - Beyond LASSO. Hao Helen Zhang

N/A
N/A
Protected

Academic year: 2021

Share "Lecture 12: Variable Selection - Beyond LASSO. Hao Helen Zhang"

Copied!
40
0
0

Loading.... (view fulltext now)

Full text

(1)

Lecture 12: Variable Selection - Beyond LASSO

(2)

Extension of LASSO

To achieve oracle properties,

Lq penalty with 0 < q < 1, SCAD penalty (Fan and Li 2001;

Zhang et al. 2007).

Adaptive LASSO (Zou 2006; Zhang and Lu 2007; Wang et al. 2007) Jλ(β) = λ p X j =1 wj|βj|.

Nonnegative garotte (Breiman, 1995)

To handle correlated predictors,

Elastic net (Zou and Hastie 2005), adaptive elastic net

Jλ= p

X

j =1

[λ|βj| + (1 − λ)βj2], λ ∈ [0, 1].

OSCAR (Bondell and Reich, 2006)

(3)

For group variable selection,

group LASSO (Yuan and Lin 2006) supnorm penalty (Zhang et al. 2008)

For nonparametric (nonlinear) models

LBP (Zhang et al. 2004),

COSSO (Lin and Zhang 2006; Zhang 2006; Zhang and Lin 2006)

(4)

Various Penalty Functions

−4 −2 0 2 4 0 1 2 3 4 L_0 Loss x |x|_0 −4 −2 0 2 4 0 1 2 3 4 L_0.5 loss x |x|_1 −4 −2 0 2 4 0 1 2 3 4 L_1 loss x |x|_0.5 −4 −2 0 2 4 0 1 2 3 4 SCAD Loss(lambda=0.8,a = 3) x p(|x|)

(5)

About L

q

Penalty Methods

q = 0 corresponds variable selection, the penalty is the number of nonzero coefficients or model size

For q ≤ 1, more weights imposed on the coordinate directions q = 1 is the smallest q such that the constraint region is convex

(6)

Motivations:

LASSO imposes the same penalty on the coefficients Ideally, small penalty should be applied to large coefficients (for small bias), while large penalty applied to small coefficients (for better sparsity)

LASSO is not an oracle procedure Methods with oracle properties include:

SCAD, weighted lasso, adaptive lasso, nonnegative garrote, etc.

(7)

What is A Good Penalty

A good penalty function should lead to the estimator “nearly” unbiased

sparsity: threshold small coefficients to zero (reduced model complexity)

continuous in data, robust against small perturbation) How to make these happen? (Fan and Li 2002)

sufficient condition for unbiasedness: J0(|β|) = 0 for large |β| (penalty bounded by a constant).

necessary and sufficient condition for sparsity: J(|β|) is singular at 0

Most of the oracle penalties are concave, suffering from multiple local minima numerically.

(8)

Smoothly Clipped Absolute Deviation Penalty

pλ(β) =        λ|β| if |β| ≤ λ,

−(|β|2−2aλ|β|+λ2(a−1) 2) if λ < |β| ≤ aλ, (a+1)λ2

2 if |β| > aλ,

where a > 2 and λ > 0 are tuning parameters.

A quadratic spline function with two knots at λ and aλ. singular at the origin; continuous first-order derivative. constant penalty on large coefficients; not convex

(9)

SCAD Penalty

−2 −1 0 1 2 0.0 0.1 0.2 0.3 0.4 w L(w)

(10)

Computational Issues

The SCAD penalty is not convex

Local Quadratic Approximation (LQA; Fan and Li, 2001) Local Linear Approximation (LLA; Zou and Li, 2008)

(11)

Nonnegative Garotte

Breiman (1995): solve minc1,··· ,cp ky − p X j =1 xjβˆjolscjk2+ λn p X j =1 cj subject to cj ≥ 0, j = 1, · · · , p,

and denote the solution as ˆcj’s. The garotte solution ˆ

βjgarotte = ˆcjβˆjols, j = 1, · · · , p.

A sufficiently large λn shrinks some cj to exact 0 ( sparsity) The nonnegative garotte estimate is selection consistent. See also Yuan and Lin (2005).

(12)

Adaptive LASSO

Proposed by Zou (2006), Zhang and Lu (2007), Wang et al. (2007)

b

βalasso = arg min

β ky − X βk 2+ λ p X j =1 wj|βj|, where wj ≥ 0 for all j.

Adaptive choices of weights

The weights are data-dependent and adaptively chosen from the data.

Large coefficients receive small weights (and small penalties) Small coefficients receive large weights (and penalties)

(13)

How to Compute Weights

Need some good initial estimates ˜βj’s.

In general, we require ˜βj’s to be root-n consistent The weights are calculated as

wj = 1 | ˜βj|γ

, j = 1, · · · , p. γ > 0 is another tuning parameter.

For example, ˜βj’s can be chosen as bβ ols

.

Alternatively, if collinearity is a concern, one can use bβridge. As the sample size n grows,

the weights for zero-coefficient predictors get inflated (to ∞); the weights for nonzerocoefficient predictors converge to a finite constant.

(14)

Oracle Properties of Adaptive LASSO

Assume the first q variables are important. And 1 nX T n Xn→ C = C11 C12 C21 C22  , where C is a positive definite matrix.

Assume the initial estimators ˜β are root-n consistent. Suppose λn/

n → 0 and λnn(γ−1)/2 → ∞. Consistency in variable selection:

lim n P( ˆAn= A0) = 1, where ˆAn= {j : ˆβj ,nalasso 6= 0}. Asymptotic normality: √ n(bβalasson − βA 0,0) →d N(0, σ 2C−1 11 ).

(15)

Additional Comments

The oracle properties are closely related to the super-efficiency phenomenon (Lehmann and Casella 1998).

Adaptive lasso simultaneously unbiasedly (asymptotically) estimate large coefficients and small threshold estimates. The adaptive lasso uses the same rational behind SCAD.

(16)

Computational Advantages of Adaptive LASSO

The adaptive lasso

has continuous solutions (continuous in data) is a convex optimization problem

can be solved by the same efficient algorithm LARS to obtain the entire solution path.

By contrast,

The bridge regression (Frank and Friedman 1993) uses the Lq

penalty.

The bridge with 0 < q < 1 has the oracle properties (Knight and Fu, 2000), but the bridge with q < 1 solution is not continuous. (See the picture)

(17)

Fit Adaptive LASSO using LARS algorithm

Algorithm:

1 Define x∗∗

j = xj/wj for j = 1, · · · , p.

2 Solve the lasso problem for all λn,

b β∗∗= arg min β ky − p X j =1 x∗∗j βjk2+ λn p X j =1 |βj|. 3 Output ˆ βjalasso = ˆβj∗∗/wj, j = 1, · · · , p.

The LARS algorithm is used to compute the entire solution path of the lasso in Step 2.

The computational cost is of order O(np2), which is the same order of computation of a single OLS fit.

(18)
(19)

Connection of Nonnegative Garotte and Adaptive LASSO

Let γ = 1. The garotte can be reformulated as

minβ ky − p X j =1 xjβjk2+ λn p X j =1 |βj| | ˆβjols| subject to βjβˆjols ≥ 0, j = 1, · · · , p,

The nonnegative garotte can be regarded as the adaptive lasso (γ = 1) with additional sign constraint.

Zou (2006) showed that, if λ → ∞ and λn/

n → 0, then then the nonnegative garotte is consistent for variable selection consistent.

(20)

Adaptive LASSO for Generalized Linear Models (GLMs)

Assume the data has the density of the form

f (y |x, θ) = h(y ) exp(y θ − φ(θ)), θ = xTβ,

which belongs the exponential family with canonical parameter θ. The adaptive lasso solves the penalized log-likelihood

b

βalasson = arg min β n X i =1  −yi(xTi β) + φ(xTi β)+ λn p X j =1 wj|βj|, where wj = 1/| ˆβjmle|γ, j = 1, · · · , p, ˆ βmle

(21)

Adaptive LASSO for GLMs

For logistic regression, the adaptive lasso solves

b

βalasson = arg min β n X i =1  −yi(xTi β) + log(1 + exTi β)  + λn p X j =1 wj|βj|.

For Poisson log-linear regression models, the adaptive lasso solves

b

βalasson = arg min β n X i =1  −yi(xTi β) + exp(xTi β)  + λn p X j =1 wj|βj|.

Zou (2006) show that, under some mild regularity conditions, b

βalasson enjoys oracle properties if λn is chosen appropriately. The limiting covariance matrix of bβalasson is I11, the Fisher information with the true sub-model known.

(22)

Adaptive LASSO for High Dimensional Linear Regression

Huang, Ma, and Zhang (2008) considers the case p → ∞ as n → ∞. If a reasonable initial estimator is available, they show

Under appropriate conditions, bβalasso is consistent in variable selection, and the nonzero coefficient estimators have the same asymptotic distribution they would have if the true model were known (oracle properties)

Under a partial orthogonality condition, i.e., unimportant covariates are weakly correlated with important covariates, marginal regression can be used to obtain the initial estimator and assures the oracle property of bβalasso even when p > n. For example, margin regression initial estimates work in the essentially uncorrelated case

(23)

Correlated Predictors

Motivations:

If p > n or p  n, the lasso can select at most n variables before it saturates, because of the nature of the convex optimization problem.

If there exist high pairwise correlations among predictors, lasso tends to select only one variable from the group and does not care which one is selected.

For usual n > p situations, if there are high correlations between predictors, it has been empirically observed that the prediction performance of the lasso is dominated by ridge regression (Tibshirani, 1996).

(24)

Motivations of Elastic Net

A typical microarray data set has many thousands of predictors (genes) and often fewer than 100 samples.

Genes sharing the same biological ‘pathway’ tend to have high correlations between them (Segal and Conklin, 2003).

The genes belonging to a same pathway form a group. The ideal gene selection method should do two things:

eliminate the trivial genes

automatically include whole groups into the model once one gene among them is selected (‘grouped selection’).

(25)

Elastic net

Zou and Hastie (2005) combine the lasso and the ridge b

β = arg min

β ky − X βk

2+ λ

2kβk2+ λ1kβk1.

The l1 part of the penalty generates a sparse model. The quadratic part of the penalty

removes the limitation on the number of selected variables; encourages grouping effect;

stabilizes l1 regularization path.

The new estimator is called Elastic Net. The solution is b

βenet = (1 + λ2)bβ, which removes the double shrinkage effect.

(26)

Elastic Net Regularization

The elastic net penalty function

has singularity at the vertex (necessary for sparsity) has strict convex edges (encouraging grouping) Properties: the elastic net solution

simultaneously does automatic variable selection and continuous shrinkage

can select groups of correlated variables, retaining ‘all the big fish’.

The elastic net often outperforms the lasso in terms of prediction accuracy in numerical results.

(27)
(28)

Strictly Convex Penalty vs LASSO penalty

Consider b β = arg min β ky − X βk 2+ λJ(β), where J(β) > 0 for β 6= 0. Assume xi = xj, i , , j ∈ {1, · · · , p}.

If J is strictly convex, then ˆβi = ˆβj for any λ > 0. If J(β) = kβk1, then ˆβiβˆj > 0, and bβ ∗ is another minimzer, where ˆ βk∗ =      ˆ βk if k 6= i , k 6= j , ( ˆβi + ˆβj) · s if k = i , ( ˆβi + ˆβj) · (1 − s) if k = j , for any s ∈ [0, 1].

(29)

Comments

There is a clear distinction between strictly convex penalty functions and the lasso penalty.

Strict convexity guarantees the grouping effect in the extreme situation with identical predictors.

In contrast the lasso does not even have a unique solution. The elastic net penalty with λ2> 0 is strictly convex, thus enjoying the grouping effect.

(30)

Results on the Grouping Effect

Given data (y, X ) and parameters (λ1, λ2), the response y is centred and the predictors X are standardized. Let bβenet(λ1, λ2) be the elastic net estimate. Suppose

ˆ βenet i (λ1, λ2) ˆβjenet(λ1, λ2) > 0, then 1 kyk1 | ˆβienet(λ1, λ2) − ˆβjenet(λ1, λ2)| < √ 2 λ2 p1 − ρij, where ρij = xTi xj is the sample correlation.

The closer to 1 ρij is, the more grouping in the solution. The larger λ2 is, the more grouping in the solution.

(31)

Effective Degrees of Freedom

Effective df describes the model complexity.

df is very useful in estimating the prediction accuracy of the fitted model.

df is well studied for linear smoothers: ˆy = S y, and df (ˆy) = tr (S ).

For the l1 related methods, the non-linear nature makes the analysis difficult.

(32)

Elastic net: degrees of freedom

For the elastic net, an unbiased estimate for df is c

df (bβenet) = Tr(Hλ2(A)),

where A = {j : ˆβenetj 6= 0, j = 1, · · · , p} is the active set (containing all the selected variables), and

Hλ2(A) = XA(X T

AXA+ λ2I )−1XAT.

Special case for the lasso: λ2= 0 and c

(33)

Computing and Tuning Elastic Net

Solution path algorithm:

The elastic net solution path is piecewise linear.

Given a fixed λ2, a stage-wise algorithm called LARS-EN efficiently solves the entire elastic net solution path.

The computational effort is same as that of a single OLS fit. R package: elasticnet

(34)

Adaptive Elastic Net

Zou and Zhang (2009) propose

b

βaenet = (1 + λ2) arg min

β ky − X βk 2+ λ 2kβk2+ λ1 p X j =1 wj|βj|,

where wj = (| ˆβjenet|)−γ for j = 1, · · · , p and γ > 0 is a constant. Main results:

Under weak regularity conditions, the adaptive elastic-net has the oracle property.

Numerically, the adaptive elastic-net deals with the collinearity problem better than the other oracle-like methods and has better finite sample performance.

(35)

Motivation of Group Lasso

The problem of group selection arises naturally in many practical situations. For example, In multifactor ANOVA,

each factor has several levels and can be expressed through a group of dummy variables;

the goal is to select important main effects and interactions for accurate prediction, which amounts to the selection of groups of derived input variables.

Variable selection amounts to the selection of important factors (groups of variables) rather than individual derived variables.

(36)

Another Motivation: Nonparametric Regression

Additive Regression Models

Each component in the additive model may be expressed as a linear combination of a number of basis functions of the original measured variable.

The selection of important measured variables corresponds to the selection of groups of basis functions.

Variable selection amount to the selection of groups of basis functions (corresponding to a same variable).

(37)

Group Selection Setup

Consider the general regression problem with J factors:

y = J X j =1 Xjβj + , y is an n × 1 vector  ∼ N(0, σ2I )

Xj is an n × pj matrix corresponding to the j th factor βj is a coefficient vector of size pj, j = 1, . . . , J.

Both y and Xj’s are centered. Each Xj is orthonormalized, i.e., XjTXj = Ipj, j = 1, ..., J,

which can be done through Gramˆa€“Schmidt orthonormalization.

(38)

Group LASSO

Yuan and Lin (2006) propose

b

βglasso = arg min

β ky − J X j =1 Xjβjk2+ λ J X j =1 √ pjkβjk, where λ ≥ 0 is a tuning parameter.

jk =qβTj βj is the empirical L2 norm.

The group lasso penalty encourages sparsity at the factor level. When p1= · · · = pJ = 1, the group lasso reduces to the lasso.

(39)

Degree of Freedom for Group LASSO

c df = J X j =1 I (kbβglassoj k > 0) + J X j =1 kbβglassoj k kbβolsj k (pj− 1). λ ≥ 0 is a tuning parameter.

The group lasso penalty encourages sparsity at the factor level. When p1= · · · = pJ = 1, the group lasso reduces to the lasso.

(40)

Motivation of Adaptive Group LASSO

The group lasso suffers estimation inefficiency and selection inconsistency. To remedy this, Wang and Leng (2006) propose

b

βaglasso = arg min

β ky − J X j =1 Xjβjk2+ λ J X j =1 wjkβjk,

The weight wj = k ˜βjk−γ for all j = 1, · · · , J.

The adaptive group LASSO has oracle properties. In other words, bβaglasso is root-n consistency, model selection consistency, asymptotically normal and efficient.

References

Related documents

We invite unpublished novel, original, empirical and high quality research work pertaining to the recent developments &amp; practices in the areas of Com- puter Science &amp;

12) DOD Net-Centric Data Management Strategy, V14, March 4, 2003. 13) OMB’s Role in Overseeing Information Quality, John D. 14) Agency Draft Information Quality Guidelines, John D.

How has the management of academic resource list changed, what are library management systems vendors offering and how are resource lists being handled in a

More than 41 percent of store managers for sales leaders spend only an hour per week on workforce management issues, while less than 10 percent of average performers can manage

Commenters noted concern for language which stated that other audit costs were allowable if included in an approved cost allocation plan or an indirect cost proposal, or if it was

6) Calculate thermistor resistance value by voltage divider rule (using Vref, Vtherm, Ref resistance values). 7) Compare thermistor resistance value with values in look up table to

spent answering ACD calls during the specified interval. Avg Sign-in Time The average time in minutes and seconds that an agent. took to sign in to a Call Centre. Avg Wrap-Up Time

You are responsible for your transportation costs, including international and domestic flights, all domestic travel including arrival to the Piro Research Center or Greg