detect_anomalies
Identify and score outliers in time-series data using statistical methods (z-score, MAD, IQR, or seasonal STL residuals). Returns anomalies ranked by severity.
Instructions
Flag anomalous observations; returns scored anomalies, strongest first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | zscore/mad/iqr are global; stl_residual is seasonal-aware (needs period). | zscore |
| period | No | Seasonal period, required for stl_residual. | |
| series_id | Yes | ||
| threshold | No | Score cutoff (zscore/mad/stl) or IQR fence multiplier (iqr). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| method | Yes | ||
| anomalies | Yes | Highest scores first, capped at 50. | |
| series_id | Yes | ||
| threshold | Yes | ||
| n_anomalies | Yes | ||
| baseline_std | Yes | ||
| baseline_mean | Yes |