I am using the SciPy’s
pearsonr(x,y) method and I cannot figure out why the following error is happening:
ValueError: shape mismatch: objects cannot be broadcast to a single shape
It computes the first two (I am running several thousand of these tests in a loop) and then dies. Does anyone have any ideas about what the problem might be?
r_num = n*(np.add.reduce(xm*ym))
this is the line in the pearsonr method that the error occurs on, any help would be much appreciated.