Forest-Type Regression with General Losses and Robust Forest

Total Page:16

File Type:pdf, Size:1020Kb

Forest-Type Regression with General Losses and Robust Forest Forest-type Regression with General Losses and Robust Forest Alexander Hanbo Li 1 Andrew Martin 2 Abstract dict quantiles by discovering that besides calculating the weighted mean of the observed response variables, one This paper introduces a new general framework could also get information for the weighted distribution of for forest-type regression which allows the de- observed response variables using the sets of local weights velopment of robust forest regressors by select- generated by random forest. This method is strongly con- ing from a large family of robust loss functions. nected to the adaptive nearest neighbors procedure (Lin & In particular, when plugged in the squared error Jeon, 2006) which we will briefly review in section 1.2. and quantile losses, it will recover the classical Different from classical k-NN methods that rely on pre- random forest (Breiman, 2001) and quantile ran- defined distance metrics, the dissimilarities generated by dom forest (Meinshausen, 2006). We then use ro- random forest are data dependent and scale-invariant. bust loss functions to develop more robust forest- type regression algorithms. In the experiments, Another state-of-the-art algorithm AdaBoost (Freund & we show by simulation and real data that our ro- Schapire, 1995; Freund et al., 1996) has been generalized bust forests are indeed much more insensitive to to be applicable to a large family of loss functions (Fried- outliers, and choosing the right number of nearest man, 2001; Mason et al., 1999; Li & Bradic, 2016). Recent neighbors can quickly improve the generalization development of more flexible boosting algorithms such as performance of random forest. xgboost (Chen & Guestrin, 2016) have become the go-to forest estimators with tabular or matrix data. One way in which recent boosting algorithms have an advantage over 1. Introduction the random forest is the ability to customize the loss func- tion used to reduce the influence of outliers or optimize a Since its development by Breiman (2001), random forest metric more suited to the specific problem other than the has proven to be both accurate and efficient for classifica- mean squared error. tion and regression problems. In regression setting, ran- dom forest will predict the conditional mean of a response In this paper, we will propose a general framework for variable by averaging predictions of a large number of re- forest-type regression which can also be applied to a broad gression trees. Later then, many other machine learning family of loss functions. It is claimed in (Meinshausen, algorithms were developed upon random forest. Among 2006) that quantile random forest is another nonparamet- them, robust versions of random forest have also been pro- ric approach which does not minimize an empirical loss. posed using various methodologies. Besides the sampling However, we will show in fact both random forest and idea (Breiman, 2001) which adds extra randomness, the quantile random forest estimators can be re-derived as re- other variations are mainly based on two ideas: (1) use gression methods using the squared error or quantile loss more robust criterion to construct regression trees (Galim- respectively in our framework. Inspired by the adaptive berti et al., 2007; Brence & Brown, 2006; Roy & Larocque, nearest neighbor viewpoint, we explore how random forest 2012); (2) choose more robust aggregation method (Mein- makes predictions using the local weights generated by en- shausen, 2006; Roy & Larocque, 2012; Tsymbal et al., semble of trees, and connect that with locally weighted re- 2006). gression (Fan & Gijbels, 1996; Tibshirani & Hastie, 1987; Staniswalis, 1989; Newey, 1994; Loader, 2006; Hastie & Meinshausen (2006) generalized random forest to pre- Loader, 1993). The intuition is that when predicting the 1University of California at San Diego, San Diego, Califor- target value (e.g. E[Y jX = x]) at point x, the observations nia, USA 2Zillow, Seattle, Washington, USA. Correspondence to: closer to x should receive larger weights. Different from Alexander Hanbo Li <[email protected]>. predefining a kernel, random forest assigns the weights data dependently and adaptively. After we illustrate the re- Proceedings of the 34 th International Conference on Machine Learning, Sydney, Australia, PMLR 70, 2017. Copyright 2017 lation between random forest and local regression, we will by the author(s). use random forest weights to design other regression algo- Forest-type Regression with General Losses and Robust Forest rithms. By plugging robust loss functions like Huber loss 1.2. Adaptive nearest neighbors and Tukey’s redescending loss, we get forest-type regres- Lin and Jeon (2006) studies the connection between ran- sion methods that are more robust to outliers. Finally, mo- dom forest and adaptive nearest neighbor. They introduced tivated from the truncated squared error loss example, we the so-called potential nearest neighbors (PNN): A sample will show that decreasing the number of nearest neighbors point x is called a k-PNN to a target point x if there exists in random forest will also immediately improve its gener- i a monotone distance metric under which x is among the k alization performance. i closest to x among all the sample points. The layout of this paper is as follows. In Section 1.1 and 1.2 Therefore, any k-NN method can be viewed as choosing we review random forest and adaptive nearest neighbors. k points from the k-PNNs according to some monotone Section2 introduces the general framework of forest-type metric. For example, under Euclidean metric, the classical regression. In Section3 we plug in robust regression loss k-NN algorithm sorts the observations by their Euclidean functions to get robust forest algorithms. In Section4 we distances to the target point and outputs the k closest ones. motivate from the truncated squared error loss and inves- This is equivalent to weighting the k-PNNs using inverse tigate the importance of choosing right number of nearest L distance. neighbors. Finally, we test our robust forests in Section 2 5 and show that they are always superior to the traditional More interestingly, they prove that those observations with formulation in the presence of outliers in both synthetic and positive weights (3) all belong to the k-PNNs (Lin & Jeon, real data set. 2006). Therefore, random forests is another weighted k- PNN method, but it assigns weights to the observations dif- 1.1. Random forest ferent from any k-NN method under a pre-defined mono- tonic distance metric. In fact, the random forest weights Following the notation of Breiman (2001), let θ be the ran- are adaptive to the data if the splitting scheme is adaptive. dom parameter determining how a tree is grown, and data (X; Y ) 2 X × Y. For each tree T (θ), let L be the total number of leaves, and Rl denotes the rectangular subspace 2. General framework for forest-type in X corresponding to the l-th leaf. Then for every x 2 X , regression there is exactly one leaf l such that x 2 R . Denote this l In this section, we generalize the classical random forest to leaf by l(x; θ). a general forest-type regression (FTR) framework which is For each tree T (θ), the prediction of a new data point applicable to a broad family of loss functions. In Section X = x is the average of data values in leaf l(x; θ), that 2.1, we motivate the framework by connecting random for- Pn is, Yb(x; θ) = j=1 w(Xi; x; θ)Yi, where est predictor with locally weighted regression. Then in Sec- tion 2.2, we formally propose the new forest-type regres- sion framework. In Section 2.3, we rediscover the quantile 1IfXi2Rl(x,θ)g w(Xi; x; θ) = : (1) random forest estimator by plugging the quantile loss func- #fj : Xj 2 Rl(x,θ)g tion into our framework. Finally, the conditional mean E[Y jX = x] is approxi- 2.1. Squared error and random forest mated by the averaged prediction of m trees, Yb(x) = −1 Pm m t=1 Yb(x; θt). After rearranging the terms, we can Classical random forest can be understood as an estimator write the prediction of random forest as of conditional mean E[Y jX]. As shown in (2), the esti- mator Yb(x) is weighted average of all response Yi’s. This n X special form reminds us of the classical least squares re- Y (x) = w(X ; x)Y ; (2) b i i gression, where the estimator is the sample mean. To be i=1 more precise, we rewrite (2) as where the averaged weight w(X ; x) is defined as n i X w(Xi; x)(Yi − Yb(x)) = 0: (4) m 1 X i=1 w(X ; x) = w(X ; x; θ ): (3) i m i t t=1 Equation (4) is the estimating equation (first order condi- tion) of the locally weighted least squares regression (Rup- From equation (2), the prediction of the conditional expec- pert & Wand, 1994): tation E[Y jX = x] is the weighted average of the response n values of all observations. Furthermore, it is easy to show X 2 Pn Yb(x) = argmin w(Xi; x)(Yi − λ) (5) that i=1 w(Xi; x) = 1. λ2R i=1 Forest-type Regression with General Losses and Robust Forest In classical local regression, the weight w(Xi; x) serves uses ensemble of trees to recursively partition the covariate as a local metric between the target point x and observa- space X . However, there are many other data dependent tion Xi. Intuitively, observations closer to target x should dissimilarity measures that can potentially be used, such as be given more weights when predicting the response at k-NN, mp-dissimilarity (Aryal et al., 2014), shared near- x.
Recommended publications
  • A Robust Hybrid of Lasso and Ridge Regression
    A robust hybrid of lasso and ridge regression Art B. Owen Stanford University October 2006 Abstract Ridge regression and the lasso are regularized versions of least squares regression using L2 and L1 penalties respectively, on the coefficient vector. To make these regressions more robust we may replace least squares with Huber’s criterion which is a hybrid of squared error (for relatively small errors) and absolute error (for relatively large ones). A reversed version of Huber’s criterion can be used as a hybrid penalty function. Relatively small coefficients contribute their L1 norm to this penalty while larger ones cause it to grow quadratically. This hybrid sets some coefficients to 0 (as lasso does) while shrinking the larger coefficients the way ridge regression does. Both the Huber and reversed Huber penalty functions employ a scale parameter. We provide an objective function that is jointly convex in the regression coefficient vector and these two scale parameters. 1 Introduction We consider here the regression problem of predicting y ∈ R based on z ∈ Rd. The training data are pairs (zi, yi) for i = 1, . , n. We suppose that each vector p of predictor vectors zi gets turned into a feature vector xi ∈ R via zi = φ(xi) for some fixed function φ. The predictor for y is linear in the features, taking the form µ + x0β where β ∈ Rp. In ridge regression (Hoerl and Kennard, 1970) we minimize over β, a criterion of the form n p X 0 2 X 2 (yi − µ − xiβ) + λ βj , (1) i=1 j=1 for a ridge parameter λ ∈ [0, ∞].
    [Show full text]
  • Lecture 22 - 11/19/2019 Lecture 22: Robust Location Estimation Lecturer: Jiantao Jiao Scribe: Vignesh Subramanian
    EE290 Mathematics of Data Science Lecture 22 - 11/19/2019 Lecture 22: Robust Location Estimation Lecturer: Jiantao Jiao Scribe: Vignesh Subramanian In this lecture, we get a historical perspective into the robust estimation problem and discuss Huber's work [1] for robust estimation of a location parameter. The Huber loss function is given by, ( 1 2 2 t ; jtj ≤ k ρHuber(t) = 1 2 : (1) k jtj − 2 k ; jtj > k Here k is a parameter and the idea behind the loss function is to penalize outliers (beyond k) linearly instead of quadratically. Figure 1 shows the Huber loss function for k = 1. In this lecture we will get an intuitive 1 2 Figure 1: The green line plots the Huber-loss function for k = 1, and the blue line plots the quadratic function 2 t . understanding for the reasons behind the particular form of this function, quadratic in interior, linear in exterior and convex and will see that this loss function is optimal for one dimensional robust mean estimation for Gaussian location model. First we describe the problem setting. 1 Problem Setting Suppose we observe X1;X2;:::;Xn where Xi − µ ∼ F 2 F are i.i.d. Here, F = fF j F = (1 − )G + H; H 2 Mg; (2) where G 2 M is some fixed distribution function which is usually assumed to have zero mean, and M denotes the space of all probability measures. This describes the corruption model where the observed distribution is a convex combination of the true distribution G(x) and an arbitrary corruption distribution H.
    [Show full text]
  • Robust Regression Through the Huber's Criterion and Adaptive Lasso
    Robust Regression through the Huber’s criterion and adaptive lasso penalty Sophie Lambert-Lacroix, Laurent Zwald To cite this version: Sophie Lambert-Lacroix, Laurent Zwald. Robust Regression through the Huber’s criterion and adap- tive lasso penalty. Electronic Journal of Statistics , Shaker Heights, OH : Institute of Mathematical Statistics, 2011, 5, pp.1015-1053. 10.1214/11-EJS635. hal-00661864 HAL Id: hal-00661864 https://hal.archives-ouvertes.fr/hal-00661864 Submitted on 20 Jan 2012 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. Electronic Journal of Statistics Vol. 5 (2011) 1015–1053 ISSN: 1935-7524 DOI: 10.1214/11-EJS635 Robust regression through the Huber’s criterion and adaptive lasso penalty Sophie Lambert-Lacroix UJF-Grenoble 1 / CNRS / UPMF / TIMC-IMAG UMR 5525, Grenoble, F-38041, France e-mail: [email protected] and Laurent Zwald LJK - Universit´eJoseph Fourier BP 53, Universit´eJoseph Fourier 38041 Grenoble cedex 9, France e-mail: [email protected] Abstract: The Huber’s Criterion is a useful method for robust regression. The adaptive least absolute shrinkage and selection operator (lasso) is a popular technique for simultaneous estimation and variable selection.
    [Show full text]
  • Sketching for M-Estimators and Robust Numerical Linear Algebra
    Sketching for M-Estimators and Robust Numerical Linear Algebra David Woodruff CMU Talk Outline • Regression – Sketching for least squares regression – Sketching for fast robust regression • Low Rank Approximation – Sketching for fast SVD – Sketching for fast robust low rank approximation • Recent sketching/sampling work for robust problems Linear Regression Matrix form Input: nd-matrix A and a vector b=(b1,…, bn) n is the number of examples; d is the number of unknowns Output: x* so that Ax* and b are close • Consider the over-constrained case, when n d Least Squares Regression 2 • Find x* that minimizes |Ax-b|2 •Ax* is the projection of b onto the column span of A • Desirable statistical properties • Closed form solution: x* = (ATA)-1 AT b Sketching to Solve Least Squares Regression . How to find an approximate solution x to minx |Ax-b|2 ? . Goal: output x‘ for which |Ax‘-b|2 ≤ (1+ε) minx |Ax-b|2 with high probability . Draw S from a k x n random family of matrices, for a value k << n . Compute S*A and S*b . Output the solution x‘ to minx‘ |(SA)x-(Sb)|2 How to Choose the Right Sketching Matrix ? . Recall: output the solution x‘ to minx‘ |(SA)x-(Sb)|2 . Lots of matrices work . S is d/ε2 x n matrix of i.i.d. Normal random variables . Computing S*A may be slow… . Can speed up to O(nd log n) time using Fast Johnson Lindenstrauss transforms [Sarlos] . Not sensitive to input sparsity Faster Sketching Matrices [CW] Think of rows . CountSketch matrix as hash buckets .
    [Show full text]
  • A General and Adaptive Robust Loss Function
    A General and Adaptive Robust Loss Function Jonathan T. Barron Google Research Abstract and can be adjusted to model a wider family of functions. This allows us to generalize algorithms built around a fixed We present a generalization of the Cauchy/Lorentzian, robust loss with a new “robustness” hyperparameter that can Geman-McClure, Welsch/Leclerc, generalized Charbon- be tuned or annealed to improve performance. nier, Charbonnier/pseudo-Huber/L1-L2, and L2 loss func- Though new hyperparameters may be valuable to a prac- tions. By introducing robustness as a continuous param- titioner, they complicate experimentation by requiring man- eter, our loss function allows algorithms built around ro- ual tuning or time-consuming cross-validation. However, bust loss minimization to be generalized, which improves by viewing our general loss function as the negative log- performance on basic vision tasks such as registration and likelihood of a probability distribution, and by treating the clustering. Interpreting our loss as the negative log of a robustness of that distribution as a latent variable, we show univariate density yields a general probability distribution that maximizing the likelihood of that distribution allows that includes normal and Cauchy distributions as special gradient-based optimization frameworks to automatically cases. This probabilistic interpretation enables the training determine how robust the loss should be without any manual of neural networks in which the robustness of the loss auto- parameter tuning. This “adaptive” form of our loss is par- matically adapts itself during training, which improves per- ticularly effective in models with multivariate output spaces formance on learning-based tasks such as generative im- (say, image generation or depth estimation) as we can intro- age synthesis and unsupervised monocular depth estima- duce independent robustness variables for each dimension tion, without requiring any manual parameter tuning.
    [Show full text]
  • ERM and RERM Are Optimal Estimators for Regression Problems When Malicious Outliers Corrupt the Labels
    ERM and RERM are optimal estimators for regression problems when malicious outliers corrupt the labels CHINOT Geoffrey ENSAE, 5 avenue Henri Chatelier, 91120, Palaiseau, France e-mail: [email protected] Abstract: We study Empirical Risk Minimizers (ERM) and Regularized Empirical Risk Minimizers (RERM) for regression problems with convex and L-Lipschitz loss functions. We consider a setting where jOj malicious outliers contaminate the labels. In that case, under a local Bernstein condi- tion, we show that the L2-error rate is bounded by rN + ALjOj=N, where N is the total number of observations, rN is the L2-error rate in the non- contaminated setting and A is a parameter coming from the local Bernstein condition. When rN is minimax-rate-optimal in a non-contaminated set- ting, the rate rN +ALjOj=N is also minimax-rate-optimal when jOj outliers contaminate the label. The main results of the paper can be used for many non-regularized and regularized procedures under weak assumptions on the noise. We present results for Huber's M-estimators (without penalization or regularized by the `1-norm) and for general regularized learning problems in reproducible kernel Hilbert spaces when the noise can be heavy-tailed. MSC 2010 subject classifications: Primary 62G35 ; secondary 62G08 . Keywords and phrases: Regularized empirical risk minimizers, outliers, robustness, minimax-rate-optimality. 1. Introduction Let (Ω; A;P ) be a probability space where Ω = X ×Y. X denotes the measurable space of the inputs and Y ⊂ R the measurable space of the outputs. Let (X; Y ) be a random variable taking values in Ω with joint distribution P and let µ be the marginal distribution of X.
    [Show full text]
  • Ensemble Methods - Boosting
    Ensemble Methods - Boosting Bin Li IIT Lecture Series 1 / 48 Boosting a weak learner 1 1 I Weak learner L produces an h with error rate β = 2 < 2 , with Pr 1 δ for any . L has access to continuous− stream of training≥ data− and a classD oracle. 1. L learns h1 on first N training points. 2. L randomly filters the next batch of training points, extracting N=2 points correctly classified by h1, N=2 incorrectly classified, and produces h2. 3. L builds a third training set of N points for which h1 and h2 disagree, and produces h3. 4. L ouptuts h = Majority Vote(h1; h2; h3) I Theorem (Schapire, 1990): \The Strength of Weak Learnability" 2 3 errorD(h) 3β 2β < β ≤ − 2 / 48 Plot of error rate 3β2 2β3 − 0.5 0.4 0.3 0.2 0.1 0.0 0.0 0.1 0.2 0.3 0.4 0.5 3 / 48 What is AdaBoost? Figure from HTF 2009. ) x ( m G m α =1 M m ) ) ) ) x ( x x x ( ( ( 3 2 M 1 G G G G )=sign x Final Classifier ( Boosting G Training SampleTraining Sample Training Sample Weighted SampleWeighted Sample Weighted Sample Weighted SampleWeighted Sample Weighted SampleWeighted Sample Weighted Sample Weighted Sample January 2003 Trevor Hastie, Stanford University 11 4 / 48 AdaBoost (Freund & Schapire, 1996) 1. Initialize the observation weigths: wi = 1=N, i = 1; 2;:::; N. 2. For m = 1 to M repeat steps (a)-(d): (a) Fit a classifier Gm(x) to the training data using weigths wi (b) Compute N i=1 wi I (yi = Gm(xi )) errm = N 6 P i=1 wi (c) Compute αm = log((1 errm)=errPm).
    [Show full text]
  • Benchmarking Daily Line Loss Rates of Low Voltage Transformer Regions in Power Grid Based on Robust Neural Network
    applied sciences Article Benchmarking Daily Line Loss Rates of Low Voltage Transformer Regions in Power Grid Based on Robust Neural Network Weijiang Wu 1,2 , Lilin Cheng 3,*, Yu Zhou 1,2, Bo Xu 4, Haixiang Zang 3 , Gaojun Xu 1,2 and Xiaoquan Lu 1,2 1 State Grid Jiangsu Electric Power Company Limited Marketing Service Center, Nanjing 210019, China; [email protected] (W.W.); [email protected] (Y.Z.); [email protected] (G.X.); [email protected] (X.L.) 2 State Grid Key Laboratory of Electric Power Metering, Nanjing 210019, China 3 College of Energy and Electrical Engineering, Hohai University, Nanjing 211100, China; [email protected] 4 Jiangsu Frontier Electric Technology Co., Ltd., Nanjing 211100, China; [email protected] * Correspondence: [email protected]; Tel.: +86-173-7211-8166 Received: 28 September 2019; Accepted: 3 December 2019; Published: 17 December 2019 Abstract: Line loss is inherent in transmission and distribution stages, which can cause certain impacts on the profits of power-supply corporations. Thus, it is an important indicator and a benchmark value of which is needed to evaluate daily line loss rates in low voltage transformer regions. However, the number of regions is usually very large, and the dataset of line loss rates contains massive outliers. It is critical to develop a regression model with both great robustness and efficiency when trained on big data samples. In this case, a novel method based on robust neural network (RNN) is proposed. It is a multi-path network model with denoising auto-encoder (DAE), which takes the advantages of dropout, L2 regularization and Huber loss function.
    [Show full text]
  • Consistent Regression When Oblivious Outliers Overwhelm
    Consistent regression when oblivious outliers overwhelm∗ Tommaso d’Orsi† Gleb Novikov‡ David Steurer§ Abstract We consider a robust linear regression model H = - , where an adversary ∗ + oblivious to the design - ℝ= 3 may choose to corrupt all but an fraction of ∈ × the observations H in an arbitrary way. Prior to our work, even for Gaussian -, no estimator for ∗ was known to be consistent in this model except for quadratic sample size = & 3 2 or for logarithmic inlier fraction > 1 log =. We show that consistent ( / ) / estimation is possible with nearly linear sample size and inverse-polynomial inlier frac- tion. Concretely, we show that the Huber loss estimator is consistent for every sample size = = $ 3 2 and achieves an error rate of $ 3 2= 1 2. Both bounds are optimal ( / ) ( / ) / (up to constantfactors). Our results extendto designsfar beyond the Gaussian case and only require the column span of - to not contain approximately sparse vectors (simi- lar to the kind of assumption commonly made about the kernel space for compressed sensing). We provide two technically similar proofs. One proof is phrased in terms of strong convexity, extending work of [TJSO14], and particularly short. The other proof highlights a connection between the Huber loss estimator and high-dimensional me- dian computations. In the special case of Gaussian designs, this connection leads us to a strikingly simple algorithm based on computing coordinate-wise medians that achieves optimal guarantees in nearly-linear time, and that can exploit sparsity of ∗. The model studied here also captures heavy-tailed noise distributions that may not arXiv:2009.14774v2 [cs.LG] 25 May 2021 even have a first moment.
    [Show full text]
  • Statistica Sinica Preprint No: SS-2019-0324
    Statistica Sinica Preprint No: SS-2019-0324 Title Robustness and Tractability for Non-convex M-estimators Manuscript ID SS-2019-0324 URL http://www.stat.sinica.edu.tw/statistica/ DOI 10.5705/ss.202019.0324 Complete List of Authors Ruizhi Zhang, Yajun Mei, Jianjun Shi and Huan Xu Corresponding Author Ruizhi Zhang E-mail [email protected] Notice: Accepted version subject to English editing. Statistica Sinica: Newly accepted Paper (accepted author-version subject to English editing) Statistica Sinica Robustness and Tractability for Non-convex M-estimators Ruizhi Zhang*, Yajun Mei**, Jianjun Shi**, Huan Xu*** *University of Nebraska-Lincoln, **Georgia Institute of Technology, ***Alibaba Inc. Abstract: We investigate two important properties of M-estimators, namely, ro- bustness and tractability, in the linear regression setting, when the observations are contaminated by some arbitrary outliers. Specifically, robustness means the statistical property that the estimator should always be close to the true under- lying parameters regardless of the distribution of the outliers, and tractability indicates the computational property that the estimator can be computed effi- ciently, even if the objective function of the M-estimator is non-convex. In this article, by learning the landscape of the empirical risk, we show that under some sufficient conditions, many M-estimators enjoy nice robustness and tractability properties simultaneously when the percentage of outliers is small. We further extend our analysis to the high-dimensional setting, where the number of pa- rameters is greater than the number of samples, p n, and prove that when the proportion of outliers is small, the penalized M-estimators with L1 penalty will enjoy robustness and tractability simultaneously.
    [Show full text]
  • Robust Regression Implementation Scottish Hill Races
    Introduction Robust regression Implementation Scottish hill races Robust regression Patrick Breheny December 1 Patrick Breheny BST 764: Applied Statistical Modeling 1/17 Introduction Robust regression Implementation Scottish hill races Belgian phone calls We begin our discussion of robust regression with a simple motivating example dealing with the number of phone calls made per year in Belgium The data set phones.txt contains two columns: year calls: Number of calls made (in millions) As it turns out, there is a flaw in the data { for a period of time from 1964-1969, the total length of calls was recorded instead of the number Patrick Breheny BST 764: Applied Statistical Modeling 2/17 Introduction Robust regression Implementation Scottish hill races Belgian phone calls: Linear vs. robust regression Least squares ● Huber 200 Tukey ● ● 150 ● ● ● 100 Millions of calls 50 ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● 0 1950 1955 1960 1965 1970 Year Patrick Breheny BST 764: Applied Statistical Modeling 3/17 Introduction Robust regression Implementation Scottish hill races Robust loss Robust regression methods achieve their robustness by modifying the loss function P 2 The linear regression loss function, l(r) = i ri , increases sharply with the size of the residual One alternative is to use the absolute value as a loss function P instead of squaring the residual: l(r) = i jrij This achieves robustness, but is hard to work with in practice because the absolute value function is not differentiable Patrick Breheny BST 764: Applied Statistical Modeling 4/17
    [Show full text]
  • Generalized Huber Loss for Robust Learning and Its Efficient
    1 Generalized Huber Loss for Robust Learning and its Efficient Minimization for a Robust Statistics Kaan Gokcesu, Hakan Gokcesu Abstract—We propose a generalized formulation of the Huber To create a robust loss with fast convergence, we need loss. We show that with a suitable function of choice, specifically to combine the properties of the absolute and the quadratic the log-exp transform; we can achieve a loss function which loss. The most straightforward approach is to use a piecewise combines the desirable properties of both the absolute and the quadratic loss. We provide an algorithm to find the minimizer of function to combine the quadratic and absolute losses where such loss functions and show that finding a centralizing metric they work the best. As an example, we can straightforwardly is not that much harder than the traditional mean and median. use the following function x2 , x 1 I. INTRODUCTION LP (x)= | |≤ . (1) ( x , x > 1 Many problems in learning, optimization and statistics liter- | | | | ature [1]–[4] require robustness, i.e., that a model trained (or While this function is continuous, the strict cutoff at 1 may optimized) be less influenced by some outliers than by inliers prove to be arbitrary or even useless for certain datasets. We (i.e., the nominal data) [5], [6]. This approach is extremely can bypass this problem by using a free variable as common in parameter estimation and learning tasks, where 1 2 a robust loss (e.g., the absolute error) may be more desirable δ x , x δ LP,δ(x)= | |≤ . (2) over a nonrobust loss (e.g., the quadratic error) due to its insen- ( x , x >δ sitivity to the large errors.
    [Show full text]