0 views
How is an ROC curve constructed, in general (what is the algorithm)?
Asked at
AI answer
A ROC curve is constructed by varying the classifier threshold and calculating the following for each threshold:
- TPR (recall) = TP / (TP + FN)
- FPR = FP / (FP + TN)
The points (FPR, TPR) are then plotted, with FPR on the X-axis and TPR on the Y-axis. Thresholds are usually swept from the strictest to the most lenient; connecting the points produces the ROC curve. The area under the curve (AUC) summarizes ranking quality: 1 is perfect, while around 0.5 is the level of random ranking. Calculations use the true labels and the model’s continuous scores, such as probabilities, rather than only the predicted classes.
Also asked at СБЕР
Similar questions
- What does ROC-AUC measure, and what would its value be for a model that gives everyone the same prediction versus a model that makes random predictions?
- What is ROC-AUC?
- What is the ROC-AUC of a model that assigns a constant score of 0.9 to every sample when the positive class makes up 10% of the data?
- Suppose we have two models: one has an ROC-AUC of 0.3, and the other has an ROC-AUC of 0.6. Which one is better? Can we quickly improve the model with an ROC-AUC of 0.3?
- What statistical distribution do the probabilistic outputs of a binary classifier follow, and what kind of distribution would you want to see in practice?