The correlation coefficient is the cosine of the angle formed by the vectors constructed from the x-coordinates and the y-coordinates.