Run probabilities and the motion of a particle on a given path