If the group of atoms is in thermal equilibrium, it can be shown from Maxwell–Boltzmann statistics that the ratio of the number of atoms in each state is given by the ratio of two Boltzmann distributions, the Boltzmann factor: