How do you calculate the covariance between two discrete variables?