aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance/dataset/calculate.py
blob: 6aada8275147c12b5b7a60a5017df550a039e76d (about) (plain)
1
2
3
4
5
6
7
import scipy.stats

def correlation(a1, a2):
    re = []
    re.append(scipy.stats.pearsonr(a1, a2))
    re.append(scipy.stats.spearmanr(a1, a2))
    return re