Outlier Detection Using Nonconvex Penalized Regression

Yiyuan She, Art B. Owen

Introduction

Outliers are a pervasive problem in statistical data analysis. Nonrigorously, outliers refer to one or more observations that are different from the bulk of the data. ? estimate that a routine data set may contain about 1-10% (or more) outliers. Unfortunately, outliers often go unnoticed [Roussbook], although they may have serious effects in estimation, inference, and model selection [weisb]. Perhaps the most popular statistical modeling method is ordinary least squares (OLS) regression. OLS is very sensitive to outliers — a single unusual observation may break it down completely. Our goal in this work is outlier identification for regression models, together with robust coefficient estimation.

Suspected outliers are most commonly found by looking at residuals ri=yi−xiTβ^r_{i}=y_{i}-{\boldsymbol{x}}_{i}^{\mathsf{T}}\hat{\boldsymbol{\beta}} where β^\hat{\boldsymbol{\beta}} is the OLS estimate of β{\boldsymbol{\beta}}. It is well-known that such raw residuals can fail to detect outliers at leverage points. A better way to detect an outlier is the leave-one-out approach [weisb]. If the ii’th case is suspected to be an outlier, then we compute the externally studentized residual

where X(i){\boldsymbol{X}}_{(i)}, β^(i)\hat{\boldsymbol{\beta}}_{(i)} and σ^(i)\hat{\sigma}_{(i)} are the predictor matrix, coefficient estimate and scale estimate respectively, based on n−1n-1 observations, leaving out the ii’th. Large values ∣ti∣>η|t_{i}|>\eta are then taken to suggest that observation ii is an outlier. The threshold η=2.5\eta=2.5 [Roussbook] is a reasonable choice. If ϵ∼N(0,σ2I){\boldsymbol{\epsilon}}\sim{\mathcal{N}}(0,\sigma^{2}I) then ti∼t(n−p−1)t_{i}\sim t_{(n-p-1)} and we can even attach a significance level to ∣ti∣|t_{i}|. After removing an apparent outlier from the data, one then looks for others.

Studentized residuals, and other leave-one-out methods such as Cook’s distance and DFFITS, are simple and effective when there is only one outlier. When there are multiple outliers, these simple methods can fail. Two phenomena have been remarked on. In masking, when an outlying ii’th case has been left out, the remaining outliers cause either a large value of σ^(i)\hat{\sigma}_{(i)} or a small value of ∣yi−xiTβ^(i)∣|y_{i}-{\boldsymbol{x}}_{i}^{\mathsf{T}}\hat{\boldsymbol{\beta}}_{(i)}|, or both, and as a result observation ii does not look like an outlier. Therefore, multiple outliers may mask each other and go undetected. In swamping, the effect of outliers is to make ∣yi−xiTβ^(i)∣|y_{i}-{\boldsymbol{x}}_{i}^{\mathsf{T}}\hat{\boldsymbol{\beta}}_{(i)}| large for a non-outlying case ii. Swamping could lead one to delete good observations and becomes more serious in the presence of multiple outliers.

In this paper we take the studentized residual as our starting point. The tt-test for whether observation i′i^{\prime} is an outlier is the same as testing whether the parameter γ\gamma is zero in the regression y=Xβ+γ1i=i′+ϵ{\boldsymbol{y}}={\boldsymbol{X}}{\boldsymbol{\beta}}+\gamma 1_{i=i^{\prime}}+{\boldsymbol{\epsilon}}. Because we don’t know which observations might be outliers, we use a model

in which the parameter γi\gamma_{i} is nonzero when observation ii is an outlier. This formulation was earlier used by ? and ?. This mean-shift model allows any combination of observations to be outliers. It has n+pn+p regression parameters and only nn data points. Our approach is to fit (1.2) imposing sparsity on γ{\boldsymbol{\gamma}} in order to avoid the trivial estimate γ^=y\hat{\boldsymbol{\gamma}}={\boldsymbol{y}} and to get a meaningful estimate of β{\boldsymbol{\beta}}. The resulting algorithm is called thresholding (denoted by Θ\Theta) based iterative procedure for outlier detection, or Θ\Theta-IPOD for short.

All of our proposals (apart from one exception noted where it arises) require a preliminary robust regression to be run. This practice is in line with the best current robust regression methods. The preliminary regression supplies a robust estimate of β{\boldsymbol{\beta}}, and usually a robust estimate of σ\sigma as well. The robust regression methods that we compare to are known to outperform the preliminary regressions that they use as starting points. We will compare Θ\Theta-IPOD to those best performing methods.

The rest of the paper is organized as follows. Section 2 surveys the literature on robust regression. Section 3 develops the soft-IPOD algorithm which fits (1.2) using an L1L_{1} penalty on γ{\boldsymbol{\gamma}}. This algorithm minimizes a convex criterion, but it is not robust. Section 4 develops a family of algorithms replacing soft-thresholding by a general thresholding rule Θ\Theta. We find that some nonconvex criteria properly identify multiple outliers in some standard challenging test cases. Section 5 investigates the computational efficiency of Θ\Theta-IPOD in comparison to iteratively reweighted least squares (IRLS). IRLS requires a QR decomposition at each iteration, while Θ\Theta-IPOD needs only one. As a result, though possibly requiring more iterations, it is much faster in large problems that we investigate. In Section 6, we discuss the important problem of parameter tuning in outlier detection and carry out an empirical study to demonstrate the advantage of our penalized approach. Section 7 extends the technique to high-dimensional data with p>np>n. Our conclusions are in Section 8.

Survey of robust regression

Many methods have been developed for multiple outlier identification. Robust or resistant regressions, such as MM-estimators [Huberbook] and Least Trimmed Squares (LTS) [Roussbook], were proposed to provide a trustworthy coefficient estimate even in the presence of multiple outliers. There are also clustering-based procedures, such as ?, and some informal methods based on graphics. Multiple outlier detection procedures usually alternate between two steps. One step scans regression output (coefficient and variance estimates) to identify seemingly clean observations. The other fits a linear regression model to those clean observations. The algorithm can be initialized with OLS, but generally it is better to initialize it with something more robust.

