Generalization, from thermodynamics to statistical physics — LessWrong