During their stellar evolution , some stars pass through phases where they can become pulsating variables . Pulsating variable stars vary in radius and luminosity over time , expanding and contracting with periods ranging from minutes to years , depending on the size of the star . This category include Cepheid and Cepheid @-@ like stars , and long @-@ period variables such as Mira .