A Method of Analysing Stellar Variability