Cepheid variables are yellow supergiant stars over three times the mass of the Sun that pulse in brightness over periods of days. This pulsing can be used to measure their distance from Earth. By determining a Cepheid variable's period of brightness change, its absolute magnitude can be calculated. Combined with the observed apparent magnitude, the distance can then be derived using a simple formula. Edwin Hubble used Cepheid variables to show that the Andromeda nebula and other spiral clusters contained stars far beyond the Milky Way, proving they were independent galaxies rather than nebulae within our own.