I calculate the correlation of two arrays.
x = {1,2,3}; y = {1,1,1};
The PearsonsCorrelation of apache commons math returns for NaN for these arrays. i.e.
PearsonsCorrelation corr = new PearsonsCorrelation(); double result = corr.correlation(x, y);
Why not answer 0.0?
source share