Precision-Recall and ROC Curves
Consider a binary classification task, and a real-valued predictor, where higher values denote more confidence that an instance is positive. By setting a fixed threshold on the output, we can trade-off recall (=true positive rate) versus false positive rate (resp. precision).
Depending on the relative class frequencies, ROC and P/R curves can highlight different properties; for details, see e.g., Davis & Goadrich, 'The Relationship Between Precision-Recall and ROC Curves', ICML 2006.
Cite As
Stefan Schroedl (2026). Precision-Recall and ROC Curves (https://uk.mathworks.com/matlabcentral/fileexchange/21528-precision-recall-and-roc-curves), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox >
- Industries > Biotech and Pharmaceutical > ROC - AUC >
Tags
Acknowledgements
Inspired: Lynx MATLAB Toolbox
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
