Feature Selection, Python, Statistical Analysis, Data Analysis.
here. Given two arrays it can compute the p-value and the test statistic. [6] import numpy as np from scipy import stats # Right from the docs [6] x, y = [1, 2, 3, 4, 5, 6, 7], [10, 9, 2.5, 6, 4, 3, 2] res = stats.pearsonr(x, y) res The result test statistic is the correlation value. The p-value is