Robust Outlier Detection with MAD - Quant Researcher Interview Question
Difficulty: Medium
Category: statistical_analysis
Asked at: D.E. Shaw, WorldQuant, Two Sigma, AQR Capital Management, G-Research
Topics: statistics, outliers, numpy, data_cleaning
Problem Description
Financial time series data frequently contain noise and anomalies that skew standard deviation calculations, rendering traditional Z-scores unreliable for outlier detection. To address this, the Median Absolute Deviation (MAD) provides a robust statistical measure of variability that is resilient to extreme outliers. This technique is essential for cleaning asset price data and signal processing in quantitative trading strategies.
Task
Implement a function solution(prices, threshold) that detec
Practice this medium researcher interview question on MyntBit - the LeetCode for quants with 200+ quant interview questions for Jane Street, Citadel, Two Sigma, and other top quantitative finance firms.