Analysis of variance (ANOVA) ranks numerical features by testing whether genuine and fraudulent webpages have meaningfully different means. Its F-test compares between-group variability with within-group variability: strong separation suggests a feature can support fraud-detection rules. section 2.1.2
A practical ANOVA-based feature workflow:
- Use sklearn.feature_selection.f_classif with SelectKBest to calculate an F-statistic and p-value for each numerical feature. section 2.1.2
- Sort features by score, then inspect promising features individually with stripplots, countplots, or histplots. section 2.1.2
- Check missing values, real-time availability, and class-specific overlap before turning statistical importance into a rule. section 2.1.2
Phishing-page features
For PctExtNullSelfRedirectHyperlinksRT, a value of −1 is associated with a high chance of fraud, while 0 and 1 are associated with lower risk. A stripplot is unhelpful when values overlap heavily, so a countplot gives the clearer view. section 2.1.2
from sklearn.feature_selection import f_classif, SelectKBest plt.figure(figsize=(10,8)) fs = SelectKBest(score_func=f_classif) fs.fit(df[numerical_features], df.CLASS_LABEL) scores = zip(numerical_features, fs.scores_) scores = sorted(scores, key=lambda c: c[1], reverse=True) sns.barplot( x=[c[1] for c in scores], y=[c[0] for c in scores]);
Inspect the runnable scikit-learn feature-ranking workflow and its bar-chart output. section 2.1.2



