Quantifying dynamics and variability in neural systems