Counterfactual Reasoning and Learning Systems