If a data set contains more than one outlier, masking may occur and the task of outlier detection is much more challenging. Well-known examples of masking include the Belgian telephone data and the Hertzsprung-Russell star data [Roussbook], as well as some artificial datasets like the Hawkins-Bradu-Kass (HBK) data [HBK] and the Hadi-Simonoff (HS) data [HS]. The HS and HBK data sets both have swamping effects.

The main challenge in multiple outlier detection is to counter masking and swamping effects. ? describe two broad classes of algorithms — direct methods and indirect methods. The direct procedures include forward search algorithms [HS97, PY95, atki:rian:2000] and backward selection [menj:wels:2010] among others. Indirect methods are those that use residuals from a robust regression estimate to identify the outliers. Examples of indirect methods include Least Median of Squares (LMS) [lms], Least Trimmed Squares (LTS) [Roussbook], S-estimators [sest], MM-estimators [mmest], one-step GM estimators [*]*gmest and S1S estimators [s1s]. Almost all start with an initial high breakdown point estimate (not necessarily efficient) say from LTS, S, MTS [Nguyen2010], or ? (denoted by PY) fast procedure. Most published examples in the outlier detection literature are in 1010 or fewer dimensions. Methods with high breakdown point typically have costs that grow exponentially in the dimension. In practice, when there are a large number of predictors, PY can be applied to provide an initial estimate with certain robustness, although in theory its breakdown point property is not well established [PYfast].

It is worth mentioning that outlier identification and robust regression are two closely related but not quite identical problems [*]*Roussbook,Yohaibook. Even if we perfectly identified the regression coefficient vector, there could still be some overlap between the residual distributions for good and outlying points. That is, given the true regression coefficient β{\boldsymbol{\beta}} there would be type one and type two errors in trying to identify outliers. On the other hand, if we could perfectly identify all gross outliers, it is a relatively easy task to obtain a robust coefficient estimate, as will be supported by our experiments in Section 6.

Soft-IPOD

We will use the mean shift model (1.2) from the introduction which predicts y{\boldsymbol{y}} by the usual linear model Xβ{\boldsymbol{X}}{\boldsymbol{\beta}} plus an outlier term γ{\boldsymbol{\gamma}}. If γi=0\gamma_{i}=0 then the ii’th case is good, and otherwise it is an outlier. Our goals are to find a robust estimate of β{\boldsymbol{\beta}} as well as to estimate γ{\boldsymbol{\gamma}} thereby identifying which cases are outliers and which are not. We assume that γ{\boldsymbol{\gamma}} is sparse because outliers should not be the norm. We suppose at first that n>pn>p and that X=[x1,…,xn]T{\boldsymbol{X}}=[{\boldsymbol{x}}_{1},\dots,{\boldsymbol{x}}_{n}]^{\mathsf{T}} has full rank pp. Section 7 considers the case when β{\boldsymbol{\beta}} is sparse, too, with pp possibly greater than nn. Yet the majority of our paper focuses on the outlier problem only. Let H{\boldsymbol{H}} be the hat matrix defined by H=H(X)=X(XTX)−1XT{\boldsymbol{H}}={\boldsymbol{H}}({\boldsymbol{X}})={\boldsymbol{X}}({\boldsymbol{X}}^{\mathsf{T}}{\boldsymbol{X}})^{-1}{\boldsymbol{X}}^{\mathsf{T}}. The ii’th diagonal entry of H{\boldsymbol{H}}, denoted hih_{i}, is called the leverage of the ii’th observation.

The assumed sparsity of γ{\boldsymbol{\gamma}} motivates using an L1L_{1}-penalized regression to minimize

Although (3.1) is a well-formulated model and soft-IPOD is computationally efficient, in the presence of multiple outliers with moderate or high leverage values, this method fails to remove masking and swamping effects. Take the artificial HBK data as an illustration. Using a robust estimate σ^\hat{\sigma} from LTS, and λi=σ^2(1−hi)log⁡n\lambda_{i}=\hat{\sigma}\sqrt{2(1-h_{i})\log n}, we obtained γ^=[0,⋯ ,0,−8.6,−9.7,−7.6,−8.4,0,⋯ ,0]T\hat{\boldsymbol{\gamma}}=[0,\cdots,0,-8.6,-9.7,-7.6,-8.4,0,\cdots,0]^{\mathsf{T}} which identifies cases 11-14 as serious outliers, while the true γ{\boldsymbol{\gamma}} is [10,⋯ ,10,0,⋯ ,0]T[10,\cdots,10,0,\cdots,0]^{\mathsf{T}} with cases 1-10 being the actual outliers. This erroneous identification is not a matter of parameter tuning. Figure 1 plots the soft-IPOD solution over the relevant range for λ\lambda. Whatever value of λ\lambda we choose, cases 11-14 are sure to be swamped, and cases 1-10 are very likely to be masked. The L1L_{1} approach is not able to identify the correct outliers without swamping. Our extensive experience shows that this L1L_{1} technique hardly works for any benchmark dataset in the outlier detection literature. According to ?, a convex criterion is inherently incompatible with robustness.

Next we delineate the parallels between soft-IPOD and Huber’s M-estimate regression which is similarly non-robust. As pointed out by ? and ?, there is a connection between the L1L_{1}-penalized regression (3.1) and Huber’s MM-estimate. Huber’s loss function is

Huber’s method with concomitant scale estimation, minimizes

over β{\boldsymbol{\beta}} and σ\sigma jointly, where c≥0c\geq 0 and λ>0\lambda>0 are given constants. We can prove the following result, which is slightly more general than the version given by ? and ?.

For any c≥0c\geq 0 and λ>0\lambda>0 suppose that we minimize

over β{\boldsymbol{\beta}}, γ{\boldsymbol{\gamma}} and σ\sigma. Then the minimizing β{\boldsymbol{\beta}} and σ\sigma match those from minimizing Huber’s criterion (3.2). For any fixed σ>0\sigma>0 minimizing (3.3) over β{\boldsymbol{\beta}} and γ{\boldsymbol{\gamma}} yields the minimizer of (3.2) over β{\boldsymbol{\beta}}.

This connection is helpful to understand the inherent difficulty with L1L_{1}-penalized regression described earlier. It is well known that Huber’s method cannot even handle moderate leverage points well [Huberbook, p. 192] and is prone to masking and swamping in outlier detection. Its break-down point is 00.

