Statistical physics and model comparison Why Physicists and Bayesians care about partition functions