What is ROC curve and AUC?
In Turkish: ROC eğrisi ve AUC · Topic: Data and evaluation
A graph showing how a binary classifier trades off true positive rate against false positive rate as its decision threshold changes, plus a single number summarizing the area under that curve.
How does it work?
A model gives each example a probability score, and a threshold decides which scores count as “positive.” The threshold is moved step by step, and at each step the true positive rate (how many real positives are caught) and the false positive rate (how many negatives are wrongly flagged) are calculated. Joining these points produces the ROC curve. The closer the curve hugs the top-left corner, the better the model separates the classes. AUC is the area under the curve: 0.5 matches random guessing and 1 means perfect separation.
Why does it matter?
Because AUC lets models be compared without committing to one threshold, it is widely reported in medical diagnosis, fraud detection and credit scoring. A high AUC describes how well a model ranks positives above negatives. When classes are extremely imbalanced the picture can look too rosy, so precision-recall curves are often checked as well.
Example
For a model that predicts pneumonia from chest X-rays, lowering the threshold catches more sick patients but also raises false alarms for healthy ones; the ROC curve shows that trade-off in one chart.
FAQ
What AUC counts as good?
There is no single cutoff. 0.5 is chance level and 1 is perfect separation; what is good enough depends on the field and the cost of errors.
How does AUC differ from accuracy?
Accuracy is the share of correct predictions at one chosen threshold. AUC looks across all possible thresholds and measures how well the model separates the classes.