The state probability or the probability of finding system A in a given state having energy UnU_n is defined as \begin{equation} P_n=\frac{1}{Z}e^{-\beta U_n}, \end{equation} where ZZ is the ...