f_riskScorePerformance
Arguments: binary outcome variable obj_outcome whose dimensions are the same as obj_testScore.
Ouputs: test results (true positives, true negatives, false positives, and false negatives of a test).
The novelty is the speed of this function. The populations of true/false positives and true/false negatives are calculated without deploying any iterations over the entire population (which can require, e.g., 30 minutes to iterate over a population of 10^6).
I found this highly useful when I wrote home-brew machine learning code in MATLAB. I needed to calculate sensitivity, specificity, positive/negative predictive values, and concordance.
Cite As
bradley Nartowt (2025). f_riskScorePerformance (https://se.mathworks.com/matlabcentral/fileexchange/73713-f_riskscoreperformance), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
