A method for analyzing temporal patterns of variability