Repository navigation
[FAQ Bot] UPDATE: Why can a numerical feature have a ROC AUC below 0.5, and why can we inv - #479
github-actions[bot] wants to merge 1 commit into
Conversation
|
A numerical feature can have ROC AUC below 0.5 when its relationship with the target is reversed: lower feature values tend to correspond to the positive class (y=1), rather than higher values. This does not necessarily mean the feature is useless. It may be a strong predictor in the opposite direction. When evaluating a numerical feature directly using roc_auc_score(), we treat its values as prediction scores. ROC AUC measures how well those scores rank positive examples above negative examples.
In Module 4, we can use ROC AUC to evaluate the predictive strength of individual numerical features. Alternatively, since negation reverses AUC: This produces a direction-independent AUC between 0.5 and 1.0. In simple words; Negating a feature does not add information or make the underlying feature more predictive. It simply reverses which direction counts as a higher score. Also, single-feature AUC is only one measure of feature importance. It does not capture interactions, redundancy between features, or how much a feature improves a multivariate model. |
📝 FAQ UPDATE
Course: machine-learning-zoomcamp
Section: module-4 (The proposal is directly about ROC AUC behavior for numerical features in classification, which fits Module 4’s coverage of ROC curves and ROC AUC.)
Related Issue: #478
Question
Why can a numerical feature have a ROC AUC below 0.5, and why can we invert the feature when using AUC for feature importance?
Decision Rationale
Existing FAQs explain how to use AUC as a score and mention inverting when
auc < 0.5, but they don’t explicitly explain why AUC can be below 0.5 (opposite-direction relationship) and how/why negation changes ranking for feature importance.Placement Details
module-4866f5d58d2866f5d58d2), adding the missing ‘why < 0.5’ explanation.🤖 Generated by FAQ Bot
Closes #478