A promising way to improve (3.1) is to adopt a different penalty function, possibly nonconvex. Our launching point in this paper is, however, the operator Θ\Theta in the above iterative algorithm. Substituting an appropriate Θ\Theta for soft-thresholding in the IPOD (see Algorithm 1), we may obtain a good estimator of γ{\boldsymbol{\gamma}} (and β{\boldsymbol{\beta}} as well).

Θ\Theta-IPOD

To deal with masking and swamping in the presence of multiple outliers, we consider the iterative procedure described in Section 3 using a general Θ\Theta operator, referred to as Θ\Theta-IPOD. A Θ\Theta-IPOD estimate is a limit point of (β(j),γ(j))({\boldsymbol{\beta}}^{(j)},{\boldsymbol{\gamma}}^{(j)}), denoted by (β^,γ^)(\hat{\boldsymbol{\beta}},\hat{\boldsymbol{\gamma}}). Somewhat surprisingly, simply replacing soft-thresholding by hard-thresholding (henceforth hard-IPOD) resolves the masking and swamping problem, for the challenging HBK example problem. After picking σ^\hat{\sigma} from LTS and using a zero start we obtained

and γ^11:75=0\hat{\boldsymbol{\gamma}}_{11:75}=\boldsymbol{0} which perfectly detects the true outliers. The coefficient estimate β^\hat{\boldsymbol{\beta}} from hard-IPOD directly gives the OLS estimate computed from the clean observations.

Some questions naturally arise: What optimization problem is Θ\Theta-IPOD trying to solve? For an arbitrary Θ\Theta, does Θ\Theta-IPOD converge at all? Or, under what conditions does Θ\Theta-IPOD converge? To answer these questions, we limit our discussions of Θ\Theta to thresholding rules.

We begin by defining the class of threshold functions we will study. It includes well-known thresholds such as soft and hard thresholding, SCAD, and Tukey’s bisquare.

A threshold function is a real valued function Θ(t;λ)\Theta(t;\lambda) defined for −∞<t<∞-\infty<t<\infty with λ\lambda as the parameter (0≤λ<∞0\leq\lambda<\infty) such that

Θ(t;λ)≤Θ(t′;λ)\Theta(t;\lambda)\leq\Theta(t^{\prime};\lambda) for t≤t′t\leq t^{\prime},

lim⁡t→∞Θ(t;λ)=∞\lim_{t\to\infty}\Theta(t;\lambda)=\infty, and

0≤Θ(t;λ)≤t0\leq\Theta(t;\lambda)\leq t for 0≤t<∞0\leq t<\infty.

In words, Θ(⋅;λ)\Theta(\cdot;\lambda) is an odd monotone unbounded shrinkage rule for tt, at any λ\lambda.

A vector version of Θ\Theta is defined componentwise if either tt or λ\lambda are replaced by vectors. When both tt and λ\lambda are vectors, we assume they have the same dimension.

Huber’s soft-thresholding rule corresponds to an absolute error, or L1L_{1} penalty. More generally, for any thresholding rule Θ(⋅;λ)\Theta(\cdot;\lambda), a corresponding penalty function P=PΘP=P_{\Theta} can be defined. There may be multiple penalty functions for a given threshold as demonstrated by hard thresholding (4.7) below. The following three-step construction finds the penalty with the smallest curvature [antrev, SheTISP]:

where u≥0u\geq 0 holds throughout (4.1). The constructed penalty PΘP_{\Theta} is nonnegative and is continuous in θ\theta.

Let Θ\Theta be a thresholding rule as given by Definition 4.1 and let PΘP_{\Theta} be the corresponding penalty defined in (4.1). Given λi≥0\lambda_{i}\geq 0, the objective function is defined by

where P(⋅;⋅)P(\cdot;\cdot) is any function satisfying P(θ;λ)−P(0;λ)=PΘ(θ;λ)+q(θ;λ)P(\theta;\lambda)-P(0;\lambda)=P_{\Theta}(\theta;\lambda)+q(\theta;\lambda) where q(⋅;λ)q(\cdot;\lambda) is nonnegative and q(Θ(θ;λ))=0q(\Theta(\theta;\lambda))=0 for all θ\theta. Then the Θ\Theta-IPOD iteration sequence (β(j),γ(j))({\boldsymbol{\beta}}^{(j)},{\boldsymbol{\gamma}}^{(j)}) satisfies

The function qq will often be zero, but we use non-zero qq below to demonstrate that multiple penalties (infinitely many, as a matter of fact) yield hard thresholding, including the L0L_{0}-penalty. Theorem 4.1 shows that Θ\Theta-IPOD converges. Any limit point of (β(j),γ(j))({\boldsymbol{\beta}}^{(j)},{\boldsymbol{\gamma}}^{(j)}) must be a stationary point of (4.2). Θ\Theta-IPOD also gives a general connection between penalized regression (4.2) and MM-estimators. Recall that an MM-estimator is defined to be a solution to the score equation

where λ\lambda is a general parameter of the ψ\psi function. Although β{\boldsymbol{\beta}} and σ\sigma can be simultaneously estimated by Huber’s Proposal 2 [Huberbook], a more common practice is to fix σ\sigma at an initial robust estimate and then optimize over β{\boldsymbol{\beta}} [Hampelbook]. Unless otherwise specified, we consider equation (4.4) as constraining β{\boldsymbol{\beta}} with σ\sigma fixed.

For any thresholding rule Θ(⋅;λ)\Theta(\cdot;\lambda), for any Θ\Theta-IPOD estimate (β^,γ^)(\hat{\boldsymbol{\beta}},\hat{\boldsymbol{\gamma}}), β^\hat{\boldsymbol{\beta}} is an MM-estimate associated with ψ\psi, as long as (Θ,ψ)(\Theta,\psi) satisfies

We have mentioned that Huber’s method or soft-IPOD behaves poorly in outlier detection. The problem is that it never rejects gross outliers that have moderate or high leverage. To reject gross outliers, redescending ψ\psi-functions are advocated, corresponding to a class of thresholdings offering little shrinkage for large components, or using nonconvex penalties for solving the sparsity problem (4.2). The differences between Θ\Theta-IPOD and the corresponding MM-estimator are as follows:

