10-2. The Linear Correlation Coefficient
Last updated
Last updated
Figure 10.3 "Linear Relationships of Varying Strengths" illustrates linear relationships between two variables and of varying strengths. It is visually apparent that in the situation in panel (a), could serve as a useful predictor of , it would be less useful in the situation illustrated in panel (b), and in the situation of panel (c) the linear relationship is so weak as to be practically nonexistent. The linear correlation coefficient is a number computed directly from the data that measures the strength of the linear relationship between the two variables and .
Figure 10.3 Linear Relationships of Varying Strengths
The linear correlation coefficient has the following properties, illustrated in Figure 10.4 "Linear Correlation Coefficient ":
Figure 10.4 Linear Correlation Coefficient R
EXAMPLE 1. Compute the linear correlation coefficient for the height and weight pairs plotted in Figure 10.2 "Plot of Height and Weight Pairs".
[ Solution ]
so that
The linear correlation coefficient for a collection of pairs of numbers in a sample is the number given by the formula
where ,  ,  
The value of lies between −1 and 1, inclusive.
The sign of indicates the direction of the linear relationship between and :
If then tends to decrease as is increased.
If then tends to increase as is increased.
The size of indicates the strength of the linear relationship between and :
If is near 1 (that is, if is near either 1 or −1) then the linear relationship between and is strong.
If is near 0 (that is, if is near 0 and of either sign) then the linear relationship between and is weak.
Pay particular attention to panel (f) in Figure 10.4 "Linear Correlation Coefficient ". It shows a perfectly deterministic relationship between and , but because the relationship is not linear. (In this particular case the points lie on the top half of a circle.)
Even for small data sets like this one computations are too long to do completely by hand. In actual practice the data are entered into a calculator or computer and a statistics program is used. In order to clarify the meaning of the formulas we will display the data and related quantities in tabular form. For each pair we compute three numbers: , , and , as shown in the table provided. In the last line of the table we have the sum of the numbers in each column. Using them we compute:
The number quantifies what is visually apparent from Figure 10.2 "Plot of Height and Weight Pairs": weights tends to increase linearly with height ( is positive) and although the relationship is not perfect, it is reasonably strong ( is near 1).