If one wants to know the degree of a relationship, the correlation between two variables can be examined. Correlations can be quantified by computing a correlation coefficient. This entry first describes a concept central to correlation, covariance, and then discusses calculation and interpretation of correlation coefficients.
Covariance indicates the tendency in the linear relationship for two random variables to covary (or vary together) that is represented in deviations measured in the unstandardized units in which X and Y are measured. Specifically, it is defined as the expected product of the deviations of each of two random variables from its expected values or means.
The population covariance between two variables, X and Y, can be written by:
where E is the expected value or population mean.
Similarly, the sample covariance ...