MM-estimators focus on robust estimation of β{\boldsymbol{\beta}}. For an explicit sparse γ{\boldsymbol{\gamma}} estimate, a cutoff value is usually needed for the residuals. Minimizing fPf_{P} from equation (4.2) directly yields a sparse γ^\hat{\boldsymbol{\gamma}} for outlier detection and a robust β^\hat{\boldsymbol{\beta}}.

Instead of designing a robust loss function in MM-estimators, (4.2) considers a penalty function; λ\lambda is not a criterion (loss) parameter but a regularization parameter that we will tune in a data-dependent way.

Figure 2 illustrates some of the better known threshold functions along with their corresponding penalties, ψ\psi-functions and loss functions. In this article, we make use of the following formulas

for soft and hard thresholding, respectively. The usual penalty for hard thresholding is P(x;λ)=1∣x∣<λ(λ∣x∣−x2/2)+1∣x∣≥λλ2/2P(x;\lambda)=1_{|x|<\lambda}(\lambda|x|-x^{2}/2)+1_{|x|\geq\lambda}\lambda^{2}/2. Theorem 4.1 justifies use of the L0L_{0}-penalty P(x;λ)=λ2/2⋅Ix≠0P(x;\lambda)=\lambda^{2}/2\cdot I_{x\neq 0} using

2 Θ\Theta-IPOD and TISP

Algorithm 1 can be simplified. The Θ\Theta-IPOD iteration can be carried out without recomputing β(j){\boldsymbol{\beta}}^{(j)} at each iteration. We need only update γ{\boldsymbol{\gamma}} via

at each iteration, where λi=λ1−hi\lambda_{i}=\lambda\sqrt{1-h_{i}}. The multiplication (I−H)y({\boldsymbol{I}}-{\boldsymbol{H}}){\boldsymbol{y}} in (4.8) can also be precomputed. After getting the final γ^\hat{\boldsymbol{\gamma}}, we can estimate β{\boldsymbol{\beta}} by OLS. The resulting simplified Θ\Theta-IPOD algorithm is given in Algorithm 2. For any given thresholding rule Θ\Theta, let fP(γ)≡12∥(I−H)(y−γ)∥22+∑i=1nP(γi;λi),f_{P}({\boldsymbol{\gamma}})\equiv\frac{1}{2}\|({\boldsymbol{I}}-{\boldsymbol{H}})({\boldsymbol{y}}-{\boldsymbol{\gamma}})\|_{2}^{2}+\sum_{i=1}^{n}P(\gamma_{i};\lambda_{i}), where PP can be any penalty function satisfying the conditions in Theorem 4.1. Then fP(γ(j+1))≤fP(γ(j))f_{P}({\boldsymbol{\gamma}}^{(j+1)})\leq f_{P}({\boldsymbol{\gamma}}^{(j)}) for the Θ\Theta-IPOD iterates γ(j){\boldsymbol{\gamma}}^{(j)}, j≥0j\geq 0.

Setting up for Algorithm 2 costs O(np2)O(np^{2}) for a dense regression. The dominant cost in a given iteration comes from computing Hγ(j){\boldsymbol{H}}{\boldsymbol{\gamma}}^{(j)}. Given a QR decomposition of H{\boldsymbol{H}} we can compute that matrix product in O(np)O(np) work as Q(QTγ(j))Q(Q^{\mathsf{T}}{\boldsymbol{\gamma}}^{(j)}). The cost of the update could be even less if γ(j){\boldsymbol{\gamma}}^{(j)} has fewer than pp nonzero entries and one maintains the dense matrix H{\boldsymbol{H}}.

To give (4.8) another explanation, suppose the spectral decomposition of the hat matrix H{\boldsymbol{H}} is given by H=UDUT{\boldsymbol{H}}={\boldsymbol{U}}{\boldsymbol{D}}{\boldsymbol{U}}^{\mathsf{T}}. Define an index set c={i:Dii=0}c=\{i:D_{ii}=0\} and let Uc{\boldsymbol{U}}_{c} be formed by taking the corresponding columns of U{\boldsymbol{U}}. Then a reduced model can be obtained from the mean shift outlier model (1.2)

We can build a connection between the reduced model and simplified Θ\Theta-IPOD. ? proposed a class of thresholding-based iterative selection procedures (TISP) for model selection and shrinkage. Θ\Theta-TISP for solving the sparsity problem (4.9) is given by

with k0k_{0} equal to the largest singular value of the Gram matrix ATA=H{\boldsymbol{A}}^{\mathsf{T}}{\boldsymbol{A}}={\boldsymbol{H}}. The iteration (4.10) reduces exactly to (4.8). Therefore, all TISP studies apply to the Θ\Theta-IPOD algorithm. For example, the TISP convergence theorem can be used to establish a version of Theorem 4.1, and the nonasymptotic probability bounds for sparsity recovery reveal masking and swamping errors. In particular, the advocated hard-thresholding-like Θ\Theta in TISP corresponds to a redescending ψ\psi in our outlier identification problem.

The simplified procedure (4.8) is easy to implement and is computationally efficient, because the iteration does not involve complicated operations like matrix inversion. Model (4.9) is simpler than the original (1.2) because β{\boldsymbol{\beta}} does not appear and all observations are clean. They have non-outlying errors because we have moved the outlier variables into the regression. Using this characterization of γ^\hat{\boldsymbol{\gamma}}, it is not difficult to show that the IPOD-estimate β^\hat{\boldsymbol{\beta}} satisfies the regression, scale, and affine equivariant properties [Hampelbook] desirable for a good robust regression estimator:

β^(XC,y)=C−1β^(X,y)\hat{\boldsymbol{\beta}}({\boldsymbol{X}}\boldsymbol{C},{\boldsymbol{y}})=\boldsymbol{C}^{-1}\hat{\boldsymbol{\beta}}({\boldsymbol{X}},{\boldsymbol{y}}), for any nonsingular C\boldsymbol{C}.

We are making here a mild assumption that the initial robust estimate is equivariant, as LTS, S and PY [PYfast] are, and we’re ignoring the possible effect of convergence criteria on equivariance.

Θ\Theta-IPOD vs. IRLS

