Академический Документы
Профессиональный Документы
Культура Документы
ID: 999991355
Question1:
.51 -
.53 -
.55 +
.56 -
.58 +
.59 +
.61 -
.65 +
(i) Determine EER, (ii) compute threshold to maximize accuracy, and (iii) plot ROC for the above data.
Answer:
So from the above equation the predicted class is given in the table
.51 - +
.53 - -
.55 + -
.56 - -
.58 + -
.59 + -
.61 - -
.65 + -
FPR=FP/FP+TN =1/4=.25
TPR=TP/TP+FN=0/4=0
So from the above equation the predicted class is given in the table
.51 - +
.53 - +
.55 + -
.56 - -
.58 + -
.59 + -
.61 - -
.65 + -
FPR=FP/FP+TN =2/4=0.5
TPR=TP/TP+FN=0/4=0
So from the above equation the predicted class is given in the table
.51 - +
.53 - +
.55 + +
.56 - -
.58 + -
.59 + -
.61 - -
.65 + -
FPR=FP/FP+TN =2/4=0.5
TPR=TP/TP+FN=1/4=0.25
So from the above equation the predicted class is given in the table
.51 - +
.53 - +
.55 + +
.56 - +
.58 + -
.59 + -
.61 - -
.65 + -
FPR=FP/FP+TN =3/4=0.75
TPR=TP/TP+FN=1/4=0.25
So from the above equation the predicted class is given in the table
.51 - +
.53 - +
.55 + +
.56 - +
.58 + +
.59 + -
.61 - -
.65 + -
FPR=FP/FP+TN =3/4=0.75
TPR=TP/TP+FN=2/4=0.5
So from the above equation the predicted class is given in the table
.51 - +
.53 - +
.55 + +
.56 - +
.58 + +
.59 + +
.61 - -
.65 + -
FPR=FP/FP+TN =3/4=0.75
TPR=TP/TP+FN=3/4=0.75
So from the above equation the predicted class is given in the table
.51 - +
.53 - +
.55 + +
.56 - +
.58 + +
.59 + +
.61 - +
.65 + -
FPR=FP/FP+TN =4/4=1
TPR=TP/TP+FN=3/4=0.75
So from the above equation the predicted class is given in the table
.51 - +
.53 - +
.55 + +
.56 - +
.58 + +
.59 + +
.61 - +
.65 + +
FPR=FP/FP+TN =4/4=1
TPR=TP/TP+FN=4/4=1
(i) If we find that in a row FPR=FNR, then that value is called equal error rate
(EER).in the above table FPR=FNR is at .56 therefore the EER IS .56
(ii) From the above findings the maximum accuracy is .5 and is at .59 and .65
therefore the threshold is .59 And .65
CLASS - - + - + + - +
.51 .53 .55 .56 .58 .59 .61 .65
TP 0 0 1 1 2 3 3 4
FN 4 4 3 3 2 1 1 0
FP 1 2 2 3 3 3 4 4
TN 3 2 2 1 1 1 0 0
TPR 0 0 0.25 0.25 0.5 0.75 0.75 1
FPR 0.25 0.5 0.5 0.75 0.75 0.75 1 1
ROC CURVE Characterize the trade-off between TPR and FPR.ROC curve plots
TPR (on the y-axis) against FPR (on the x-axis) .
ROC CURVE
1
0.75
0.5
0.25
0
0 0.25 0.5 0.75 1
ROC divides the plot area into two parts. Explain what those parts signify.
ANSWER: It is a plot of the True Positive Rate (on the y-axis) versus the False
Positive Rate (on the x-axis) for every possible classification threshold. Both the
True Positive Rate and the False Positive Rate range from 0 to 1. ROC curve will
trace the 45 degree line either in this plot or on this plot and this is the case that
would call a random or the worst and so what we have concluded here is that
whenever you report a performance of binary classes of binary classifier you can
always represented by an ROC curve and that ROC curve will be in the worst case
in area at a 45-degree line. In the best-case scenario it will occupy Entire Square.
The bisected line is also called as non-discriminant line and the area above the
line is good area and the area below the line is bad area