The Logic of Scientific Inference