The expected energy of a random physical state is the expectation of its energy observable. For discrete states with probabilities and energies , it is , provided the sum is defined. In the canonical ensemble, gives for energy levels independent of , where is the partition function. This distinguishes an average over possible states from the energy measured in one realization; the variance quantifies the remaining fluctuations.
New to topics? Read the docs here!