IDEAS home Printed from https://ideas.repec.org/a/spr/jclass/v43y2026i2d10.1007_s00357-026-09545-6.html

Class-Focused Variable Importance in Random Forests for Multi-Class Outcomes

Author

Listed:
  • Roman Hornung

    (Institute for Medical Information Processing, Biometry and Epidemiology, Faculty of Medicine, LMU Munich
    Munich Center for Machine Learning (MCML))

  • Alexander Hapfelmeier

    (Technical University of Munich, Institute of AI and Informatics in Medicine, TUM School of Medicine and Health)

Abstract

In multi-class prediction tasks with interpretative goals, covariates that help distinguish individual classes, termed “class-related covariates,” can be of particular interest. Conventional variable importance measures (VIMs) from random forests, such as permutation and Gini importance, rank covariates by overall predictive contribution and thus also assign high importance to covariates that differentiate between groups of classes. We propose a novel VIM, the class-focused VIM, which ranks covariates by their ability to distinguish individual outcome classes. It evaluates covariates using hypothetical multi-way class-based partitions at each node, without altering tree construction. As a complement, we introduce the discriminatory VIM, which measures general covariate influence based on the actual node splits. Simulations show that, unlike conventional VIMs, the class-focused VIM specifically ranks class-related covariates high. Real data examples illustrate how both suggested VIMs behave on real datasets and how their results can be interpreted.

Suggested Citation

  • Roman Hornung & Alexander Hapfelmeier, 2026. "Class-Focused Variable Importance in Random Forests for Multi-Class Outcomes," Journal of Classification, Springer;The Classification Society, vol. 43(2), pages 433-457, July.
  • Handle: RePEc:spr:jclass:v:43:y:2026:i:2:d:10.1007_s00357-026-09545-6
    DOI: 10.1007/s00357-026-09545-6
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s00357-026-09545-6
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s00357-026-09545-6?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:spr:jclass:v:43:y:2026:i:2:d:10.1007_s00357-026-09545-6. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.