Skip to main content

Table 1 The calculation formula for the evaluation index in the training set

From: The performance of VCS(volume, conductivity, light scatter) parameters in distinguishing latent tuberculosis and active tuberculosis by using machine learning algorithm

evaluation index

calculation formula

Accuracy

\(\frac{TP+TN}{TP+FP+TN+FN}\) 

Precision

\(\frac{TP}{TP+FP}\) 

Recall

\(\frac{TP}{TP+FN}\) 

F1 SCORE

\(\frac{2\ast precesion\ast recall}{precesion+recall}\) 

MCC

\(\frac{TP\ast TN-FP\ast FN}{\sqrt{\left(TP+FP\right)\left(TP+FN\right)\left(TN+FP\right)\left(TN+FN\right)}}\) 

Secifcity

\(\frac{TN}{TN+FP}\) 

NPV

\(\frac{TN}{TN+FN}\) 

  1. Abbreviations: MCC Matthews correlation coefcient, NPV negative predictive value, TP true positive, FP false positive, TN true negative, FN false negative