I am using Pearson's correlation coefficient to find the correlation of my data. The x values clearly increase while my y values decrease. Why is my r value positive?
r shouldn't be positive, it should be close to -1. perhaps you are looking at r^2
In my graphic calculator using LinReg r = -0.797 but when I manually do Pearson's correlation coefficient r is 1.
then you have a mistake in your manual work. can i see the work you did and i will need the original data
checking over, one minute
that sum says you have to add Numerator: $$ \large {\sum(x-\bar x)(y- \bar y) \\ = (x_1 - \bar x)\cdot (y_1 - \bar y) + (x_2 - \bar x )(y_2 - \bar y) + ... (x_6 - \bar x) (y_6 - \bar y) } $$
in the denominator you have $$ \large {\sum(x-\bar x)^2 = (x_1 - \bar x)^2 + (x_2 - \bar x )^2 + ... (x_6 - \bar x) ^2 \\ \sum(y-\bar y)^2 = (y_1 - \bar y)^2 + (y_2 - \bar y )^2 + ... (y_6 - \bar y) ^2 } $$
Thank you! :)
I modified the excel a bit, so its more clear
if click on the cells, you can see the calculation
Ok, thank you! :)
Join our real-time social learning platform and learn together with your friends!