Anomalies in Data

How would you create a function to identify anomalies in a single-variable dataset? How would your approach change for a two-variable dataset?

Answer Panel