Glossary

ROC curve and AUC

Definition

The ROC curve shows how a classifier's sensitivity (share of correctly caught positives) and false-positive rate change as the decision threshold moves. The area under the curve (AUC) summarizes model quality in one number: 0.5 corresponds to chance, 1 to perfect discrimination; values above 0.8 are considered good.

Data mining & machine learning

The advantage of AUC is independence from the chosen threshold and from the class ratio, which overall accuracy lacks — with 2 % positives the model "everything negative" is 98 % accurate. You then pick the threshold by the cost of errors: for disease screening you favour sensitivity, for loan approval specificity.

Complementary tools are the confusion matrix, the gain/lift curve used in marketing and the precision-recall curve for very imbalanced classes. Compare models on test data, not training data.

In Statistica

ROC curves with AUC and classification matrices are provided by logistic regression, trees, boosting, random forests and neural networks; the Data Mining menu also has a Rapid Deployment and model comparison node that draws ROC, gain and lift for several models in one chart and computes the optimal threshold.

Related terms

Knowledgebase guides

FAQ

What AUC is sufficient?
It depends on the task: 0.7 may be usable in marketing, while medicine and credit risk expect 0.8 or more. Always compare with current practice.
How do I choose the threshold?
By the cost ratio of false positives to false negatives; the Youden index maximizes the sum of sensitivity and specificity.

Try it on your own data

Statistica free for 30 days

Full version, no credit card. Or get a pricing estimate in a minute.

We'll prepare a tailored quote. Free and with no obligation.

Tell us how many users and what analyses you need — we'll get back to you with a concrete license quote, usually within a few business days.

Try for free first
Statistica.pro

Official Statistica partner for the European Union, based in Prague, Czech Republic. Operated by DataBon s.r.o.

On the market since 1995, formerly as StatSoft CR s.r.o.

Contact

DataBon s.r.o.
Korunní 2569/108, 101 00 Prague 10, Czech Republic
+420 602 284 038
Company ID 09743804 · VAT ID CZ09743804

University licence users: please contact the licence administrator at your institution first.

© 2026 DataBon · statistica.pro · Personal data processing (GDPR) ·