The Logic of Experimental Design