score_outliers
Identify and flag financial data outliers using Z-score and IQR methods to assess risk per record.
Instructions
Scores each record in a financial dataset for outlier risk using Z-score and IQR methods across specified numeric fields. Returns per-record risk flags and a summary of flagged anomalies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| records | Yes | Array of financial records | |
| z_threshold | No | Z-score threshold above which a value is flagged (default 3.0) | |
| numeric_fields | Yes | Numeric fields to analyze for outliers |