find covariance and beta