Home/Journal of Engineering Research - Egypt/Article Record
Peer-Reviewed Article November 30, 2022

Confusion Matrix in Binary Classification Problems: A Step-by-Step Tutorial

Are you an author of this work?Link to your sovereign AfriScholar profile
Published in: Journal of Engineering Research - Egypt
Publisher: Faculty of Engineering, Tanta University • Egypt • 2356-9441 • 2735-4873
DOI: https://doi.org/10.21608/erjeng.2022.274526

Abstract

In the field of machine learning, the confusion matrix is a specific table adopted to describe and assess the performance of a classification model (e.g. an artificial neural network) for a set of test data whose actual distinguishing features are known. The learning algorithm is thus of the supervised learning category. For an n-class classification problem, the confusion matrix is square with n rows and n columns. The rows represent the class actual samples (instances) which are the inputs to the classifier, while the columns represent the class predicted samples, the classifier outputs. (The converse is also valid, i.e. the two dimensions 'actual' and 'predicted' can be assigned to columns and rows, respectively). Binary as well as multiple-class classifiers can be dealt with. It is worth noting that the term 'matrix' here has nothing to do with the theorems of matrix algebra; it is regarded just as an information-conveying table. The descriptive word ‘confusion’ stems from the fact that the matrix clarifies to what extent the model confuses the classes — mislabels one as another. The essential concept was introduced in 1904 by the British statistician Karl Pearson (1857 — 1936).

Download Full Text PDFView at PublisherCrossref RecordCrossref XML

Verified Citation Velocity

Recorded scholarly citations in African and international peer-reviewed literature

90
Total Citations

Citations are continuously tracked and harvested across continental OJS endpoints and OpenAlex feeds.