Flag Outliers with Z-Scores

easy
Unit 1 · Statistics I0/3 to milestone

Implement zscore_outliers(values, threshold=3.0) returning the indices of values whose absolute z-score exceeds threshold. Use the population standard deviation. If the standard deviation is zero, return an empty list.

zi=xi−xˉσz_i = \frac{x_i - \bar{x}}{\sigma}
#statistics#cleaning2 visible + 1 hidden tests
solution.py · Python 3.13
Loading editor…
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Flag Outliers with Z-Scores · TechGradify