Research Article

Predicting Risk through Artificial Intelligence Based on Machine Learning Algorithms: A Case of Pakistani Nonfinancial Firms

Table 1

Error measurement using KNN, naïve Bayes, decision tree, and random forest.

TechniqueRMSEMAE

Debt-to-asset ratio KNN0.172560.08551
Debt-to-asset ratio naïve Bayes0.252660.20181
Debt-to-asset ratio decision tree0.094210.03592
Debt-to-asset ratio random forest 20.081710.03472
Debt-to-asset ratio random forest 30.099160.036
Debt-to-asset ratio random forest 50.089070.03084
Debt-to-asset ratio random forest 70.083120.03288
Debt-to-asset ratio random forest 100.080930.03134
Debt-to-asset ratio random forest 150.083650.03049