compute msd result

X_i and X_0