Correlation Coefficient Notes
These Correlation Coefficient Notes explain how to measure how closely paired data follows a straight line, with the working shown line by line. The method finds the mean of the x values and of the y values, takes them away from each value, and multiplies and squares those differences. The totals go into the formula, which always gives a value between -1 and 1. Values near 1 or -1 mean a strong straight-line pattern, and values near 0 mean almost none. A scatter plot then shows the points.
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the mean of the x values and of the y values.
- Subtract the means from each value.
- Multiply and square the differences.
- Add up the three new columns.
- Substitute the totals into the formula.
- Work out r.
- Show the points on a scatter plot.
Formula: Correlation Coefficient Formula
This formula measures how closely the points follow a straight line. Divide the total of the products by the square root of the two squared totals multiplied together.
Useful Tips to Remember
The correlation coefficient \(r\) is always between \(-1\) and 1. Values near 1 show a strong positive link, values near \(-1\) a strong negative link, and values near 0 little or no straight-line link. Correlation does not prove that one variable causes the other. It only measures straight-line patterns, so always look at a scatter graph too.
Required knowledge
- How to find the mean, covered in the Mean Calculator.
- How to add up a column of numbers, covered in the Sum Calculator.
Where Is the Correlation Coefficient Used?
The correlation coefficient \(r\) measures how strongly two quantities move together in a straight-line pattern, on a scale from \(-1\) to \(1\). Researchers use it to check links such as height and weight, study time and exam scores, or advertising spend and sales. Investors use it to see whether two stocks rise and fall together, which helps spread risk across a portfolio. A strong correlation does not prove that one thing causes the other, but it shows which relationships are worth investigating further.
- Checking the link between study time and exam results
- Measuring how closely two stocks move together
- Testing whether advertising spend relates to sales
- Exploring links between lifestyle and health in research
- Checking whether two measurements of the same thing agree
Correlation Coefficient Practice Problems
Example 1 has a positive link between \(x\) and \(y\), and Example 2 has a negative one. Examples 3 and 4 give you two more problems of the same kind to try. Try working out \(r\) for each table yourself before checking the steps.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the mean of the x values and of the y values.
- Subtract the means from each value.
- Multiply and square the differences.
- Add up the three new columns.
- Substitute the totals into the formula.
- Work out r.
- Show the points on a scatter plot.
Formula
Formula: Correlation Coefficient Formula
This formula measures how closely the points follow a straight line. Divide the total of the products by the square root of the two squared totals multiplied together.
Step 1
Step 1 - Set up the problem.
In this problem: We are measuring how closely the points \((x, y)\) follow a straight line.
Step 2
Step 2 - Write the formula.
In this problem: The top measures how x and y move together, and the bottom scales it so r is always between \(-1\) and \(1\).
Step 3
Step 3 - Find the mean of the x values and of the y values.
In this problem: Both means are needed before the differences can be found.
Step 3a
Step 3a - Find the mean of the x values.
In this problem: The mean of the x values is \(\bar{x} = 3\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the total of the values and how many values there are.
- Substitute the total and the count into the formula.
- Divide to get the mean.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the mean of the values \(1,\; 2,\; 3,\; 4,\; 5\).
Step 2
Step 2 - Write the formula.
In this problem: The mean shares the total equally between the values, so the total is divided by how many there are.
Step 3
Step 3 - Find the total of the values and how many values there are.
In this problem: The formula needs the total \(\Sigma x\) of the values and their count \(n\).
Step 3a
Step 3a - Add the values together.
In this problem: Adding the values in order gives \(1 + 2 + 3 + 4 + 5 = 15\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(5\) values \(1,\; 2,\; 3,\; 4,\; 5\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(1 + 2 + 3 + 4 + 5 = 15\).
Final Answer
Step 3b
Step 3b - Count the values.
In this problem: Counting along the list reaches \(5\) at the last value, so \(n = 5\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(1,\; 2,\; 3,\; 4,\; 5\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(5\) at the last value, so \(n = 5\).
Final Answer
Step 4
Step 4 - Substitute the total and the count into the formula.
In this problem: Replacing \(\Sigma x\) with \(15\) and \(n\) with \(5\) gives \(\bar{x} = \frac{15}{5}\).
Step 5
Step 5 - Divide to get the mean.
In this problem: Dividing the total by the count gives \(15 \div 5 = 3\).
Final Answer
Step 3b
Step 3b - Find the mean of the y values.
In this problem: The mean of the y values is \(\bar{y} = 4\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the total of the values and how many values there are.
- Substitute the total and the count into the formula.
- Divide to get the mean.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the mean of the values \(2,\; 4,\; 5,\; 4,\; 5\).
Step 2
Step 2 - Write the formula.
In this problem: The mean shares the total equally between the values, so the total is divided by how many there are.
Step 3
Step 3 - Find the total of the values and how many values there are.
In this problem: The formula needs the total \(\Sigma x\) of the values and their count \(n\).
Step 3a
Step 3a - Add the values together.
In this problem: Adding the values in order gives \(2 + 4 + 5 + 4 + 5 = 20\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(5\) values \(2,\; 4,\; 5,\; 4,\; 5\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(2 + 4 + 5 + 4 + 5 = 20\).
Final Answer
Step 3b
Step 3b - Count the values.
In this problem: Counting along the list reaches \(5\) at the last value, so \(n = 5\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(2,\; 4,\; 5,\; 4,\; 5\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(5\) at the last value, so \(n = 5\).
Final Answer
Step 4
Step 4 - Substitute the total and the count into the formula.
In this problem: Replacing \(\Sigma x\) with \(20\) and \(n\) with \(5\) gives \(\bar{x} = \frac{20}{5}\).
Step 5
Step 5 - Divide to get the mean.
In this problem: Dividing the total by the count gives \(20 \div 5 = 4\).
Final Answer
Step 4
Step 4 - Subtract the means from each value.
In this problem: Taking \(\bar{x} = 3\) from each x value and \(\bar{y} = 4\) from each y value gives the differences.
Step 5
Step 5 - Multiply and square the differences.
In this problem: Each row's two differences are multiplied together, and each difference is squared.
Step 6
Step 6 - Add up the three new columns.
In this problem: The formula needs the total of each of the three new columns.
Step 6a
Step 6a - Add the products.
In this problem: Adding the column gives \(4 + 0 + 0 + 0 + 2 = 6\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(5\) values \(4,\; 0,\; 0,\; 0,\; 2\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(4 + 0 + 0 + 0 + 2 = 6\).
Final Answer
Step 6b
Step 6b - Add the squared x differences.
In this problem: Adding the column gives \(4 + 1 + 0 + 1 + 4 = 10\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(5\) values \(4,\; 1,\; 0,\; 1,\; 4\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(4 + 1 + 0 + 1 + 4 = 10\).
Final Answer
Step 6c
Step 6c - Add the squared y differences.
In this problem: Adding the column gives \(4 + 0 + 1 + 0 + 1 = 6\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(5\) values \(4,\; 0,\; 1,\; 0,\; 1\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(4 + 0 + 1 + 0 + 1 = 6\).
Final Answer
Step 7
Step 7 - Substitute the totals into the formula.
In this problem: Replacing the three totals gives \(r = \frac{6}{\sqrt{10 \times 6}}\).
Step 8
Step 8 - Work out r.
In this problem: Multiplying under the square root, taking the root and dividing gives \(r \approx 0.7746\). This is a strong positive linear relationship.
Step 9
Step 9 - Show the points on a scatter plot.
In this problem: The dashed lines are the two means. Points in the top right and bottom left push r up, and points in the other two corners push it down.
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the mean of the x values and of the y values.
- Subtract the means from each value.
- Multiply and square the differences.
- Add up the three new columns.
- Substitute the totals into the formula.
- Work out r.
- Show the points on a scatter plot.
Formula
Formula: Correlation Coefficient Formula
This formula measures how closely the points follow a straight line. Divide the total of the products by the square root of the two squared totals multiplied together.
Step 1
Step 1 - Set up the problem.
In this problem: We are measuring how closely the points \((x, y)\) follow a straight line.
Step 2
Step 2 - Write the formula.
In this problem: The top measures how x and y move together, and the bottom scales it so r is always between \(-1\) and \(1\).
Step 3
Step 3 - Find the mean of the x values and of the y values.
In this problem: Both means are needed before the differences can be found.
Step 3a
Step 3a - Find the mean of the x values.
In this problem: The mean of the x values is \(\bar{x} = 2.5\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the total of the values and how many values there are.
- Substitute the total and the count into the formula.
- Divide to get the mean.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the mean of the values \(1,\; 2,\; 3,\; 4\).
Step 2
Step 2 - Write the formula.
In this problem: The mean shares the total equally between the values, so the total is divided by how many there are.
Step 3
Step 3 - Find the total of the values and how many values there are.
In this problem: The formula needs the total \(\Sigma x\) of the values and their count \(n\).
Step 3a
Step 3a - Add the values together.
In this problem: Adding the values in order gives \(1 + 2 + 3 + 4 = 10\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(4\) values \(1,\; 2,\; 3,\; 4\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(1 + 2 + 3 + 4 = 10\).
Final Answer
Step 3b
Step 3b - Count the values.
In this problem: Counting along the list reaches \(4\) at the last value, so \(n = 4\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(1,\; 2,\; 3,\; 4\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(4\) at the last value, so \(n = 4\).
Final Answer
Step 4
Step 4 - Substitute the total and the count into the formula.
In this problem: Replacing \(\Sigma x\) with \(10\) and \(n\) with \(4\) gives \(\bar{x} = \frac{10}{4}\).
Step 5
Step 5 - Divide to get the mean.
In this problem: Dividing the total by the count gives \(10 \div 4 = 2.5\).
Final Answer
Step 3b
Step 3b - Find the mean of the y values.
In this problem: The mean of the y values is \(\bar{y} = 5\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the total of the values and how many values there are.
- Substitute the total and the count into the formula.
- Divide to get the mean.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the mean of the values \(8,\; 6,\; 5,\; 1\).
Step 2
Step 2 - Write the formula.
In this problem: The mean shares the total equally between the values, so the total is divided by how many there are.
Step 3
Step 3 - Find the total of the values and how many values there are.
In this problem: The formula needs the total \(\Sigma x\) of the values and their count \(n\).
Step 3a
Step 3a - Add the values together.
In this problem: Adding the values in order gives \(8 + 6 + 5 + 1 = 20\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(4\) values \(8,\; 6,\; 5,\; 1\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(8 + 6 + 5 + 1 = 20\).
Final Answer
Step 3b
Step 3b - Count the values.
In this problem: Counting along the list reaches \(4\) at the last value, so \(n = 4\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(8,\; 6,\; 5,\; 1\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(4\) at the last value, so \(n = 4\).
Final Answer
Step 4
Step 4 - Substitute the total and the count into the formula.
In this problem: Replacing \(\Sigma x\) with \(20\) and \(n\) with \(4\) gives \(\bar{x} = \frac{20}{4}\).
Step 5
Step 5 - Divide to get the mean.
In this problem: Dividing the total by the count gives \(20 \div 4 = 5\).
Final Answer
Step 4
Step 4 - Subtract the means from each value.
In this problem: Taking \(\bar{x} = 2.5\) from each x value and \(\bar{y} = 5\) from each y value gives the differences.
Step 5
Step 5 - Multiply and square the differences.
In this problem: Each row's two differences are multiplied together, and each difference is squared.
Step 6
Step 6 - Add up the three new columns.
In this problem: The formula needs the total of each of the three new columns.
Step 6a
Step 6a - Add the products.
In this problem: Adding the column gives \(-4.5 + \left(-0.5\right) + 0 + \left(-6\right) = -11\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(4\) values \(-4.5,\; -0.5,\; 0,\; -6\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(-4.5 - 0.5 + 0 - 6 = -11\).
Final Answer
Step 6b
Step 6b - Add the squared x differences.
In this problem: Adding the column gives \(2.25 + 0.25 + 0.25 + 2.25 = 5\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(4\) values \(2.25,\; 0.25,\; 0.25,\; 2.25\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(2.25 + 0.25 + 0.25 + 2.25 = 5\).
Final Answer
Step 6c
Step 6c - Add the squared y differences.
In this problem: Adding the column gives \(9 + 1 + 0 + 16 = 26\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(4\) values \(9,\; 1,\; 0,\; 16\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(9 + 1 + 0 + 16 = 26\).
Final Answer
Step 7
Step 7 - Substitute the totals into the formula.
In this problem: Replacing the three totals gives \(r = \frac{-11}{\sqrt{5 \times 26}}\).
Step 8
Step 8 - Work out r.
In this problem: Multiplying under the square root, taking the root and dividing gives \(r \approx -0.9648\). This is a strong negative linear relationship.
Step 9
Step 9 - Show the points on a scatter plot.
In this problem: The dashed lines are the two means. Points in the top right and bottom left push r up, and points in the other two corners push it down.
Final Answer
See Example 3 Hide Example 3
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the mean of the x values and of the y values.
- Subtract the means from each value.
- Multiply and square the differences.
- Add up the three new columns.
- Substitute the totals into the formula.
- Work out r.
- Show the points on a scatter plot.
Formula
Formula: Correlation Coefficient Formula
This formula measures how closely the points follow a straight line. Divide the total of the products by the square root of the two squared totals multiplied together.
Step 1
Step 1 - Set up the problem.
In this problem: We are measuring how closely the points \((x, y)\) follow a straight line.
Step 2
Step 2 - Write the formula.
In this problem: The top measures how x and y move together, and the bottom scales it so r is always between \(-1\) and \(1\).
Step 3
Step 3 - Find the mean of the x values and of the y values.
In this problem: Both means are needed before the differences can be found.
Step 3a
Step 3a - Find the mean of the x values.
In this problem: The mean of the x values is \(\bar{x} = 25\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the total of the values and how many values there are.
- Substitute the total and the count into the formula.
- Divide to get the mean.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the mean of the values \(10,\; 20,\; 30,\; 40\).
Step 2
Step 2 - Write the formula.
In this problem: The mean shares the total equally between the values, so the total is divided by how many there are.
Step 3
Step 3 - Find the total of the values and how many values there are.
In this problem: The formula needs the total \(\Sigma x\) of the values and their count \(n\).
Step 3a
Step 3a - Add the values together.
In this problem: Adding the values in order gives \(10 + 20 + 30 + 40 = 100\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(4\) values \(10,\; 20,\; 30,\; 40\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(10 + 20 + 30 + 40 = 100\).
Final Answer
Step 3b
Step 3b - Count the values.
In this problem: Counting along the list reaches \(4\) at the last value, so \(n = 4\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(10,\; 20,\; 30,\; 40\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(4\) at the last value, so \(n = 4\).
Final Answer
Step 4
Step 4 - Substitute the total and the count into the formula.
In this problem: Replacing \(\Sigma x\) with \(100\) and \(n\) with \(4\) gives \(\bar{x} = \frac{100}{4}\).
Step 5
Step 5 - Divide to get the mean.
In this problem: Dividing the total by the count gives \(100 \div 4 = 25\).
Final Answer
Step 3b
Step 3b - Find the mean of the y values.
In this problem: The mean of the y values is \(\bar{y} = 26\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the total of the values and how many values there are.
- Substitute the total and the count into the formula.
- Divide to get the mean.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the mean of the values \(15,\; 18,\; 30,\; 41\).
Step 2
Step 2 - Write the formula.
In this problem: The mean shares the total equally between the values, so the total is divided by how many there are.
Step 3
Step 3 - Find the total of the values and how many values there are.
In this problem: The formula needs the total \(\Sigma x\) of the values and their count \(n\).
Step 3a
Step 3a - Add the values together.
In this problem: Adding the values in order gives \(15 + 18 + 30 + 41 = 104\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(4\) values \(15,\; 18,\; 30,\; 41\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(15 + 18 + 30 + 41 = 104\).
Final Answer
Step 3b
Step 3b - Count the values.
In this problem: Counting along the list reaches \(4\) at the last value, so \(n = 4\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(15,\; 18,\; 30,\; 41\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(4\) at the last value, so \(n = 4\).
Final Answer
Step 4
Step 4 - Substitute the total and the count into the formula.
In this problem: Replacing \(\Sigma x\) with \(104\) and \(n\) with \(4\) gives \(\bar{x} = \frac{104}{4}\).
Step 5
Step 5 - Divide to get the mean.
In this problem: Dividing the total by the count gives \(104 \div 4 = 26\).
Final Answer
Step 4
Step 4 - Subtract the means from each value.
In this problem: Taking \(\bar{x} = 25\) from each x value and \(\bar{y} = 26\) from each y value gives the differences.
Step 5
Step 5 - Multiply and square the differences.
In this problem: Each row's two differences are multiplied together, and each difference is squared.
Step 6
Step 6 - Add up the three new columns.
In this problem: The formula needs the total of each of the three new columns.
Step 6a
Step 6a - Add the products.
In this problem: Adding the column gives \(165 + 40 + 20 + 225 = 450\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(4\) values \(165,\; 40,\; 20,\; 225\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(165 + 40 + 20 + 225 = 450\).
Final Answer
Step 6b
Step 6b - Add the squared x differences.
In this problem: Adding the column gives \(225 + 25 + 25 + 225 = 500\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(4\) values \(225,\; 25,\; 25,\; 225\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(225 + 25 + 25 + 225 = 500\).
Final Answer
Step 6c
Step 6c - Add the squared y differences.
In this problem: Adding the column gives \(121 + 64 + 16 + 225 = 426\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(4\) values \(121,\; 64,\; 16,\; 225\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(121 + 64 + 16 + 225 = 426\).
Final Answer
Step 7
Step 7 - Substitute the totals into the formula.
In this problem: Replacing the three totals gives \(r = \frac{450}{\sqrt{500 \times 426}}\).
Step 8
Step 8 - Work out r.
In this problem: Multiplying under the square root, taking the root and dividing gives \(r \approx 0.975\). This is a strong positive linear relationship.
Step 9
Step 9 - Show the points on a scatter plot.
In this problem: The dashed lines are the two means. Points in the top right and bottom left push r up, and points in the other two corners push it down.
Final Answer
See Example 4 Hide Example 4
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the mean of the x values and of the y values.
- Subtract the means from each value.
- Multiply and square the differences.
- Add up the three new columns.
- Substitute the totals into the formula.
- Work out r.
- Show the points on a scatter plot.
Formula
Formula: Correlation Coefficient Formula
This formula measures how closely the points follow a straight line. Divide the total of the products by the square root of the two squared totals multiplied together.
Step 1
Step 1 - Set up the problem.
In this problem: We are measuring how closely the points \((x, y)\) follow a straight line.
Step 2
Step 2 - Write the formula.
In this problem: The top measures how x and y move together, and the bottom scales it so r is always between \(-1\) and \(1\).
Step 3
Step 3 - Find the mean of the x values and of the y values.
In this problem: Both means are needed before the differences can be found.
Step 3a
Step 3a - Find the mean of the x values.
In this problem: The mean of the x values is \(\bar{x} = 6\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the total of the values and how many values there are.
- Substitute the total and the count into the formula.
- Divide to get the mean.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the mean of the values \(2,\; 4,\; 6,\; 8,\; 10\).
Step 2
Step 2 - Write the formula.
In this problem: The mean shares the total equally between the values, so the total is divided by how many there are.
Step 3
Step 3 - Find the total of the values and how many values there are.
In this problem: The formula needs the total \(\Sigma x\) of the values and their count \(n\).
Step 3a
Step 3a - Add the values together.
In this problem: Adding the values in order gives \(2 + 4 + 6 + 8 + 10 = 30\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(5\) values \(2,\; 4,\; 6,\; 8,\; 10\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(2 + 4 + 6 + 8 + 10 = 30\).
Final Answer
Step 3b
Step 3b - Count the values.
In this problem: Counting along the list reaches \(5\) at the last value, so \(n = 5\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(2,\; 4,\; 6,\; 8,\; 10\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(5\) at the last value, so \(n = 5\).
Final Answer
Step 4
Step 4 - Substitute the total and the count into the formula.
In this problem: Replacing \(\Sigma x\) with \(30\) and \(n\) with \(5\) gives \(\bar{x} = \frac{30}{5}\).
Step 5
Step 5 - Divide to get the mean.
In this problem: Dividing the total by the count gives \(30 \div 5 = 6\).
Final Answer
Step 3b
Step 3b - Find the mean of the y values.
In this problem: The mean of the y values is \(\bar{y} = 8\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the total of the values and how many values there are.
- Substitute the total and the count into the formula.
- Divide to get the mean.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the mean of the values \(3,\; 7,\; 5,\; 11,\; 14\).
Step 2
Step 2 - Write the formula.
In this problem: The mean shares the total equally between the values, so the total is divided by how many there are.
Step 3
Step 3 - Find the total of the values and how many values there are.
In this problem: The formula needs the total \(\Sigma x\) of the values and their count \(n\).
Step 3a
Step 3a - Add the values together.
In this problem: Adding the values in order gives \(3 + 7 + 5 + 11 + 14 = 40\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(5\) values \(3,\; 7,\; 5,\; 11,\; 14\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(3 + 7 + 5 + 11 + 14 = 40\).
Final Answer
Step 3b
Step 3b - Count the values.
In this problem: Counting along the list reaches \(5\) at the last value, so \(n = 5\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(3,\; 7,\; 5,\; 11,\; 14\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(5\) at the last value, so \(n = 5\).
Final Answer
Step 4
Step 4 - Substitute the total and the count into the formula.
In this problem: Replacing \(\Sigma x\) with \(40\) and \(n\) with \(5\) gives \(\bar{x} = \frac{40}{5}\).
Step 5
Step 5 - Divide to get the mean.
In this problem: Dividing the total by the count gives \(40 \div 5 = 8\).
Final Answer
Step 4
Step 4 - Subtract the means from each value.
In this problem: Taking \(\bar{x} = 6\) from each x value and \(\bar{y} = 8\) from each y value gives the differences.
Step 5
Step 5 - Multiply and square the differences.
In this problem: Each row's two differences are multiplied together, and each difference is squared.
Step 6
Step 6 - Add up the three new columns.
In this problem: The formula needs the total of each of the three new columns.
Step 6a
Step 6a - Add the products.
In this problem: Adding the column gives \(20 + 2 + 0 + 6 + 24 = 52\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(5\) values \(20,\; 2,\; 0,\; 6,\; 24\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(20 + 2 + 0 + 6 + 24 = 52\).
Final Answer
Step 6b
Step 6b - Add the squared x differences.
In this problem: Adding the column gives \(16 + 4 + 0 + 4 + 16 = 40\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(5\) values \(16,\; 4,\; 0,\; 4,\; 16\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(16 + 4 + 0 + 4 + 16 = 40\).
Final Answer
Step 6c
Step 6c - Add the squared y differences.
In this problem: Adding the column gives \(25 + 1 + 9 + 9 + 36 = 80\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(5\) values \(25,\; 1,\; 9,\; 9,\; 36\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(25 + 1 + 9 + 9 + 36 = 80\).
Final Answer
Step 7
Step 7 - Substitute the totals into the formula.
In this problem: Replacing the three totals gives \(r = \frac{52}{\sqrt{40 \times 80}}\).
Step 8
Step 8 - Work out r.
In this problem: Multiplying under the square root, taking the root and dividing gives \(r \approx 0.9192\). This is a strong positive linear relationship.
Step 9
Step 9 - Show the points on a scatter plot.
In this problem: The dashed lines are the two means. Points in the top right and bottom left push r up, and points in the other two corners push it down.
Final Answer
Calculator and Practice Mode
Want to check your own working? The Correlation Coefficient Calculator solves any problem you type in and shows every step, so you can compare it line by line with your answer and find exactly where a mistake crept in. When you are ready to test yourself, Correlation Coefficient Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode is available on the Plus and Pro plans.