#| Simpson's paradox in Racket Gamble. http://cplint.eu/example/inference/simpson.swinb """ From "Pearl, Judea. Causality. Cambridge university press, 2009" Simpson's paradox ... refers to the phenomenon whereby an event C increases the probability of E in a given population p and, at the same time, decreases the probability of E in every subpopulation of p. In other words, if F and ¬F are two complementary properties describing two subpopulations, we might well encounter the inequalities P(E|C)>P(E|¬C) P(E|C,F)