Calculate Pearson’s correlation coefficient (r) to measure the strength and direction of the linear relationship between two variables.