If we designate the number of sign changes in a configuration as k, the difference in energy from the lowest energy state is 2 k. Since the energy is additive in the number of flips, the probability p of having a spin-flip at each position is independent. The ratio of the probability of finding a flip to the probability of not finding one is the Boltzmann factor: