Is it possible to have different Pearson coefficients over the same input data?
Asked
Active
Viewed 27 times
1 Answers
1
Pearson coefficient is the ratio between the covariance of two variables and the product of their standard deviations. If the data is same, their standard deviation, mean, covariance and hence Pearson coefficient will be same. So, if you are calculating the Pearson coefficient between the same variables of same input data, then no, it can't be different.
shi.inu
- 120
- 10
-
but then how to explain I have different coefficients for same input? – SSSOF Jul 20 '23 at 14:03
-
Can you please show your code? – shi.inu Jul 20 '23 at 14:50
-
I am using this https://commons.apache.org/proper/commons-math/javadocs/api-3.6.1/org/apache/commons/math3/stat/correlation/PearsonsCorrelation.html#PearsonsCorrelation() – SSSOF Jul 20 '23 at 15:48
-
we can't really help you without data / hint about your code... – Lucas Morin Jul 21 '23 at 09:21