Statistical Mechanical Analogies