FPR = False Positive Rate FNR = False Negative Rate
FAR = False Acceptance Rate FRR = False Rejection Rate
Are they the same? if Not, is it possible to calculate FAR and FRR from the confusion matrix?
Thank you
FPR = False Positive Rate FNR = False Negative Rate
FAR = False Acceptance Rate FRR = False Rejection Rate
Are they the same? if Not, is it possible to calculate FAR and FRR from the confusion matrix?
Thank you
Yes, they are the same.
So in order to calculate their values from the confusion matrix:
FAR = FPR = FP/(FP + TN)
FRR = FNR = FN/(FN + TP)
where FP: False positive
FN: False Negative
TN: True Negative
TP: True Positive
If you want to compute FPR and FNR (aka FAR and FRR), here is a Python code for this :
from sklearn import metrics
fpr, tpr, thresholds = metrics.roc_curve(y_true, scores)
fnr = 1-tpr
If it helps you can look at the confusion matrix as below to see that they are the same :
Action --> Accept Reject
|-----------------
Genuine | TP | FN
|-----------------
Impostor | FP | TN
Yes, they are the same. but confusion metrics can switch between positive features and negative features as we need, Biometrics can not do that.