Posts

Confusion Matrix and Cyber Security

Image
  Confusion Matrix:    In the field of machine learning  and specifically the problem of statistical   classification , a  confusion matrix , also known as an error matrix,  is a specific table layout that allows visualization of the performance of an algorithm, typically a supervised learning  one . Each row of the matrix  represents the instances in an actual class while each column represents the instances in a predicted class, or vice versa – both variants are found in the literature. Confusion Matrix Case Study Let’s pretend we have a two-class classification problem of predicting whether a photograph contains a boy or a girl. We have a test dataset of 10 records with expected outcomes and a set of predictions from our classification algorithm. Expected Predicted Boy Girl Boy Boy Girl Girl Boy Boy Girl Boy Girl Girl Girl Girl Boy Boy Boy Girl Girl Girl The algorithm made 7 of 10 predictions correct with an accuracy of 70% accuracy= total correct predictions/total predictions*100 a