Text this: Partition function approach to non-Gaussian likelihoods: information theory and state variables for Bayesian inference