Remove Outliers, Then Mean and Std

Reported in interviews at AQR Capital Management Balyasny Asset Management IMC Trading Renaissance Technologies

Problem statement

You're given a list of numbers that may contain outliers. Remove the outliers, then report the mean and standard deviation of the remaining data. State the rule you use to flag an outlier and why, and describe an efficient implementation.

Show hint

Think about what each rule has to estimate from the data before it can flag anything.

Relevant roles: Data Scientist, Applied Scientist, ML Engineer and Forward Deployed Engineer.

Related free problems