We consider some computational issues in this section. As Proposition 4.1 suggests, Θ\Theta-IPOD solves an MM-estimation problem. The standard fitting algorithm for MM-estimates is the well-known iteratively re-weighted least squares (IRLS). Let w(t;λ)=ψ(t;λ)/tw(t;\lambda)=\psi(t;\lambda)/t, taking 0/0=00/0=0 if necessary. The ψ\psi-equation (4.4) that defines an MM-estimator can be rewritten as ∑i=1nw(ri/σ;λ)rixi=0\sum_{i=1}^{n}w\left({r_{i}}/\sigma;\lambda\right)r_{i}{\boldsymbol{x}}_{i}=\boldsymbol{0}, where ri=yi−xiTβr_{i}=y_{i}-{\boldsymbol{x}}_{i}^{\mathsf{T}}{\boldsymbol{\beta}}. Accordingly, an MM-estimate corresponds to a weighted LS estimate as is well known. These multiplicative weights can help downweight the bad observations. Iteratively updating the weights yields the IRLS algorithm, which is the most common method for computing MM-estimates. Model (1.2) indicates that MM-estimation can also be characterized through additive effects on all observations.

Given nn and pp, we report the total cost of computing all MM-estimates for these different combinations of the number of outliers (OO) and leverage value (LL), each combination simulated 10 times. The scale parameter (λ\lambda) decreased from ∥(I−H)y./\mboxdiag(I−H)∥∞\|({\boldsymbol{I}}-{\boldsymbol{H}}){\boldsymbol{y}}./\sqrt{\mbox{diag}({\boldsymbol{I}}-{\boldsymbol{H}})}\|_{\infty} to 0.50.5 with fixed step size −0.1-0.1, where ./ stands for elementwise division. The upper limit is the largest possible standardized residual. Empirically, the lower bound 0.50.5 yields approximately half of γi\gamma_{i} nonzero. Also for λ<0.5\lambda<0.5 IRLS often encountered a singular WLS during the iteration, or took exceptionally long time to converge, and so could not be compared to Θ\Theta-IPOD. We used IRLS (with fixed σ=1\sigma=1, as an oracle would have) and simplified Θ\Theta-IPOD. The common convergence criterion was ∥γ(j+1)−γ(j)∥∞<10−4\|{\boldsymbol{\gamma}}^{(j+1)}-{\boldsymbol{\gamma}}^{(j)}\|_{\infty}<10^{-4}. We studied all sample sizes n∈{30,50,100,200,300,400,500,600,700,800,900,1000}n\in\{30,50,100,200,300,400,500,600,700,800,900,1000\} and we took p=n/10p=n/10. The CPU times (in seconds) are plotted against the sample size in Figure 3.

The speed advantage of Θ\Theta-IPOD over IRLS in this simulation tended to increase with nn and pp. At n=1000n=1000 the hard-IPOD algorithm required about 2 or 3 times (averaged over all lambda values) as many iterations as IRLS but was about 1010 times faster than IRLS, due to faster iterations. For small nn, we saw little speed difference. As remarked above, IRLS was sometimes unstable, with singular WLS problems arising for redescending ψ\psi, when fewer than pp weights were nonzero. Such cases cause only a small problem for Θ\Theta-IPOD: the update Hγ(j){\boldsymbol{H}}{\boldsymbol{\gamma}}^{(j)} cannot then take advantage of sparsity, but it is very stable.

Although we attained impressive computational gain over the popular IRLS, we consider speed to be secondary compared to robustness (and the speed advantage of Θ\Theta-IPOD can be moot when the preliminary method is very expensive).

Parameter Tuning in Outlier Detection

The parameter λ\lambda in an MM-estimators (4.4) is often chosen to be a constant (for all nn), based on either efficiency or breakdown of the estimator. The value 2.5σ^2.5\hat{\sigma} is popular [*]*Roussbook,Wilbook,Yohaibook. But as mentioned in Section 3, even with no outliers and X=I{\boldsymbol{X}}={\boldsymbol{I}}, a constant λ\lambda independent of nn is far from optimal [Donoho]. It is also hard, in robust regressions, to select the cutoff value η\eta at which to identify outliers, because the residual distribution is usually unknown. ? base an asymptotically efficient choice for η\eta on a Kolmogorov-Smirnov statistic, but they need to assume that the standardized robust residuals are IID N(0,1){\mathcal{N}}(0,1).

Specifically, because all candidate estimates lie along the Θ\Theta-IPOD solution path, we design a local BIC to apply BIC on a proper local interval of the degrees of freedom (DF). First we generate the hard-IPOD solution path by decreasing λ\lambda from ∥(I−H)y./\mboxdiag(I−H)∥∞\|({\boldsymbol{I}}-{\boldsymbol{H}}){\boldsymbol{y}}./\sqrt{\mbox{diag}({\boldsymbol{I}}-{\boldsymbol{H}})}\|_{\infty} to 00. Given λ\lambda and the corresponding estimate γ^(λ)\hat{\boldsymbol{\gamma}}(\lambda), let nz(λ)={i:γ^i(λ)≠0}nz(\lambda)=\{i:\hat{\boldsymbol{\gamma}}_{i}(\lambda)\neq 0\}. We rely on model (4.9) and study its variable selection to give the correct form of BIC. For hard-IPOD, γ^nz\hat{\boldsymbol{\gamma}}_{nz} is an OLS estimate with one parameter per detected outlier and the degrees of freedom are given by \mboxDF(λ)=∣nz(λ)∣\mbox{DF}(\lambda)=|nz(\lambda)|. We use BIC with a slight modification:

We carried out simulation experiments to test the performance of the tuned Θ\Theta-IPOD. The matrix X{\boldsymbol{X}} was generated the same way as in Section 5 using dimension p∈{15,50}p\in\{15,50\}, n=1000n=1000 observations of which the first O∈{200,150,100,50,10}O\in\{200,150,100,50,10\} were outliers at the highly leveraged location given by L∈{15,20}L\in\{15,20\} times a vector of 11s. The outliers were generated by a mean shift γ=({5}O,{0}n−O)T{\boldsymbol{\gamma}}=(\{5\}^{O},\{0\}^{n-O})^{\mathsf{T}} added to y{\boldsymbol{y}}. Because Θ\Theta-IPOD is affine, regression, and scale equivariant and the outliers are at a single xx value, we may set β=0{\boldsymbol{\beta}}=\boldsymbol{0} without loss of generality. The intercept term is always included in the modeling.

