Let us analyze the problem by splitting up the correlation term into partial sums of the form:
fd=1n−dn−d∑k=1(xk−ˉxn)(xk+d−ˉxn)The correlation term of the error can now be rewritten in terms of fd
2n∑k<l(xk−ˉxn)(xl−ˉxn)=2n−1∑d=1fdThe value of fd reflects the correlation between measurements separated by the distance d in the sample samples. Notice that for d=0, f is just the sample variance, var(x). If we divide fd by var(x), we arrive at the so called autocorrelation function
κd=fdvar(x)which gives us a useful measure of pairwise correlations starting always at 1 for d=0.