MathematicsJan 2007Cited by 3 papers on PaperVantage

Manuscript Offprint

Mathematics

Bias in random forest variable importance measures: Illustrations, sources and a solution

Carolin Strobl, Anne‐Laure Boulesteix, Achim Zeileis, Torsten Hothorn

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Carolin Strobl*¹, Anne-Laure Boulesteix², Achim Zeileis³ and Torsten Hothorn⁴

Address: ¹Institut für Statistik, Ludwig-Maximilians-Universität München, Ludwigstr. 33, 80539 München, Germany, ²Institut für medizinische Statistik und Epidemiologie, Technische Universität München, Ismaningerstr. 22, 81675 München, Germany, ³Department für Statistik und Mathematik, Wirtschaftsuniversität Wien, Augasse 2-6, 1090 Wien, Austria and ⁴Institut für Medizininformatik, Biometrie und Epidemiologie, Friedrich-Alexander-Universität Erlangen-Nürnberg, Waldstr. 6, D-91054 Erlangen, Germany

Email: Carolin Strobl* - carolin.strobl@stat.uni-muenchen.de; Anne-Laure Boulesteix - anne-laure.boulesteix@tum.de; Achim Zeileis - Achim.Zeileis@R-project.org; Torsten Hothorn - Torsten.Hothorn@R-project.org

  • Corresponding author

Published: 25 January 2007

Received: 18 September 2006

BMC Bioinformatics 2007, 8:25 doi:10.1186/1471-2105-8-25

Accepted: 25 January 2007

This article is available from: http://www.biomedcentral.com/1471-2105/8/25

© 2007 Strobl et al; licensee BioMed Central Ltd.

This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Abstract

Background: Variable importance measures for random forests have been receiving increased attention as a means of variable selection in many classification tasks in bioinformatics and related scientific fields, for instance to select a subset of genetic markers relevant for the prediction of a certain disease. We show that random forest variable importance measures are a sensible means for variable selection in many applications, but are not reliable in situations where potential predictor variables vary in their scale of measurement or their number of categories. This is particularly important in genomics and computational biology, where predictors often include variables of different types, for example when predictors include both sequence data and continuous variables such as folding energy, or when amino acid sequence data show different numbers of categories.

Results: Simulation studies are presented illustrating that, when random forest variable importance measures are used with data of varying types, the results are misleading because suboptimal predictor variables may be artificially preferred in variable selection. The two mechanisms underlying this deficiency are biased variable selection in the individual classification trees used to build the random forest on one hand, and effects induced by bootstrap sampling with replacement on the other hand.

Conclusion: We propose to employ an alternative implementation of random forests, that provides unbiased variable selection in the individual classification trees. When this method is applied using subsampling without replacement, the resulting variable importance measures can be used reliably for variable selection even in situations where the potential predictor variables vary in their scale of measurement or their number of categories. The usage of both random forest algorithms and their variable importance measures in the R system for statistical computing is illustrated and documented thoroughly in an application re-analyzing data from a study on RNA editing. Therefore the suggested method can be applied straightforwardly by scientists in bioinformatics research.

Page 1 of 21 http://www.biomedcentral.com/1471-2105/8/25

Background

In bioinformatics and related scientific fields, such as statistical genomics and genetic epidemiology, an important task is the prediction of a categorical response variable (such as the disease status of a patient or the properties of a molecule) based on a large number of predictors. The aim of this research is on one hand to predict the value of the response variable from the values of the predictors, i.e. to create a diagnostic tool, and on the other hand to reliably identify relevant predictors from a large set of candidate variables. From a statistical point of view, one of the challenges in identifying these relevant predictor variables is the so-called "small n large p" problem: Usual data sets in genomics often contain hundreds or thousands of genes or markers that serve as predictor variables X1,...,XpX_{1},...,X_{p}, but only for a comparatively small number n of subjects or tissue types.

Traditional statistical models used in clinical case control studies for predicting the disease status from selected predictor variables, such as logistic regression, are not suitable for "small n large p" problems [1,2]. A more appropriate approach from machine learning, that has been proposed recently for prediction and variable selection in various fields related to bioinformatics and computational biology, is the nonlinear and nonparametric random forest method [3]. It also provides variable importance measures for variable selection purposes.

Random forests have been successfully applied to various problems in, e.g., genetic epidemiology and microbiology in general within the last five years. Within a very short period of time, random forests have become a major data analysis tool, that performs well in comparison with many standard methods [2,4]. What has greatly contributed to the popularity of random forests is the fact that they can be applied to a wide range of prediction problems, even if they are nonlinear and involve complex high-order interaction effects, and that random forests produce variable importance measures for each predictor variable.

Applications of random forests in bioinformatics include large-scale association studies for complex genetic diseases, as e.g. Lunetta et al. [5] and Bureau et al. [1], who detect SNP-SNP interactions in the case-control context by means of computing a random forest variable importance measure for each polymorphism. A comparison of the performance of random forests and other classification methods for the analysis of gene expression data is presented by Díaz-Uriate and Alvarez de Andrés [4], who propose a new gene selection method based on random forests for sample classification with microarray data. We refer to [6-8] for other applications of the random forest methodology to microarray data.

