'Can I apply the variance inflation factor (VIF) for classified data?

All columns' values are class labels. For example: value "1" for feature1 is <50. Namely, all features were classified. In this case, can I apply the variance inflation factor (VIF) directly?

Dataset:
    feature1 feature2 feature3 target
        5       1         4      1
        1       1         3      0
        9       3         2      1


Solution 1:[1]

You have to be careful with VIFs, as they are not always calculated in the way that you understand. My suggestion is to calculate the VIF with numerical variables, in any case, you can make those variables dummies This article could give more explanation about: High VIFs are indicator (dummy) variables that represent a categorical variable with three or more categories

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Diana Carolina Ttica Huanca