Variable Importance Plots—An Introduction to the vip Package
Open accessThe DOI matches its Crossref record; 57 of the 57 references it cites were found in a registry or an index.
Abstract
In the era of "big data", it is becoming more of a challenge to not only build state-of-the-art predictive models, but also gain an understanding of what's really going on in the data.For example, it is often of interest to know which, if any, of the predictors in a fitted model are relatively influential on the predicted outcome.Some modern algorithms-like random forests (RFs) and gradient boosted decision trees (GBMs)-have a natural way of quantifying the importance or relative influence of each feature.Other algorithms-like naive Bayes classifiers and support vector machines-are not capable of doing so and model-agnostic approaches are generally used to measure each predictor's importance.Enter vip, an R package for constructing variable importance scores/plots for many types of supervised learning algorithms using model-specific and novel model-agnostic approaches.We'll also discuss a novel way to display both feature importance and feature effects together using sparklines, a very small line chart conveying the general shape or variation in some feature that can be directly embedded in text or tables.1 Although "interpretability" is difficult to formally define in the context of ML, we follow Doshi-Velez and Kim (2017) and describe "interpretable" as the ". . .ability to explain or to present in understandable terms to a human."2 In this context "importance" can be defined in a number of different ways.In general, we can describe it as the extent to which a feature has a "meaningful" impact on the predicted outcome.A more formal definition and treatment can be found in van der Laan (2006).3 We refer the reader to Poulin et al. (2006), Caruana et al. (2015), Bibal andFrénay (2016), andBau et al. (2017), for discussions around model structure interpretation.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Breiman, L. (2001) · Machine Learning · doi:10.1023/a:1010933404324 · Cited by 133,538
Greedy function approximation: A gradient boosting machine
Friedman, J. H. (2001) · The Annals of Statistics · doi:10.1214/aos/1013203451 · Cited by 30,731
A Unified Approach to Interpreting Model Predictions
Lundberg, S., & Lee, S.-I. (2017) · arXiv · doi:10.48550/arxiv.1705.07874 · Cited by 23,707
Classification and Regression Trees.
Gordon, A. D., Breiman, L., Friedman, J. H., Olshen, R. A., & Stone, C. J. (1984) · Biometrics · doi:10.2307/2530946 · Cited by 23,522
Breiman, L. (1996) · Machine Learning · doi:10.1007/bf00058655 · Cited by 16,325
Gauriat, C.-M., Pencolé, Y., Ribot, P., & Brouillet, G. (2024) · HAL (Le Centre pour la Communication Scientifique Directe) · doi:10.4230/oasics.dx.2024.27 · Cited by 12,586
Robust Locally Weighted Regression and Smoothing Scatterplots
Cleveland, W. S. (1979) · Journal of the American Statistical Association · doi:10.1080/01621459.1979.10481038 · Cited by 11,594
Classification And Regression Trees
Breiman, L., Friedman, J. H., Olshen, R. A., & Stone, C. J. (2017) · doi:10.1201/9781315139470 · Cited by 11,417
Geurts, P., Ernst, D., & Wehenkel, L. (2006) · Machine Learning · doi:10.1007/s10994-006-6226-1 · Cited by 9,300
Multivariate Adaptive Regression Splines
Friedman, J. H. (1991) · The Annals of Statistics · doi:10.1214/aos/1176347963 · Cited by 8,000
Kuhn, M., & Johnson, K. (2013) · doi:10.1007/978-1-4614-6849-3 · Cited by 6,788 · cited 2×
“For categorical predictors, a different method based on standard statistical tests (e.g., t-tests and ANOVAs) can be employed; see Kuhn and Johnson (2013) for details.”
MethodAlgebraic decay in hierarchical graphs
Garcia, A., Sonnino, G., Malek-Mansour, M.-A., & Baras, F. (1997) · doi:10.1023/a · Cited by 5,187
Bias in random forest variable importance measures: Illustrations, sources and a solution
Strobl, C., Boulesteix, A.-L., Zeileis, A., & Hothorn, T. (2007) · BMC Bioinformatics · doi:10.1186/1471-2105-8-25 · Cited by 3,688
Conditional variable importance for random forests
Strobl, C., Boulesteix, A.-L., Kneib, T., Augustin, T., & Zeileis, A. (2008) · BMC Bioinformatics · doi:10.1186/1471-2105-9-307 · Cited by 3,254
Towards A Rigorous Science of Interpretable Machine Learning
Doshi-Velez, F., & Kim, B. (2017) · arXiv · doi:10.48550/arxiv.1702.08608 · Cited by 3,121
Methods for interpreting and understanding deep neural networks
Montavon, G., Samek, W., & Müller, K.-R. (2018) · Digital Signal Processing · doi:10.1016/j.dsp.2017.10.011 · Cited by 2,665 · cited 1×
“Consequently, our work focuses on functional understanding of the model in contrast to the lower-level mechanistic understanding (Montavon et al., 2018).”
BackgroundExplaining prediction models and individual predictions with feature contributions
Štrumbelj, E., & Kononenko, I. (2014) · Knowledge and Information Systems · doi:10.1007/s10115-013-0679-x · Cited by 2,286 · cited 2×
“Although vip focuses on global VI methods, it is becoming increasing popular to asses global importance by aggregating local VI measures; in particular, Shapley explanations (Štrumbelj and Kononenko, 2014).”
BackgroundMethodxgboost: Extreme Gradient Boosting
Chen, T., He, T., Benesty, M., Khotilovich, V., Tang, Y., Cho, H., Chen, K., Mitchell, R., Cano, I., Zhou, T., et al. (2014) · CRAN: Contributed Packages · doi:10.32614/cran.package.xgboost · Cited by 2,025
Goldstein, A., Kapelner, A., Bleich, J., & Pitkin, E. (2015) · Journal of Computational and Graphical Statistics · doi:10.1080/10618600.2014.907095 · Cited by 1,861 · cited 3×
“The specific approach used here is based on quantifying the “flatness” of the effects of each feature.8 Feature effects can be assessed using partial dependence plots (PDPs) (Friedman, 2001) or individual conditional expectation (ICE) curves (Goldstein et al., 2015).”
BackgroundMethodcaret: Classification and Regression Training
Kuhn, M. (2007) · CRAN: Contributed Packages · doi:10.32614/cran.package.caret · Cited by 1,786
Intelligible Models for HealthCare: Predicting Pneumonia Risk and Hospital 30-day Readmission
Caruana, R., Lou, Y., Gehrke, J., Koch, P., Sturm, M., & Elhadad, N. (2015) · Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining · doi:10.1145/2783258.2788613 · Cited by 1,685
Visualizing the effects of predictor variables in black box supervised learning models
Apley, D. W., & Zhu, J. (2020) · Journal of the Royal Statistical Society Series B: Statistical Methodology · doi:10.1111/rssb.12377 · Cited by 1,535
Interpreting neural-network connection weights
Garson, G. D. (1991) · AI Expert archive · doi:10.5555/129449.129452 · Cited by 1,472
Network Dissection: Quantifying Interpretability of Deep Visual Representations
Bau, D., Zhou, B., Khosla, A., Oliva, A., & Torralba, A. (2017) · 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr.2017.354 · Cited by 1,389
pdp: An R Package for Constructing Partial Dependence Plots
Greenwell, B. (2017) · The R Journal · doi:10.32614/rj-2017-016 · Cited by 1,189
Self-citationFisher, A., Rudin, C., & Dominici, F. (2018) · arXiv · doi:10.48550/arxiv.1801.01489 · Cited by 1,165
Back-propagation neural networks for modeling complex systems
Goh, A. T. C. (1995) · Artificial Intelligence in Engineering · doi:10.1016/0954-1810(94)00011-s · Cited by 1,075
Olden, J. D., Joy, M. K., & Death, R. G. (2004) · Ecological Modelling · doi:10.1016/j.ecolmodel.2004.03.013 · Cited by 1,029
ggplot2: Create Elegant Data Visualisations Using the Grammar of Graphics
Wickham, H., Chang, W., Henry, L., Pedersen, T. L., Takahashi, K., Wilke, C., Woo, K., Yutani, H., Dunnington, D., & van den Brand, T. (2007) · CRAN: Contributed Packages · doi:10.32614/cran.package.ggplot2 · Cited by 862
data.table: Extension of `data.frame`
Barrett, T., Dowle, M., Srinivasan, A., Gorecki, J., Chirico, M., Hocking, T., Schwendinger, B., & Krylov, I. (2006) · CRAN: Contributed Packages · doi:10.32614/cran.package.data.table · Cited by 420
glmnet: Lasso and Elastic-Net Regularized Generalized Linear Models
Friedman, J., Hastie, T., Tibshirani, R., Narasimhan, B., Tay, K., Simon, N., & Yang, J. (2008) · CRAN: Contributed Packages · doi:10.32614/cran.package.glmnet · Cited by 376
Explainable AI for Trees: From Local Explanations to Global Understanding
Lundberg, S., Erion, G., Chen, H., DeGrave, A. J., Prutkin, J. M., Nair, B. G., Katz, R., Himmelfarb, J., Bansal, N., & Lee, S. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1905.04610 · Cited by 249
Visualizing the Effects of Predictor Variables in Black Box Supervised Learning Models
Apley, D. W., & Zhu, J. (2016) · arXiv (Cornell University) · doi:10.48550/arxiv.1612.08468 · Cited by 247
Interpretable Machine Learning
Boehmke, B., & Greenwell, B. (2019) · Hands-On Machine Learning with R · doi:10.1201/9780367816377-16 · Cited by 230
Self-citationGeneralized Functional ANOVA Diagnostics for High-Dimensional Functions of Dependent Variables
Hooker, G. (2007) · Journal of Computational and Graphical Statistics · doi:10.1198/106186007x237892 · Cited by 220
Feature relevance quantification in explainable AI: A causal problem
Janzing, D., Minorics, L., & Blöbaum, P. (2019) · arXiv · doi:10.48550/arxiv.1910.13413 · Cited by 207 · cited 1×
“The downside, however, is that ALE plots are 9Note that the exact = TRUE option is only available if you have fastshap version 0.0.4 or later 10It’s been argued that approximate Shapley values share the same drawback, however, Janzing et al. (2019) makes a compelling case against those arguments.”
BackgroundInfluentialThe Feature Importance Ranking Measure
Zien, A., Krämer, N., Sonnenburg, S., & Rätsch, G. (2009) · Lecture Notes in Computer Science · doi:10.1007/978-3-642-04174-7_45 · Cited by 171
doParallel: Foreach Parallel Adaptor for the 'parallel' Package
Corporation, M., & Weston, S. (2011) · CRAN: Contributed Packages · doi:10.32614/cran.package.doparallel · Cited by 167
Statistical Inference for Variable Importance
van der Laan, M. J. (2006) · The International Journal of Biostatistics · doi:10.2202/1557-4679.1008 · Cited by 165
Müller, K., & Wickham, H. (2016) · CRAN: Contributed Packages · doi:10.32614/cran.package.tibble · Cited by 161
party: A Laboratory for Recursive Partytioning
Hothorn, T., Hornik, K., Strobl, C., & Zeileis, A. (2005) · doi:10.32614/cran.package.party · Cited by 159
SuperLearner: Super Learner Prediction
Polley, E. C., LeDell, E., Kennedy, C. J., & van der Laan, M. J. (2011) · doi:10.32614/cran.package.superlearner · Cited by 132
Visual explanation of evidence in additive classifiers
Poulin, B., Eisner, R., Szafron, D., Lu, P., Greiner, R., Wishart, D. S., Fyshe, A., Pearcy, B., Macdonell, C., & Anvik, J. (2006) · NPARC · Cited by 131
earth: Multivariate Adaptive Regression Splines
Milborrow, S., Hastie, T., & Tibshirani, R. (2007) · doi:10.32614/cran.package.earth · Cited by 126
DT: A Wrapper of the JavaScript Library 'DataTables'
Xie, Y., Cheng, J. Z., Tan, X., & Aden-Buie, G. (2015) · doi:10.32614/cran.package.dt · Cited by 125
Ames, Iowa: Alternative to the Boston Housing Data as an End of Semester Regression Project
De Cock, D. (2011) · Journal of Statistics Education · doi:10.1080/10691898.2011.11889627 · Cited by 122
Fisher, A., Rudin, C. D., & Dominici, F. (2018) · arXiv (Cornell University) · Cited by 117
ranger: A Fast Implementation of Random Forests
Wright, M. N. (2015) · CRAN: Contributed Packages · doi:10.32614/cran.package.ranger · Cited by 106
Please Stop Permuting Features: An Explanation and Alternatives.Preprint
Hooker, G., & Mentch, L. (2019) · arXiv (Cornell University) · Cited by 102
foreach: Provides Foreach Looping Construct
Microsoft, & Weston, S. (2009) · doi:10.32614/cran.package.foreach · Cited by 87
randomForestExplainer: Explaining and Visualizing Random Forests in Terms of Variable Importance
Paluszynska, A., Biecek, P., & Jiang, Y. (2017) · doi:10.32614/cran.package.randomforestexplainer · Cited by 80
Interpretability of machine learning models and representations: an introduction.
Bibal, A., & Frénay, B. (2016) · Repository of the University of Namur · Cited by 77
partykit: A Toolkit for Recursive Partytioning
Hothorn, T., & Zeileis, A. (2011) · doi:10.32614/cran.package.partykit · Cited by 67
fastshap: Fast Approximate Shapley Values
Greenwell, B. (2019) · doi:10.32614/cran.package.fastshap · Cited by 57
Self-citationScholbeck, C. A., Molnar, C., Heumann, C., Bischl, B., & Casalicchio, G. (2020) · Communications in computer and information science · doi:10.1007/978-3-030-43823-4_18 · Cited by 53
iml: Interpretable Machine Learning
Casalicchio, G., Molnar, C., & Schratz, P. (2018) · doi:10.32614/cran.package.iml · Cited by 13
iBreakDown: Model Agnostic Instance Level Variable Attributions
Biecek, P., Gosiewska, A., Baniecki, H., & Izdebski, A. (2019) · doi:10.32614/cran.package.ibreakdown · Cited by 3
Cited by
ENMTools 1.0: an R package for comparative ecological biogeography
Warren, D. L., Matzke, N. J., Cardillo, M., Baumgartner, J. B., Beaumont, L. J., Turelli, M., Glor, R. E., Huron, N. A., Simões, M., Iglesias, T. L., et al. (2021) · Ecography · doi:10.1111/ecog.05485 · Cited by 463
Global methane emissions from rivers and streams
Rocher-Ros, G., Stanley, E. H., Loken, L. C., Casson, N. J., Raymond, P. A., Liu, S., Amatulli, G., & Sponseller, R. A. (2023) · Nature · doi:10.1038/s41586-023-06344-6 · Cited by 357
Tan, J. K., Quan, L., Salim, N. N. M., Tan, J. H., Goh, S.-Y., Thumboo, J., & Bee, Y. M. (2024) · JMIR AI · doi:10.2196/58463 · Cited by 16
“For top-performing models, model interpretation was determined using model-specific variable importance scores with the vip package [21] and permutation feature importance plots using the DALEX package [22,23].”
MethodBurns, P., Kaszta, Z., Cushman, S. A., Brodie, J. F., Hakkenberg, C. R., Jantz, P., Deith, M., Luskin, M. S., Ball, J. G. C., Mohd-Azlan, J., et al. (2025) · Frontiers in Remote Sensing · doi:10.3389/frsen.2025.1563430 · Cited by 13
Metadata
- Authors
- Greenwell, B., & Boehmke, B.
- Venue
- The R Journal
- Publisher
- The R Foundation
- Published
- 2020
- Volume
- 12
- Issue
- 1
- Pages
- 343
- ISSN
- 2073-4859 (ISSN-L)
- OpenAlex
- W3091942970
- Cited by
- 334
- References
- 57
- FWCI
- 13.54
- Type
- journal article
- Language
- en
- Open access
- diamond
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.