Problem

Given the following pairs of data points: (2, 3), (3, 4), (4, 5), (5, 6), and (6, 7). Find the linear correlation coefficient.

Answer

Expert–verified
Hide Steps
Answer

Simplify the expression to get the final answer: \[r=\frac{375 - 500}{\sqrt{(270-400)(395-625)}}\]

Steps

Step 1 :First, we compute the sums of the x values, the y values, the square of the x values, the square of the y values, and the product of the x and y values.\[ \sum x=2+3+4+5+6=20,\quad\sum y=3+4+5+6+7=25,\quad\sum x^2=2^2+3^2+4^2+5^2+6^2=54,\quad\sum y^2=3^2+4^2+5^2+6^2+7^2=79,\quad\sum xy=2*3+3*4+4*5+5*6+6*7=75\]

Step 2 :Next, we substitute these sums into the formula for the linear correlation coefficient r: \[r=\frac{n\sum xy-\sum x\sum y}{\sqrt{(n\sum x^2-(\sum x)^2)(n\sum y^2-(\sum y)^2)}}\]

Step 3 :Substitute the values into the formula: \[r=\frac{5*75 - 20*25}{\sqrt{(5*54-20^2)(5*79-25^2)}}\]

Step 4 :Simplify the expression to get the final answer: \[r=\frac{375 - 500}{\sqrt{(270-400)(395-625)}}\]

link_gpt