You are here: Project Scarlet » Sample Statistics » Sample Correlation
Sample Statistics
Pearson’s sample correlation is a measure of the relationship between two numeric variables. It is used to summarize the bivariate relationship. To illustrate the calculations, let us use the following example.
A professor would like to investigate the relationship between student score on the midterm and the final exam. To do this, the professor collected the exam scores from n = 8 students. Using the data below, what is that correlation?
Here is the data. Note that there are two measurements on each unit (student). We are interested in the relationship between those two measurements.
Student | Midterm | Final |
---|---|---|
Identifier | Score | Score |
1 | 48 | 55 |
2 | 82 | 55 |
3 | 5 | 5 |
4 | 60 | 60 |
5 | 100 | 32 |
6 | 67 | 85 |
7 | 88 | 83 |
8 | 97 | 89 |
Calculate the correlation of this sample.
In the box below, please enter the sample correlation of the data given above, then click on the “Check your answer!” button. Please round your answer to the ten-thousandths place.
Show Formula
Show Solution
Show the R Code
Show the Excel Code
© Ole J. Forsberg, Ph.D. 2025. All rights reserved. | . | |