Pearson R Test Example. Pearson s correlation coefficient r is a measure of the strength of the association between the two variables. Then the relationship and the value of r is strong.
The correlation is above than 0 8 but below than 1. Run the pearson correlation test replace x and y with the two variables cor test x y method pearson by using my example i am interested in the correlation between the girth and height variables in the trees dataset. The pearson correlation coefficient often referred to as the pearson r test is a statistical formula that measures the strength between variables and relationships.
Pearson s correlation coefficient r types of data scatter plots measure of direction measure of strength.
The calculation of the pearson coefficient is as follows r 5 1935 266 37 5 14298 266 2 5 283 37 2 0 5. Therefore the pearson correlation coefficient between the two stocks is 0 9088. For this example x is. Outliers can lead to misleading values means not robust with outliers.