Pearsons R
Pearsons R
Pearsons R
Sample question: Find the value of the correlation coefficient from the following table:
G LU CO S E
S U BJ EC T AG E X LEV EL Y
1 43 99
2 21 65
3 25 79
4 42 75
5 57 87
6 59 81
Step 1:Make a chart. Use the given data, and add three more columns: xy, x2, and y2.
SUBJECT AGE X GLUCOSE LEVEL Y XY X2 Y2
1 43 99
2 21 65
3 25 79
4 42 75
5 57 87
6 59 81
Step 2: Multiply x and y together to fill the xy column. For example, row 1 would be 43 × 99
= 4,257.
SUBJECT AGE X GLUCOSE LEVEL Y XY X2 Y2
1 43 99 4257
2 21 65 1365
3 25 79 1975
4 42 75 3150
5 57 87 4959
6 59 81 4779
Step 3: Take the square of the numbers in the x column, and put the result in the x2 column.
SUBJECT AGE X GLUCOSE LEVEL Y XY X2 Y2
1 43 99 4257 1849
2 21 65 1365 441
3 25 79 1975 625
4 42 75 3150 1764
5 57 87 4959 3249
6 59 81 4779 3481
Step 4: Take the square of the numbers in the y column, and put the result in the y2 column.
SUBJECT AGE X GLUCOSE LEVEL Y XY X2 Y2
Step 5: Add up all of the numbers in the columns and put the result at the bottom of the
column. The Greek letter sigma (Σ) is a short way of saying “sum of.”
SUBJECT AGE X GLUCOSE LEVEL Y XY X2 Y2
Step 1: Type your data into two columns in Excel. For example, type your “x” data into column
Step 7: Type the location of your data into the “Array 1” and “Array 2” boxes. For this example,
type “A2:A10” into the Array 1 box and then type “B2:B10” into the Array 2 box.
Step 8: Click “OK.” The result will appear in the cell you selected in Step 2. For this particular
data set, the correlation coefficient(r) is -0.1316.
Caution: The results for this test can be misleading unless you have made a scatter plot first to
ensure your data roughly fits a straight line. The correlation coefficient in Excel 2007
will always return a value, even if your data is something other than linear (i.e. exponential).
REFERENCES:
Perdue, Matthew. (2019, September 15). How to Use the Pearson Correlation Coefficient.
sciencing.com. Retrieved from https://sciencing.com/how-to-use-the-pearson-correlation-
coefficient-12751742.html
Statistics How to (2019) Correlation Coefficient: Simple Definition, Formula, Easy
Steps.Retrieved from:https://www.statisticshowto.datasciencecentral.com/probability-and-
statistics/correlation-coefficient-formula/#Pearson
WATCH:
https://www.youtube.com/watch?v=ewK9ozyRh1g#action=share
https://www.youtube.com/watch?v=2B_UW-RweSE