Skip to content

Statistical, isolation, density, and deep-learning methods for spotting outliers in tabular data with comparison code.

CCM score
41 of 100
skills.sh installs
536
GitHub stars
396
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers point, contextual, collective, and novel-class anomalies, with use cases in fraud detection and quality monitoring
  • Includes a Python walkthrough comparing Z-score, IQR, Isolation Forest, Local Outlier Factor, and Elliptic Envelope on synthetic data
  • Reports detection counts and accuracy per method, plus score distributions and a precision-recall curve for Isolation Forest
  • Designed for practitioners building fraud, intrusion, sensor, or manufacturing monitoring pipelines on scikit-learn and pandas

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill 'Anomaly Detection' -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Anomaly Detection

Overview

Anomaly detection identifies unusual patterns, outliers, and anomalies in data that deviate significantly from normal behavior, enabling fraud detection and system monitoring.

When to Use

  • Detecting fraudulent transactions or suspicious activity in financial data
  • Identifying system failures, network intrusions, or security breaches
  • Monitoring manufacturing quality and identifying defective products
  • Finding unusual patterns in healthcare data or patient vital signs
  • Detecting abnormal sensor readings in IoT or industrial systems
  • Identifying outliers in customer behavior for targeted intervention

Detection Methods

  • Statistical: Z-score, IQR, modified Z-score
  • Distance-based: K-nearest neighbors, Local Outlier Factor
  • Isolation: Isolation Forest
  • Density-based: DBSCAN
  • Deep Learning: Autoencoders, GANs

Anomaly Types

  • Point Anomalies: Single unusual records
  • Contextual: Unusual in specific context
  • Collective: Unusual patterns in sequences
  • Novel Classes: Completely new patterns

Implementation with Python

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Category
Data Science & Analytics
First seen
Jun 3, 2026

Questions

What does the Anomaly Detection skill do?

Anomaly Detection identifies unusual patterns, outliers, and anomalies in data that deviate from normal behavior. It covers statistical methods, isolation forests, and autoencoders, aimed at fraud detection and quality monitoring.

How do I install the Anomaly Detection skill?

Run npx -y skills add aj-geddes/useful-ai-prompts --skill 'Anomaly Detection' -y in your project. Once installed, the Anomaly Detection skill lets the agent apply Z-score, IQR, Isolation Forest, Local Outlier Factor and Elliptic Envelope detection to your data.

Which detection methods does the Anomaly Detection skill cover?

The Anomaly Detection skill covers statistical methods such as Z-score, IQR and modified Z-score, plus distance-based, isolation-based, density-based and deep learning approaches. Its Python example compares Z-score, Isolation Forest, Local Outlier Factor, Elliptic Envelope and IQR on sample data.

What kinds of anomalies can the Anomaly Detection skill find?

Anomaly Detection handles point anomalies, which are single unusual records, and contextual and collective anomalies, which are unusual in context or within sequences. It also addresses novel classes of new patterns.

Which tools does the Anomaly Detection skill need to run its examples?

The Anomaly Detection skill's Python examples use pandas, numpy, matplotlib, seaborn, scikit-learn and scipy. You need a Python environment with these libraries installed before running the code.

More from aj-geddes/useful-ai-prompts

All 258

Similar to Anomaly Detection

More Data Science & Analytics