Skip to main content
. 2020 Apr 29;10:602. doi: 10.3389/fonc.2020.00602

Table 4.

The calculation formulas of performance metrics.

Metric *Formula
TPR TPTP+FN
TNR TNTN+FP
Accuracy TP+TNTP+FP+TN+FN
Precision TPTP+FP
AUC x=01TPR(FPR-1(x))dx, where x1 is the score for a positive instance and x0 is the score for a negative instance.
Kappa Kappa=Po-Pe1-Pe, Pe=P(TP+FP)+N(TN+FN)(T+N)2 where Po = Accuracy,
MAE 1ni=1n|p(i)-a(i)|, where p(i) is the prediction case, and a(i) is real case, n is the total cases.
*

TP is true positive, it means that the outcome from a prediction is lung adenocarcinoma (Adc) and the actual value is also Adc. FN is false negative, it means that the prediction outcome is another lung cancer histological type(Oth) while the actual value is Adc. TN is true negative, it means that both the prediction outcome and the actual value are Oth. FP is false positive, it means that the outcome from a prediction is Adc while the actual value is Oth. P is condition positive, N is condition negative, and MAE is the mean absolute errors. TPR is true positive rate, it measures the proportion of actual patients with Adc that are correctly identified. A negative result in a test with high TPR is useful for ruling in disease, it signifies a high probability of the presence of Oth. TNR is true negative rate, it measures the proportion of actual patients with Oth that are correctly identified. A test with 100% TNR will recognize all patients with Oth by testing negative, and a positive test result would definitively rule out the presence of Oth in a patient.