# How do you calculate the covariance between two discrete variables?

##### 1 Answer

Nov 5, 2015

#### Explanation:

Consider

Then

#"Cov" (X,Y) = 1/n sum_(i=1)^n x_i y_i - (1/n sum_(i=1)^n x_i)(1/n sum_(i=1)^n y_i)#