Five outlier detection methods were considered for comparison: hard-IPOD (tuned), MM-estimator, ? fully efficient one-step procedure (denoted by GY), the compound estimator S1S, and the LTS. (The direct procedures, such as ?, ?, behaved poorly and their results were not reported.) The S-PLUS Robust library provides implementations of MM, GY, and LTS; for the implementation of S1S, we refer to ?. Robust also provides a default initial estimate with high breakdown point (not necessarily efficient), which is used in the first three algorithms in our experiments: when p=15p=15, it is the S-estimate computed via random resampling; when p=50p=50, it is the estimate from the fast PY procedure. Since it is well known that the initial estimate is outperformed by MM in terms of estimation efficiency and robustness, both theoretically and empirically [mmest, fastS, PYfast], its results are not reported. (All of these routines are available for the R language [Rlang] as well. The package robust provides an R version of the Insightful Robust library.)

All methods apart from Θ\Theta-IPOD require a cutoff value to identify which residuals are outliers. We applied the fully efficient procedure which performs at least as well as the fixed choice of η=2.5\eta=2.5 in various situations [GYeff].

Each model was simulated 100100 times. We report outlier identification results for each algorithm using three benchmark measures:

In outlier detection, masking is more serious than swamping. The former can cause gross distortions while the latter is often just a matter of lost efficiency.

Ideally, \mboxM≈0\mbox{M}\approx 0, \mboxS≈0\mbox{S}\approx 0, and \mboxJD≈100%\mbox{JD}\approx 100\%. JD is the most important measure on easier problems while M makes the most sense for hard problems. The simulation results are summarized in Tables 1 and 2. Figures 4 and 5 present M and JD for p=15p=15 and 5050 respectively. While our main purpose is to identify outliers, a robust coefficient estimate β^\hat{\boldsymbol{\beta}} can be easily obtained from Θ\Theta-IPOD. The MSE in β{\boldsymbol{\beta}} for p=15p=15 is shown in Figure 6. All methods had small slope errors, though Θ\Theta-IPOD and GY performed best. The results for p=50p=50 (not shown) are similar.

MM and GY are two standard methods provided by the S-PLUS Robust library. Nevertheless, as seen from the Tables 1 and 2, the MM-estimator, though perhaps most popular in robust analysis, does not yield good identification results when the outliers have high leverage values and the number of outliers is not small (for example, O=200O=200, L=15,20L=15,20). GY improves MM a lot in this situation and gives similar results otherwise. The experiments also show that S1S behaves poorly in outlier detection and LTS works better in the presence of ≤5%\leq 5\% outliers. Unfortunately, all four methods have high masking probabilities and very low joint identification rates, which become worse for large pp. The Θ\Theta-IPOD method dominates them significantly for masking and joint detection.

To judge statistical significance of these MC results we constructed paired tt statistics based on our 100100 replicates. The numerator in each was the number of outliers missed by a competing method minus the number missed by Θ\Theta-IPOD; the denominator was the standard error of the numerator. Most of the tt-statistics were larger than 33 and grew rapidly with OO. LTS versus Θ\Theta-IPOD had the smallest tt-statistic (1.21.2 for O=15O=15) but also the largest (∼1700\sim 1700 for O=200O=200). While Θ\Theta-IPOD does much better on masking, it is slightly worse for swamping. This is an acceptable tradeoff because masking causes far more harm.

Outlier Detection with p>np>n

Here we extend outlier detection to problems with p>np>n including of course some high-dimensional problems. This context is more challenging but has diverse modern applications in signal processing, bioinformatics, finance, and neuroscience among others. Performing the task of outlier identification for data with p>np>n or even p≫np\gg n goes beyond the traditional robust analysis which requires a large number of observations relative to the dimensionality.

The convergence of (7.1) is guaranteed even for n<pn<p [SheTISP], as long as [X I][{\boldsymbol{X}}\ {\boldsymbol{I}}] is scaled properly, which here amounts to taking k0≥∥X∥22+1k_{0}\geq\sqrt{\|{\boldsymbol{X}}\|_{2}^{2}+1}. Let β^\hat{\boldsymbol{\beta}} and γ^\hat{\boldsymbol{\gamma}} denote the estimates from (7.1). The nonzero components of β^\hat{\boldsymbol{\beta}} locate the relevant predictors while γ^\hat{\boldsymbol{\gamma}} identifies the outliers and measures their outlyingness. (We could also apply (7.1) when p<np<n for simultaneous variable selection and outlier detection.) Not surprisingly, L1L_{1} (or soft-thresholding) fails again for this challenging sparsity problem and thresholdings corresponding to redescending ψ\psi’s should be used in (7.1). It is natural to consider the elastic net [ZouHas] for this problem as well. But the elastic net has a convex criterion, and it can be shown to have breakdown zero.

Since it is usually unknown how severe the outliers are, one may adopt the following hybrid of hard-thresholding and ridge-thresholding

referred to as the hybrid-thresholding in ?, or hard-ridge thresholding in this paper. The corresponding penalty from the three-step construction is

Setting q(x;λ,η)=1+η2(∣x∣−λ)210<∣x∣<λq(x;\lambda,\eta)=\frac{1+\eta}{2}(|x|-\lambda)^{2}1_{0<|x|<\lambda}, we get an alternative penalty

From (7.3), we see that hard-ridge thresholding successfully fuses the L0L_{0}-penalty and the L2L_{2}-penalty (ridge-penalty) via Θ\Theta-thresholding. The L0L_{0} portion induces sparsity, while the L2L_{2} portion shrinks β{\boldsymbol{\beta}}. The difference from hard thresholding is as follows. When hard thresholding makes γ^i≠0\hat{\gamma}_{i}\neq 0 we get γ^i=ri\hat{\gamma}_{i}=r_{i}, removing any influence of observation ii on β^\hat{\beta}. With hard-ridge thresholding, the influence of the observation can be removed partially, with the extent of removal controlled by η\eta. This is helpful for nonzero but small ∣γi∣|\gamma_{i}| corresponding to mild outlyingness. In addition, the L2L_{2} shrinkage also plays a role in estimation and prediction.

