Aan de slagGa gratis aan de slag

Non-aggressive methods of dealing with outliers

Trimming a distribution is one of the easiest ways of dealing with an outlier without dropping it. If you know the natural range of values a distribution must take related to your business problem, you can use that knowledge to trim the distribution.

Or, if you have some previous knowledge about which specific values are considered outliers based on domain knowledge or experience, you can also replace them with hard-coded values.

This exercise is a chance to practice these two techniques on the apple stocks dataset.

Deze oefening maakt deel uit van de cursus

Anomaly Detection in Python

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Find the first percentile of Volume
percentile_first = ____
Code bewerken en uitvoeren