accerealte the calculation of correlationcoefficient