A quantitative analysis of analogy by similarity