Completion requirements
Read this discussion on linear correlation. You will learn what the linear correlation coefficient is, how to compute it, and what it tells us about the relationship between two variables x and y.
The Linear Correlation Coefficient
Learning Objective
- To learn what the linear correlation coefficient is, how to compute it, and what it tells us about the relationship between two variables
and
.
Figure 10.3 "Linear Relationships of Varying Strengths" illustrates linear relationships between two variables
Figure 10.3 Linear Relationships of Varying Strengths

Definition
The linear correlation coefficient for a collection of
pairs
of numbers in a sample is the number
given by the formula
where
- The linear correlation coefficient has the following properties, illustrated in Figure 10.4 "Linear Correlation Coefficient ": The value of
lies between −1 and 1, inclusive.
- The sign of
indicates the direction of the linear relationship between
and
:
- The size of
indicates the strength of the linear relationship between
and
:
Figure 10.4 Linear Correlation Coefficient R

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)
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:
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:
so that
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).
This text was adapted by Saylor Academy under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License without attribution as requested by the work's original creator or licensor.