The Simpson's paradox unraveled