Text this: On stochastic comparisons of energy functions with applications