Covariance and correlation functions