--- 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] uses_functions: [] uses_types: [] returns: [] returns_optional: false error_type: "" imports: [math] 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.