The large pp setting brings a computational challenge. Because the large-pp sparse Θ\Theta-IPOD can be very slow, we used the following proportional Θ\Theta-IPOD to screen out some ‘nuisance dimensions’ with coefficients being exactly zero (due to our sparsity assumption). Concretely, at each update in (7.1), λ\lambda was chosen to get precisely αn\alpha n nonzero components in the new (β(j+1),γ(j+1))({\boldsymbol{\beta}}^{(j+1)},{\boldsymbol{\gamma}}^{(j+1)}). We used α=0.75\alpha=0.75 though other choices could be made. Proportional Θ\Theta-IPOD yields at most αn\alpha n candidates predictors to have nonzero coefficients, making the problem simpler. Next, we run (7.1) with just those predictors, getting a solution path in λ\lambda and choosing λ\lambda by BIC∗. In proportional Θ\Theta-IPOD, a variable that gets killed at one iteration may reappear in the fit at a later iteration. This is quite different from independent screenings based on marginal statistics like FDR [fdr] or SIS [fanlv].

For our example we used the proportional hard-ridge IPOD. Specifically, for η\eta in a small grid of values, we ran proportional Θ\Theta-IPOD using the hard-ridge thresholding function Θ\Theta. We chose η\eta by BIC∗.

We perform the joint robust variable selection and outlier detection on the sugar data of ?. The data set concerns NIR spectroscopy of compositions of three sugars in aqueous solution. We concentrate on glucose (sugar 2) as the response variable. The predictors are second derivative spectra of 700 absorbances at frequencies corresponding to wavelengths of 1100nm to 2498nm in steps of 2nm. There are 125 samples for model training. A test set with 21 test samples is available. These 21 samples were specially designed to be difficult to predict, with compositions outside the range of the other 125. See ? for details.

? used an MCMC Bayesian approach for variable selection, but only 160 equally spaced wavelengths were analyzed due to the computational cost. We used all 700700 wavelengths in fitting our sparse robust model that also estimates outliers. The problem size is 125×(700+125)125\times(700+125). After the screening via proportional hard-ridge-IPOD, we ran hard-ridge-IPOD and tuned it as follows. First we set λ=0\lambda=0 which turns η\eta into an ordinary ridge parameter. We fit that ridge parameter η\eta, obtaining η∗\eta^{*} by minimizing \mboxBIC∗\mbox{BIC}^{*} of Section 6. Then for each η\eta in the grid {0.5η∗,0.05η∗,0.005η∗}\{0.5\eta^{*},0.05\eta^{*},0.005\eta^{*}\}, we found λ(η)\lambda(\eta) to minimize \mboxBIC∗\mbox{BIC}^{*}, and finally chose among the three (λ(η),η)(\lambda(\eta),\eta) combinations to minimize \mboxBIC∗\mbox{BIC}^{*}. We think there is no reason to use η>η∗\eta>\eta^{*} and a richer grid than the one we used would be reasonable, but we chose a small grid for computational reasons. Our experience is that even small η\eta values improve prediction.

Figure 7 plots the final estimates β^\hat{\boldsymbol{\beta}} and γ^\hat{\boldsymbol{\gamma}}. From the left panel, we see that the estimated model is sparse. It selects only 1515 of the wavelengths. The estimate γ^\hat{\boldsymbol{\gamma}} shown in right side of Figure 7 suggests that observation 9999 might be an outlier. We found γ^99=1.7706\hat{\gamma}_{99}=1.7706 and r99=y99−x99Tβ^=1.7711r_{99}=y_{99}-{\boldsymbol{x}}_{99}^{\mathsf{T}}\hat{\boldsymbol{\beta}}=1.7711, which indicates that this observation is (almost) unused in the model fitting. Our model has good prediction performance; the mean-squared error is 0.219 on the test data, improving the reported MCMC results by about 39%. The robust residual plot is shown in Figure 8.

Discussion

The main contribution of this paper is to consider the class of Θ\Theta-estimators [SheTISP], under the mean shift outlier model assumption, defined by the fixed point γ=Θ(Hγ+(I−H)y;λ){\boldsymbol{\gamma}}=\Theta({\boldsymbol{H}}{\boldsymbol{\gamma}}+({\boldsymbol{I}}-{\boldsymbol{H}}){\boldsymbol{y}};\boldsymbol{\lambda}) which can be directly computed by Θ\Theta-IPOD. With a good design of Θ\Theta, we successfully identified the outliers as well as estimating the coefficients robustly. This technique is associated with MM-estimators, but gives a new characterization in form of penalized regressions. Furthermore, we successfully generalized this penalized/thresholding methodology to high-dimensional problems to accommodate and identify gross outliers in variable selection and coefficient estimation.

When outliers are also leverage points, the Gram matrix of the reduced model (4.9), i.e., ATA=I−H{\boldsymbol{A}}^{\mathsf{T}}{\boldsymbol{A}}={\boldsymbol{I}}-{\boldsymbol{H}}, may demonstrate high correlation between clean observations and outliers for small hih_{i}. It is well known from recent advances of the lasso (e.g. the irrepresentable conditions [Zhao] and the sparse Riesz condition [ZhangHuang]) that the convex L1L_{1}-penalty encounters great trouble in this situation. Rather, nonconvex penalties which correspond to redescending ψ\psi’s must be applied, with a high breakdown point initial estimate obtained by, say, the fast-LTS [fastLTS] or fast-S [fastS] when pp is small, or the fast PY procedure [PYfast] when pp is large.

In this framework, determining the efficiency parameter in MM-estimators and choosing a cutoff value for outlier identification are both accomplished by tuning the choice of λ\boldsymbol{\lambda}. Our experience shows that adopting an appropriate data-dependent choice of λ\boldsymbol{\lambda} is crucial to guarantee good detection performance.

We close with a note of caution on an important issue for the outlier detection literature. We have found that our robust regression algorithms work better than competitors on our simulated data sets and that they give the right answers on some small well studied real data sets. But our method and the others we study all rely on a preliminary robust fit. The most robust preliminary fits have a cost that grows exponentially with dimension and for them p=15p=15 is already large. In high dimensional problems, the preliminary fit of choice is seemingly the PY procedure. It performed well in our examples, but it does not necessarily have high breakdown. Should the preliminary method fail, followup methods like Θ\Theta-IPOD or the others, may or may not correct it. We have seen hard-IPOD work well from a non-robust start (e.g. the HBK problem) but it would not be reasonable to expect this will always hold. We expect that Θ\Theta-IPOD iterations will benefit from improvements in preliminary robust fitting methods for high dimensional problems. For low dimensional problems robust preliminary methods like LTS are fast enough.

