After the baseline correction occurs autocorrelation must be performed. We do this to measure the periodicity of the spectrum to help our curve fitting algorithm. In autocorrelation we make a copy of the signal and overlay it on the original. We then shift it by an amount known as lag. Shifting the signal copy to match the period of the signal under consideration produces a maximum. Thus we notice in the figure below that the lag is roughly 500 or so.