Some analytic problems related to statistical mechanics