The relationship between two variables, X and Y, can be measured by the covariance of X and Y divided by the square root of their individual variances. This method helps us understand how these variables tend to change together. It is important to note that this measurement is influenced by the amount of variation in each individual variable. Therefore, it is crucial to consider both the covariance and variances when analyzing the relationship between two variables.