liveBook · Manning

Accuracy

As explained in Data-Driven Cybersecurity

Accuracy is the proportion of evaluated instances that a classification model labels correctly.

Accuracy is the proportion of evaluated instances a classifier labels correctly. It gives a quick overall view of performance, whether the task is identifying suspicious logins, classifying cybersecurity articles, or detecting threatening network traffic. section 12.3.1 section 12.4.1

Compare models on held-out logins

On a 30-instance test set, a random forest correctly labels every login and scores 1.00; an SVM scores about 0.87. That comparison favors the random forest on this test, but the SVM’s class-level results add context: it identifies most malicious logins while misclassifying some normal ones as malicious. section 12.3.1

Do not use accuracy alone to decide whether a security model is useful. A classification report separates precision and recall by class, while a confusion matrix shows which predictions are correct and which kinds of errors occur. These details matter when missed threats and unnecessary alerts carry different operational risks. section 12.4.1 section 12.5.1

              precision    recall  f1-score   support

           0       0.63      1.00      0.77       126
           1       1.00      0.00      0.00        74

    accuracy                           0.63       200
   macro avg       0.81      0.50      0.39       200
weighted avg       0.77      0.63      0.49       200

The network-traffic report makes the limitation concrete: accuracy is 0.63 across 200 test instances, yet recall for class 1 is 0.00. The overall score alone would conceal that the model detected none of the instances in that class. section 12.5.1

For a decision about deployment or improvement, report accuracy alongside class-level results and the errors that matter most to the security team. Treat automated scores as evidence to investigate, not as a replacement for security expertise. section 12.5.1 section 1.7

How Data-Driven Cybersecurity covers it

How deep it goes
Defines the percentage of correct classifications and interprets test results, then qualifies them with class-level metrics rather than deriving the formula.
Examples
Compares random-forest and SVM login results and examines a neural-network report whose 0.63 accuracy masks zero recall for one class.
What it assumes
Introduces accuracy in plain language while using labeled classification tasks and training/test splits as working context.
What you can do after
Evaluate/understand it by comparing test accuracy with class-level errors before judging a security classifier useful.
How it connects
Connects accuracy to precision, recall, F1-score, classification reports, confusion matrices, and false positives.

Also explained in

Compare how 32 books explain accuracy →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Data-Driven Cybersecurity. The section links point to the parts of the book it draws on.