The so-called time-displacement autocorrelation ϕ(t) for a quantity M is given by
ϕ(t)=∫dt′[M(t′)−⟨M⟩][M(t′+t)−⟨M⟩],which can be rewritten as
ϕ(t)=∫dt′[M(t′)M(t′+t)−⟨M⟩2],where ⟨M⟩ is the average value and M(t) its instantaneous value. We can discretize this function as follows, where we used our set of computed values M(t) for a set of discretized times (our Monte Carlo cycles corresponding to moving all electrons?)
ϕ(t)=1tmax−ttmax−t∑t′=0M(t′)M(t′+t)−1tmax−ttmax−t∑t′=0M(t′)×1tmax−ttmax−t∑t′=0M(t′+t).