On Causal and Anticausal Learning