On the logic of causal inference.