Intrusion and anomaly detection, malware analysis, threat intelligence, phishing, security logs and incident response: defensive experiments that really compute in your browser on synthetic data, with algorithms, datasets, projects and quizzes.
- Home
- AI Intrusion Detection
- Cyber Anomaly Detection
- Malware Analysis
- Cyber Threat Intelligence
- AI Network Security
- AI Phishing Detection
- AI Security Log Analytics
- AI Incident Response
- Algorithm Library
- Datasets Repository
- Learning Roadmap
- Projects
- Quizzes and Challenges
- Experiment Workbench
- Research and Metrics
- My experiments
- Scientific references
- Glossary and FAQ
Security evaluation metrics
AI Intrusion Detection · Lesson Beginner
The idea
Recall is the share of attacks detected, precision the share of alerts that are real, and FPR the share of normal traffic wrongly alerted.
Explanation
ROC-AUC measures ranking ability but can look high when attacks are rare; the PR curve is more informative then (Saito & Rehmsmeier; Davis & Goadrich). The decision threshold sets the balance between false alarms and misses.
Example
At 1 million connections a day, an FPR of 0.1% means about a thousand false alarms daily.
Mathematical form
\text{Recall}=\frac{TP}{TP+FN},\quad \text{Precision}=\frac{TP}{TP+FP},\quad \text{FPR}=\frac{FP}{FP+TN}Review questions
- Compute precision from a simple confusion matrix.
- When is PR preferred over ROC?
- How does the threshold affect FPR?
Related experiments
See also
References
- Saito, Rehmsmeier (2015). The Precision-Recall Plot Is More Informative than the ROC Plot When Evaluating Binary Classifiers on Imbalanced Datasets. PLOS ONE 10(3), e0118432. doi:10.1371/journal.pone.0118432
- Davis, Goadrich (2006). The relationship between Precision-Recall and ROC curves. ICML 2006, pp. 233-240. doi:10.1145/1143844.1143874
