▚DATAJIN

ROC curve and AUC calculator

A receiver operating characteristic (ROC) curve shows how well a numeric score separates positives from negatives across every possible cut-off. The area under the curve (AUC) summarises that performance in one number: 0.5 is no better than chance and 1.0 is perfect discrimination.

No sign-up, nothing to install. Calculations run in your browser; the worksheets, results and charts you create are stored by AI Walay to improve DATAJIN.

When to use it

  • Evaluating a diagnostic test or biomarker against a known outcome.
  • Comparing how well a model’s predicted probabilities separate two classes.
  • Choosing a cut-off value for a screening test.

Assumptions

  • The label column contains 1 for positives and 0 for negatives.
  • Higher scores should indicate a higher likelihood of being positive.

How to run it in DATAJIN

  1. Put the test score or predicted probability in one column and the true label (1/0) in another.
  2. Open Analyze and choose ROC curve.
  3. Assign the score and label columns and click Run.

Example: open the Titanic passengers dataset (fare as the score and survived (0/1) as the label) and follow the steps above.

What you get

  • AUC with standard error and 95% confidence interval
  • Number of positives and negatives
  • Best threshold (the cut-off that maximises sensitivity + specificity − 1, Youden’s J)

How to interpret the result

An AUC of 0.7–0.8 is usually called acceptable, 0.8–0.9 excellent and above 0.9 outstanding. If the 95% CI includes 0.5 the test does not discriminate better than chance. The best threshold balances sensitivity and specificity equally; pick a different cut-off if missing a positive is costlier than a false alarm.

Frequently asked questions

What is a good AUC?

As a rough guide: 0.5 chance, 0.7–0.8 acceptable, 0.8–0.9 excellent, above 0.9 outstanding. What counts as good depends on the clinical or business stakes.

My AUC is below 0.5. What happened?

Lower scores are probably associated with positives. Reverse the score (multiply by −1) and run it again.