Dynamics: a probabilistic and geometric perspective