Appendix A Proofs

Since both Huber’s method and the L1L_{1}-penalized regression are convex, it is sufficient to consider the KKT equations. In this proof, we define

The KKT equations for Huber’s estimate (β^,σ^)(\hat{\boldsymbol{\beta}},\hat{\sigma}) are given by

Let r^=y−Xβ^,G^={i:∣r^i∣<λσ^},\mboxandO^={i:∣r^i∣>λσ^}.\hat{\boldsymbol{r}}={\boldsymbol{y}}-{\boldsymbol{X}}\hat{\boldsymbol{\beta}},\hat{G}=\{i:|\hat{r}_{i}|<\lambda\hat{\sigma}\},\mbox{ and }\hat{O}=\{i:|\hat{r}_{i}|>\lambda\hat{\sigma}\}. Since

(A.2) becomes nc=λ2∣O^∣+∑i∈G^r^i2/σ^2nc=\lambda^{2}|\hat{O}|+\sum_{i\in\hat{G}}\hat{r}_{i}^{2}/\hat{\sigma}^{2}. To summarize, (β^,σ^)(\hat{\boldsymbol{\beta}},\hat{\sigma}) satisfies

Next, the joint KKT equations for L1L_{1}-penalized regression estimates (β^,γ^,σ^)(\hat{\boldsymbol{\beta}},\hat{\boldsymbol{\gamma}},\hat{\sigma}) are

from which it follows that XTψ((y−Xβ^)/σ^;λ)=0{\boldsymbol{X}}^{\mathsf{T}}{\psi}\bigl(({{\boldsymbol{y}}-{\boldsymbol{X}}\hat{\boldsymbol{\beta}}})/{\hat{\sigma}};\lambda\bigr)=0, and σ^2=∥r^−γ^∥22/nc\hat{\sigma}^{2}={\|\hat{\boldsymbol{r}}-\hat{\boldsymbol{\gamma}}\|_{2}^{2}}/{nc}. But ∥r^−γ^∥22=∑i∈G^r^i2+λ2σ^2∣O^∣\|\hat{\boldsymbol{r}}-\hat{\boldsymbol{\gamma}}\|_{2}^{2}=\sum_{i\in\hat{G}}\hat{r}_{i}^{2}+\lambda^{2}\hat{\sigma}^{2}|\hat{O}|, so we obtain

which are exactly the same as (A.3) and (A.4). Therefore, (3.3) leads to Huber’s method with joint scale estimation. When σ\sigma is fixed, it is not difficult to show that the two minimizations still yield the same β{\boldsymbol{\beta}}-estimate.

Finally, Huber notices his method behaves poorly even for moderate leverage points and considers an improvement of using c1ψ(r^i/(c2σ))c_{1}\psi({\hat{r}_{i}}/{(c_{2}\sigma)}) to replace ψ(r^i/σ)\psi(\hat{r}_{i}/\sigma) [Huberbook]. He claims, based on heuristic arguments, that c1=c2=1−hic_{1}=c_{2}=\sqrt{1-h_{i}} is a good choice. This is quite natural as seen from our new characterization. The regression matrix for γ{\boldsymbol{\gamma}} in (3.3) is actually I−H{\boldsymbol{I}}-{\boldsymbol{H}} with the column norms given by 1−hi\sqrt{1-h_{i}}. The weighted L1L_{1}-penalty of ∑(λ1−hi)×∣γi∣\sum(\lambda\sqrt{1-h_{i}})\times|\gamma_{i}| then leads to Huber’s improvement, due to the fact that Kψ(t/K;λ)=ψ(t;Kλ)K\psi(t/K;\lambda)=\psi(t;K\lambda) for K>0K>0. (However it cannot completely avoid masking and swamping unless a redescending ψ\psi is used.) ∎

By definition, for any Θ\Theta-IPOD estimate (β^,γ^)(\hat{\boldsymbol{\beta}},\hat{\boldsymbol{\gamma}}), γ^\hat{\boldsymbol{\gamma}} is a fixed point of γ=Θ(Hγ+(I−H)y;λ){\boldsymbol{\gamma}}=\Theta({\boldsymbol{H}}{\boldsymbol{\gamma}}+({\boldsymbol{I}}-{\boldsymbol{H}}){\boldsymbol{y}};{\lambda}), and β^=(XTX)−1XT(y−γ^)\hat{\boldsymbol{\beta}}=({\boldsymbol{X}}^{\mathsf{T}}{\boldsymbol{X}})^{-1}{\boldsymbol{X}}^{\mathsf{T}}({\boldsymbol{y}}-\hat{\boldsymbol{\gamma}}). It follows that

and so β^\hat{\boldsymbol{\beta}} is an MM-estimate associated with ψ\psi. ∎

The second inequality in (4.3) is straightforward from the algorithm design. To show the first inequality is true, it is sufficient to prove the following lemma.

Given a thresholding rule Θ\Theta, let PP be any function satisfying P(θ;λ)=P(0;λ)+PΘ(θ;λ)+q(θ;λ)P(\theta;\lambda)=P(0;\lambda)+P_{\Theta}(\theta;\lambda)+q(\theta;\lambda) where q(⋅;λ)q(\cdot;\lambda) is nonnegative and q(Θ(θ;λ))=0q(\Theta(\theta;\lambda))=0 for all θ\theta. Then, the minimization problem min⁡θ(t−θ)2/2+P(θ;λ)\min_{\theta}(t-\theta)^{2}/2+P(\theta;\lambda) has a unique optimal solution θ^=Θ(t;λ)\hat{\theta}=\Theta(t;\lambda) for every tt at which Θ(⋅;λ)\Theta(\cdot;\lambda) is continuous.

This is a generalization of Proposition 3.2 in ?. Note that PP (and PΘP_{\Theta}) may not be differentiable at 0 and may not be convex.

Without loss of generality, suppose t>0t>0. It suffices to consider θ≥0\theta\geq 0 since f(θ)≥f(−θ),∀θ≥0f(\theta)\geq f(-\theta),\forall\theta\geq 0, where f(θ)≡(t−θ)2/2+P(θ;λ)f(\theta)\equiv(t-\theta)^{2}/2+P(\theta;\lambda). First, Θ−1\Theta^{-1} given by (4.1) is well-defined. We have

References