Anti-Stokes frequency refers to the phenomenon where scattered light has a higher frequency (and thus higher energy) than the incident light. This occurs when the scattered photons gain energy from the vibrational energy levels of molecules. In contrast, Stokes scattering involves photons losing energy to the molecular vibrations, resulting in lower frequency scattered light.