After building a model, of course we will test it. And yeah we got the result. But wait, how do we measure the effectiveness of our model? That’s what confusion matrix made for.
Confusion matrix consists of four combination of predicted and actual values.

For more details, look the matrix below:

From Confusion Matrix, we can calculate Recall, Precision, Specificity, Accuracy and most importantly AUC-ROC Curve.