0
$\begingroup$

Hi i got the following roc curve:

enter image description here

What does this mean? has this to do with overfitting? Is my data wrong preprocessed?

i do not understand and would appreciate an answer.

$\endgroup$

2 Answers 2

1
$\begingroup$

You cannot see overfitting in this curve, because to evaluate overfitting, you need to have training and validation losses, and a ROC curve does not present that.

The only informationn you can obtain from this curve is that for your dataset, a random forest is better classifier than KNN or logistic regression, nothing more.

$\endgroup$
1
$\begingroup$

The Receiver Operating Characteristic (ROC) Curve that you are showing helps in evaluating and comparing the performance at binary classification of machine learning models (see article). For different thresholds (not shown) of the model's output probability of the positive class, the ROC curve shows the Sensitivity (True Positive Rate) vs. 1-Specificity (False Positive Rate) for the binary classification task. Thus, you can see how changing the threshold changes the Sensitivity and Specificity. Generally, setting the threshold low results in high Sensitivity and low Specificity. As the threshold is increased, the Sensitivity decreases and Specificity increases.

The area under the ROC curve (AUC) is a measure of how well the model performs. If the model were presented with all possible pairs of positive and negative examples from your dataset, the AUC is the proportion of pairs that the model would correctly identify which is which. The maximum value that AUC can have is 1, and this is the AUC a "perfect" classifier would have. The diagonal line indicates the performance of a naïve model (a dummy classifier) that predicts randomly, and as such, the AUC for the diagonal is 0.5 (i.e., coin flip). Therefore, in your example, the Logistic Regression model has the best performance and the Random Forrest model has the worst performance.

You only have the ROC curves for the test set. If you had the same for the training set, then you would be able to compare the AUC (i.e., a measure of model performance) on both the training and test sets and be able to evaluate for overfitting (or underfitting). For example, the model performing well on the training data (high AUC) but poorly on the test data (low AUC) would be an indication of overfitting.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .