The amount that gas clumps is important to know in astronomy when trying to infer gas properties from observations. The clumping of gas, and not just the amount of gas present, affects the luminosity of gas as it cools. The clumping factor is a measure of the density variation of a medium. It is defined as: