topic badge
CanadaON
Grade 9

8.02 Correlation and r value

Lesson

Correlation coefficient

As we have seen, a correlation is a way of expressing a relationship between two variables - in particular, how strongly pairs of variables are related.

In this chapter we will be looking at linear relationships and measuring the strength of a linear correlation between variables by a quantity called the Pearson correlation coefficient (or just correlation coefficient). This coefficient is given the symbol $r$r, and takes a value between $-1$1 and $+1$+1.

 

Strength of the correlation

The correlation coefficient is a value that describes the strength and direction of a linear relationship between two variables.

The value of the correlation coefficient varies from $-1$1 to $+1$+1, where $-1$1 describes perfect negative correlation and $+1$+1 describes perfect positive correlation. Any other type of correlation corresponds to a value between these two extremes, with $0$0 describing no correlation.

We further divide up this range of values to indicate other strengths of correlation, using descriptions of weak, moderate and strong (for both positive and negative correlations). 

Positive correlation

If the correlation coefficient takes a value between $0$0 and $1$1, then it describes a positive correlation:

  • A value of $r$r close to $+1$+1 indicates a strong positive linear correlation
  • A value of $r$r that is positive but closer to $0$0 indicates a weak positive linear correlation

 

Negative correlation

If the correlation coefficient takes a value between $-1$1 and $0$0, then it describes a negative correlation:

  • A value of $r$r close to $-1$1 indicates a strong negative linear correlation
  • A value of $r$r that is negative but closer to $0$0 indicates a weak negative linear correlation

 

No correlation

If the correlation coefficient is $0$0, or very close to $0$0, it indicates that there is no linear correlation between the variables. This may be because the variables are unrelated, or it might be that they have a non-linear relation instead.

 

Important - correlation is not causation! 

Even when two variables have a strong relationship and $r$r is close to $1$1 or $-1$1, we cannot say that one variable causes change in the other variable. If asked "does change in the independent variable cause change in dependent variable?" we always write "No - correlation is not causation".

For example, it has been shown that there is a strong, positive, linear relationship between sunglasses sold and ice-cream cone sales. But we cannot say that sunglasses sales cause ice-cream cone sales. There is a third variable at work here; increase in temperature causes both variables to also increase. Increase in temperature is called a confounding variable.

Coincidence is also a plausible reason an association occurs. It's possible to find variables with unlikely strong correlations. For example, per capita consumption of cheese and deaths from being strangled by a bedsheet have been shown to have a strong correlation. But we cannot say that one causes the other! It is a coincidence.

 

Practice questions

QUESTION 1

Identify the correlation between the temperature and the number of heaters sold.

  1. A positive correlation

    A

    A negative correlation

    B

    No correlation

    C

QUESTION 2

A study found a strong correlation between the approximate number of pirates out at sea and the average world temperature.

  1. Does this mean that the number of pirates out at sea has an impact on world temperature?

    Yes

    A

    No

    B
  2. Which of the following is the most likely explanation for the strong correlation?

    Contributing variables - there are other causal relationships and variables that come in to play and these may lead to an indirect positive association between the approximate number of pirates out at sea and the average world temperature.

    A

    Coincidence - there are no other contributing factors or reasonable arguments to be made for the strong positive association between the approximate number of pirates out at sea and the average world temperature.

    B
  3. Which of the following is demonstrated by the strong correlation between the approximate number of pirates out at sea and the average world temperature?

    If there is correlation between two variables, then there must be causation.

    A

    If there is correlation between two variables, there isn't necessarily causation.

    B

    If there is correlation between two variables, then there is no causation.

    C

 

Explore this applet to see how the correlation coefficient changes. Move each point. Try having one outlier and see how much that can change the correlation coefficient. Try moving the points so they are in a perfect straight line. What happens to the correlation coefficient value?

 

Calculating the correlation coefficient $r$r

The calculation required to determine $r$r is very tricky to do by hand, but can be easily done using technology. To do so, we enter the raw data into two separate lists, then perform a linear regression analysis. This will calculate a number of values, though the only one we are interested in right now is the $r$r value.

Practice questions

Question 3

The table shows the number of fans sold at a store during days of various temperatures.

Temperature ($^\circ$°C) $6$6 $8$8 $10$10 $12$12 $14$14 $16$16 $18$18 $20$20
Number of fans sold $12$12 $13$13 $14$14 $17$17 $18$18 $19$19 $21$21 $23$23
  1. Consider the correlation coefficient $r$r for temperature and number of fans sold. In what range will $r$r be?

    $r=0$r=0

    A

    $r>0$r>0

    B

    $r<0$r<0

    C
  2. Is there a causal relationship?

    Yes

    A

    No

    B

Question 4

For the graph depicted, choose the correlation coefficient that best represents it.

Loading Graph...

  1. $1$1

    A

    $0$0

    B

    $-1$1

    C

    $-0.64$0.64

    D

Question 5

In a study, it was found that the correlation coefficient between heights of women and probability of being turned down for a promotion was found to be $-0.90$0.90.

Which is the most appropriate statement?

  1. There is no evidence of a linear relationship between heights of women and probability of being turned down for a promotion.

    A

    As the heights of women increases the probability of being turned down for a promotion increases.

    B

    As the heights of women increases the probability of being turned down for a promotion decreases.

    C

Question 6

Given the following data:

x $1$1 $4$4 $7$7 $10$10 $13$13 $16$16 $19$19
y $4$4 $4.25$4.25 $4.55$4.55 $4.4$4.4 $4.45$4.45 $4.75$4.75 $4.2$4.2
  1. Calculate the correlation coefficient and give your answer to two decimal places.

  2. Choose the best description of this correlation.

    Moderate negative

    A

    Strong positive

    B

    Weak negative

    C

    Moderate positive

    D

    Strong negative

    E

    Weak positive

    F

Outcomes

9.B3.5

Pose and solve problems involving rates, percentages, and proportions in various contexts, including contexts connected to real-life applications of data, measurement, geometry, linear relations, and financial literacy.

9.D1.3

Create a scatter plot to represent the relationship between two variables, determine the correlation between these variables by testing different regression models using technology, and use a model to make predictions when appropriate.

What is Mathspace

About Mathspace