# Variable ranking with PCA-transformed variables

**URL:** <https://root-forum.cern.ch/t/variable-ranking-with-pca-transformed-variables/42977>\
**Category:** TMVA\
**Created:** [January 6, 2021, 4:22pm UTC](https://root-forum.cern.ch/t/variable-ranking-with-pca-transformed-variables/42977 "2021-01-06T16:22:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wolfmor](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wolfmor/32/24487_2.png) [@wolfmor](https://root-forum.cern.ch/u/wolfmor)\
**Post date:** [January 6, 2021, 4:22pm UTC](https://root-forum.cern.ch/t/variable-ranking-with-pca-transformed-variables/42977/1 "2021-01-06T16:22:01Z")

</div>

Hey,

I am training a BDT with PCA applied to the input variables and have a question regarding the variable ranking that is provided by TMVA after the training: Are the variables given in the ranking the original variables or are they referring to the principal components after transformation?

Thanks!  
Moritz

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [January 6, 2021, 7:08pm UTC](https://root-forum.cern.ch/t/variable-ranking-with-pca-transformed-variables/42977/2 "2021-01-06T19:08:33Z")

</div>

I guess @moneta can help you.

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [January 7, 2021, 10:54am UTC](https://root-forum.cern.ch/t/variable-ranking-with-pca-transformed-variables/42977/3 "2021-01-07T10:54:20Z")

</div>

The variable ranking is obtained by obtained looking on how much the variable are used when splitting the decision tree nodes. It is then referred to the input given to the trees, so if you apply some combinations of variables, will be referred to that combinations.

Best regards

Lorenzo
