Table 3 HBsAg immunoassay results classification error rate on test data for all patient cohort analysed by random forest (overall error rate = 7.30%). Table supports the results presented in Fig. 2. The top four predictor variables were used for the calculation of error rate.

From: The development of a machine learning algorithm for early detection of viral hepatitis B infection in Nigerian patients

HBsAg category

HBsAg negative

HBsAg positive

Error rate

Negative

77

13

0.144

Positive

7

177

0.038