Correlation is a measure of the linear relationship between two random variables. It tells us the strength and direction of the linear relationship.
Given samples \(\boldsymbol{x}\) and \(\boldsymbol{y}\) from two random variables \(X\) and \(Y\):
Positive correlation: Increasing values of \(\boldsymbol{x}\) are associated with increasing values of \(\boldsymbol{y}\).
Negative correlation: Increasing values of \(\boldsymbol{x}\) are associated with decreasing values of \(\boldsymbol{y}\).