Prediction of phenotypes based on amino acid or DNA sequence is another important area of application of random forests, since possibly involving many interactions. For example, Segal et al. [9] use random forests to predict the replication capacity of viruses, such as HIV-1, based on amino acid sequence from reverse transcriptase and protease. Cummings and Segal [10] link the rifampin resistance in Mycobacterium tuberculosis to a few amino acid positions in rpoB, whereas Cummings and Myers [11] predict C-to-U edited sites in plant mitochondrial RNA based on sequence regions flanking edited sites and a few other (continuous) parameters.

The random forest approach was shown to outperform six other methods in the prediction of protein interactions based on various biological features such as gene expression, gene ontology (GO) features and sequence data [12]. Other applications of random forests can be found in fields as different as quantitative structure-activity relationship (QSAR) modeling [13,14], nuclear magnetic resonance spectroscopy [15], landscape epidemiology [16] and medicine in general [17].

The scope of this paper is to show that the variable importance measures of Breiman's original random forest method [3], based on CART classification trees [18], are a sensible means for variable selection in many of these applications, but are not reliable in situations where potential predictor variables vary in their scale of measurement or their number of categories, as, e.g., when both genetic and environmental variables, individually and in interactions, are considered as potential predictors, or predictor variables of the same type vary in the number of categories present in a certain sample, as is often the case in genomics, bioinformatics and related disciplines.

Simulation studies are presented illustrating that variable selection with the variable importance measure of the original random forest method bears the risk that suboptimal predictor variables are artificially preferred in such scenarios.

In an extra section, further details and explanations of the statistical sources underlying the deficiency of the variable importance measures of the original random forest method, namely biased variable selection in the individual classification trees used to build the random forest and effects induced by bootstrap sampling with replacement, are given.

We propose to employ an alternative random forest method, the variable importance measure of which can be employed to reliably select relevant predictor variables in any data set. The performance of this method is compared to that of the original random forest method in simula-

Page 2 of 21 (page number not for citation purposes) http://www.biomedcentral.com/1471-2105/8/25

tion studies, and is illustrated by an application to the prediction of C-to-U edited sites in plant mitochondrial RNA, re-analyzing the data of [11] that were previously analyzed with the original random forest method.

References (30)

  • Identifying SNPs Predictive of Phenotype Using Random Forests
  • The Challenge for Genetic Epidemiologists: How to Analyze Large Numbers of SNPs in Relation to Complex Diseases
  • Gene Selection and Classification of Microarray Data Using Random Forest
  • Screening Large-Scale Association Study Data: Exploiting Interactions Using Random Forests
  • Prediction of Clinical Drug Efficacy by Classification of Drug-induced Genomic Expression Profiles in vitro
  • A Comparative Study of Discriminating Human Heart Failure Etiology Using Gene Expression Profiles
  • Relating HIV-1 Sequence Variation to Replication Capacity via Trees and Forests
  • Few Amino Acid Positions in rpoB are Associated with Most of the Rifampin Resistance in Mycobacterium Tuberculosis
  • Simple Statistical Models Predict C-to-U Edited Sites in Plant Mitochondrial RNA. BMC Bioinformatics 2004, 5:132
  • Evaluation of Different Biological Data and Computational Classification Methods for Use in Protein Interaction Prediction
  • Development of Linear, Ensemble, and Non-linear Models for the Prediction and Interpretation of the Biological Activity of a Set of PDGFR Inhibitors
  • Random Forest: A Classification and Regression Tool for Compound Classification and QSAR Modeling
  • Structure Based Chemical Shift Prediction Using Random Forests Non-linear Regression
  • GIS and the Random Forest Predictor: Integration in R for Tick-Borne Disease Risk Assessment
  • Short-Term Prediction of Mortality in Patients with Systemic Lupus Erythematosus: Classification of Outcomes Using Random Forests
  • Classification and Regression Trees New York: Chapman and Hall; 1984
  • Breiman and Cutler's Random Forests for Classification and Regression 2006 [
  • Classification and Regression by random-Forest
  • party: A Laboratory for Recursive Party()itioning 2006 [
  • Classification Trees with Unbiased Multiway Splits
  • Biometrical Journal 2006, 48:838-848
  • Unbiased Split Selection for Classification Trees Based on the Gini Index (opens the publisher in a new tab)
  • Unbiased Recursive Partitioning: A Conditional Inference Framework
  • On Bagging and Nonlinear Estimation
  • Analyzing Bagging
  • Subsampling New York: Springer; 1999
  • Bias Correction in Classification Tree Construction
  • Statistical Analysis of Discrete Structures
  • rpart: Recursive Partitioning 2006 [
  • The Bootstrap in Hypothesis Testing