def Corr(xs, ys):
 xs = np.asarray(xs)
 ys = np.asarray(ys)
 (meanx, varx) = MeanVar(xs)
 (meany, vary) = MeanVar(ys)
 corr = (Cov(xs, ys, meanx, meany) / math.sqrt((varx * vary)))
 return corr

def Corr ( xs , ys ) : xs = np . asarray ( xs ) ys = np . asarray ( ys ) ( meanx , varx ) = MeanVar ( xs ) ( meany , vary ) = MeanVar ( ys ) corr = ( Cov ( xs , ys , meanx , meany ) / math . sqrt ( ( varx * vary ) ) ) return corr
computes corr .