Detecting Simpson's Paradox