Covariance is similar to correlation but when the covariance is calculated, the data are not standardized. Therefore, the covariance is expressed in units that vary with the data and is not converted to a standardized scale of −1 to +1. Because the data are not standardized, you cannot use the covariance statistic to assess the strength of a linear relationship. To assess the strength of a relationship between two variables using a standardized scale of −1 to +1, use correlation.
In the covariance matrix in the output, the off-diagonal elements contain the covariances of each pair of variables. The diagonal elements of the covariance matrix contain the variances of each variable. The variance measures how much the data are scattered about the mean. The variance is equal to the square of the standard deviation.
hydrogen | Porosity | Strength | |
---|---|---|---|
hydrogen | 0.00072582 | ||
Porosity | 0.00357582 | 0.04512967 | |
Strength | -0.00704865 | -0.03710245 | 0.10963907 |
In these results, the covariance between hydrogen and porosity is 0.00357582, which indicates that the relationship is positive. The covariance between strength and hydrogen is about −0.00704865, and the covariance between strength and porosity is about −0.03710245. These values indicate that both relationships are negative.