Learning predictive statistics from temporal sequences: Dynamics and strategies