Got Burned By Using Z-Scores For Dirty API Data, But I Think I Figured Out Something

u/LordWeirdDude · Reddit — r/algotrading · April 20, 2026 at 17:39 · ⬆ 15 pts · 💬 8 comments  | View on Reddit ↗
AI Summary

Summary

  • The post details an algorithmic trader's shift from using rolling Z-scores to Median Absolute Deviation (MAD) for cleaning real-time price data, to better handle extreme outliers (glitches) that distort traditional standard deviation.
  • The author's thesis is that MAD, anchored on the median, provides a more robust statistical filter for noisy API data in a trading pipeline, preventing execution failures caused by distorted volatility bands.
  • Quality assessment: Well-researched technical discussion based on practical engineering experience (a "hard lesson"). It is speculative in the sense that the author is seeking peer review before final implementation, but the core insight is grounded in statistical methodology.
Score 15
Comments 8
Upvote % 100%
Full Post Text
More from Reddit — r/algotrading