risk.validation.bayesianErrorRate
Syntax
Description
returns the Bayesian error rate, berValue = risk.validation.bayesianErrorRate(Score,BinaryResponse)berValue, where
Score is a numeric vector that represents quantities such as
rankings, predictions, probability of default (PD), or loss given default (LGD) estimates.
The values in Score can represent individual credit scores or other
credit data. BinaryResponse specifies the target state of each value in
Score.
optionally specifies the sorting direction of the unique values in
berValue = risk.validation.bayesianErrorRate(Score,BinaryResponse,SortDirection=sortdir)Score.
[
also returns berValue,Output] = risk.validation.bayesianErrorRate(___)Output, a structure containing fields with additional
metrics related to berValue: Threshold,
TruePositiveRate, FalsePositiveRate,
ErrorRate, and ReferenceErrorRate. Use this syntax
when you need detailed performance metrics across multiple threshold levels.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2026a