High-Performance EMA with Scipy - Quant Researcher Interview Question
Difficulty: Hard
Category: data_manipulation
Asked at: D.E. Shaw, Citadel, Two Sigma, AQR Capital Management, WorldQuant
Topics: scipy, numpy, signal_processing, optimization
Problem Description
Exponential Moving Averages (EMA) are critical in quantitative finance for smoothing time-series data while prioritizing recent observations through exponentially decreasing weights. Implementing these filters using optimized signal processing primitives like scipy.signal.lfilter ensures high performance and scalability for large datasets or real-time pipelines compared to standard iterative approaches.
Task
Implement the function solution(data, alpha) to compute the Exponential Moving Average
Practice this hard 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.