Given a time serie
a:= {a[[1]],a[[2]],a[[3]],...,a[[n]]}
how can i solve this loop with mathematica?
-------------
Y[[i]]:=Sum_(for k=1 to i) [a[[k]]-mu]
-------------
where mu is the mean of time serie a.
thanks
Paolo Tarpanelli