An activity coefficient is a term used to measure the deviations in chemical mixtures from the ideal mixture.