How to make a rOC curve
-
Paste your data
Paste cells from a spreadsheet or upload a CSV with a number column for Score or false positive rate and a number column for Label (0 or 1) or true positive rate, plus a text column for Model if you have it.
-
Check the columns
The rOC curve picks its columns for you. Change any of them under Data.
-
Style it and download
Under Style, pick a look, colours, background and size, add a title and source, then download SVG or PNG.
What is a rOC curve?
A ROC curve shows how a binary classifier trades true positives against false positives as its decision threshold moves from strict to lenient. The area under the curve (AUC) sums that up in one number between 0.5 and 1.
How to read it
Each point is one threshold: its height is the true positive rate (recall) and its distance from the left is the false positive rate. A curve that bows toward the top left corner separates the classes well; one that hugs the dashed diagonal is no better than chance. An AUC of 0.8 means a randomly chosen positive gets a higher score than a randomly chosen negative 80% of the time.
When to use it
Judge how well a classifier separates two outcomes at every threshold. It is one of the correlation charts, which show how two or more measures move together.
When positives are rare, say under 5% of cases, a ROC curve can look strong while most flagged cases are false alarms; a precision-recall curve shows that better. To see the errors at one chosen threshold, use a Confusion matrix.
Tips for a better rOC curve
- Give it raw scores and true 0/1 labels where you can, so every threshold is computed rather than a handful you picked in advance.
- Compare models on the same test set by adding a model column, since AUC values from different data are not comparable.
- Use held-out data, not the training set, or the curve will look better than the model really is.
Data you need
One row per item with a number column for Score or false positive rate and a number column for Label (0 or 1) or true positive rate, plus a text column for Model if you have it. Column names can be anything; the chart maker matches columns by type, and you can change the match under Data.
| Model | Score | Churned |
|---|---|---|
| Gradient boosting | 0.221 | 0 |
| Gradient boosting | 0.893 | 1 |
| Gradient boosting | 0.209 | 0 |
| Gradient boosting | 0.269 | 0 |
| Gradient boosting | 0.272 | 0 |
| Gradient boosting | 0.875 | 1 |
| Gradient boosting | 0.550 | 0 |
| Gradient boosting | 0.106 | 0 |
Other charts for the same data
More correlation charts
Questions, answered
- What is a rOC curve?
- A ROC curve shows how a binary classifier trades true positives against false positives as its decision threshold moves from strict to lenient. The area under the curve (AUC) sums that up in one number between 0.5 and 1.
- How do you read a rOC curve?
- Each point is one threshold: its height is the true positive rate (recall) and its distance from the left is the false positive rate. A curve that bows toward the top left corner separates the classes well; one that hugs the dashed diagonal is no better than chance. An AUC of 0.8 means a randomly chosen positive gets a higher score than a randomly chosen negative 80% of the time.
- How do I make a rOC curve?
- Paste your data into the chart maker with a number column for Score or false positive rate and a number column for Label (0 or 1) or true positive rate, plus a text column for Model if you have it. The rOC curve draws as you type. Then pick a look and a size and download it as SVG or PNG.
- When should I use a rOC curve?
- Judge how well a classifier separates two outcomes at every threshold. It belongs to the correlation family of charts, which show how two or more measures move together. When positives are rare, say under 5% of cases, a ROC curve can look strong while most flagged cases are false alarms; a precision-recall curve shows that better. To see the errors at one chosen threshold, use a Confusion matrix.
- Is this rOC curve maker free?
- Yes. It is free with no sign-up, your data stays in your browser, and you can download the rOC curve as SVG or PNG.