Stochastic Calculus of Looping Sequences