Files
fn_registry/python/functions/datascience/detect_outliers.md
T
egutierrez 212875ed0d chore: auto-commit (286 archivos)
- .claude/agents/fn-orquestador/SKILL.md
- .claude/commands/fn_claude.md
- .claude/rules/INDEX.md
- .claude/rules/cpp_apps.md
- .claude/rules/ids_naming.md
- CHANGELOG.md
- apps/dag_engine/README.md
- apps/dag_engine/api.go
- apps/dag_engine/dags_migrated/example.yaml
- apps/dag_engine/dags_migrated/example_lineage_tracking.yaml
- ...

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 16:33:22 +02:00

39 lines
1.0 KiB
Markdown

---
name: detect_outliers
kind: function
lang: py
domain: datascience
version: "1.0.0"
purity: pure
signature: "def detect_outliers(data: list, threshold: float) -> list"
description: "Detecta outliers por z-score. Retorna lista de bools, True donde |z-score| > threshold."
tags: [statistics, outliers, python, pendiente-usar, validator]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: ""
imports: [math]
params:
- name: data
desc: "lista de valores numericos para detectar outliers"
- name: threshold
desc: "umbral de z-score absoluto (tipico: 2.0 para 95% confianza, 3.0 para 99%). Mayor = menos sensible."
output: "lista de booleanos paralela a data, True donde |z-score| > threshold"
tested: false
tests: []
test_file_path: ""
file_path: "python/functions/datascience/datascience.py"
---
## Ejemplo
```python
detect_outliers([1, 2, 3, 100, 2, 3], 2.0)
# [False, False, False, True, False, False]
```
## Notas
Usa z-score poblacional. Threshold tipico: 2.0 o 3.0. Si la desviacion es cero, no hay outliers.