COMPUTATION OF CORRELATION