Causal Inference as a Prediction Problem