Energy, Entropy, and Probabilities