Confusion Matrix & Cyber Security

Divesh Karkera
3 min readJun 5, 2021

Cybersecurity is the utilization of advances, cycles and controls to secure frameworks, organizations, projects, gadgets and information from digital assaults. It means to lessen the danger of digital assaults and ensure against the unapproved misuse of frameworks, organizations and innovations.

Cybersecurity is the act of ensuring frameworks, organizations, and projects from computerized assaults, here advanced assaults can be taking data or keeping an eye on another framework, and considerably more. There are network safety specialists present whose work is to secure clients or forestall the advanced assault; computerized assault is otherwise called cybercrime.

What is Confusion Matrix?

A confusion matrix is a table that is frequently used to depict the exhibition of a grouping model (or “classifier”) on a bunch of test information for which the genuine qualities are known. The confusion matrix itself is moderately easy to see, yet the connected phrasing can be confounding.

Confusion Matrix is an idea utilized to discover the exactness of the model that we make in Machine learning or clarify it as a table that is regularly used to depict the exhibition of an order model on a bunch of test information for which the genuine qualities are known.

Let’s start with an example confusion matrix for a binary classifier (though it can easily be extended to the case of more than two classes).

What would we be able to gain from this matrix?

  1. There are two potential anticipated classes: “yes” and “no”. On the off chance that we were anticipating the presence of a sickness, for instance, “yes” would mean they have the illness, and “no” would mean they don’t have the infection.
  2. The classifier made an aggregate of 165 forecasts (e.g., 165 patients were being tried for the presence of that sickness).
  3. Out of those 165 cases, the classifier anticipated “yes” multiple times, and “no” multiple times.
  4. Actually, 105 patients in the example have the infection, and 60 patients don’t.

The basic terms that the Confusion matrix has are:

  • true positives (TP): These are cases in which we predicted yes (they have the disease), and they do have the disease.
  • true negatives (TN): We predicted no, and they don’t have the disease.
  • false positives (FP): We predicted yes, but they don’t actually have the disease. (Also known as a “Type I error.”)
  • false negatives (FN): We predicted no, but they actually do have the disease. (Also known as a “Type II error.”)

There are two types of error in the confusion matrix:

  • False Negative
  • False Positive

The most perilous mistake is the False Positive [FP] blunder as the machine anticipated bogus yet it was not bogus it was valid. For instance, the machine anticipated understudy bombs however understudy was a pass.

This mistake messes up the online protection world where the devices utilized depend on AI or artificial intelligence, it might give a False Negative blunder that may cause hazardous effects.

Just Remember, We describe predicted values as Positive and Negative and actual values as True and False.

I hope I’ve given you some basic understanding of what exactly is the confusion matrix. If you like this post, a tad of extra motivation will be helpful by giving this post some claps 👏.

You can reach me at:

Linkedin: https://www.linkedin.com/in/divesh-karkera-214586179.

--

--