Pearson R Test Example. Outliers can lead to misleading values means not robust with outliers. For this example x is.
So my code will look like the following. Then the relationship and the value of r is strong. The figure above depicts a positive correlation.
Pearson s correlation coefficient r is a measure of the strength of the association between the two variables.
Let s look at some visual examples to help you interpret a pearson correlation coefficient table. Therefore the pearson correlation coefficient between the two stocks is 0 9088. So my code will look like the following. By using the functions cor or cor test it can be calculated.