Adaptive Experimental Design and Counterfactual Inference