some apply magic for mean and std
s_i, S_i, DiDi seems ok