Predictive probability and analogy by similarity in inductive logic