Counterfactual prediction