Outlier detection / 离群观测检测(Z / 改良Z / IQR)
preprocess_outliersOutlier detection / 离群观测检测(Z / 改良Z / IQR) | USE WHEN: the user suspects a measurement column contains outliers and wants them flagged objectively (Z / modified Z / IQR) | ALIASES: 离群值, 异常值, 离群点, outlier, Z-score, modified Z, IQR, boxplot rule, extreme value | RETURNS: 逐点 points(原始值+统计量+是否离群)、outliers、n_outliers、均值/SD/中位数/MAD/四分位、方法学说明;Z 法给 0 个时会附「小样本不敏感,建议改 iqr」的提示
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"values": "<values>"
},
"name": "preprocess_outliers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | zscore(|Z|>3,小样本不敏感)/ modified_z(|MZ|>3.5,推荐)/ iqr(1.5×IQR) | |
| values | Yes | 一维数值数组,**至少 3 个观测**(少于 3 个无法评估离群,直接 400)。返回离群点索引与判定依据,不自动删除数据。 |