Correlation Function In Statistical Mechanics