f_riskScorePerforma​nce

Returns true positives, true negatives, false positives, and false negatives of a test.
9 Downloads
Updated 18 Dec 2019

View License

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
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Test Scripts in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0