Fraudulent transactions demonstrate a 7.8x higher mean amount compared to legitimate transactions, indicating that fraudsters often target high-value transactions to maximize their illicit gains.
class_weight
parameter in Logistic Regression and Random Forest models to assign higher penalties to misclassified minority class samples, balancing the impact of imbalance during training.class_weight={{0:1, 1:10}}
to heavily penalize misclassifications of the fraudulent (minority) class, improving its detection.scale_pos_weight
in XGBoost, setting it to the ratio of negative to positive samples. This parameter directly scales the gradient of positive samples, making the model more sensitive to the minority class.