Pearson and Spearman correlation coefficients are two common measures used in data analytics to quantify the strength and direction of the relationship between two variables. Here's an overview of each coefficient:

Pearson Correlation Coefficient (r)

The Pearson correlation coefficient, denoted as rrr, measures the linear relationship between two continuous variables. It ranges from -1 to 1, where:

The formula for calculating the Pearson correlation coefficient between variables X and Y with n observations is: