def correlation(X, Y, condition=None, **kwargs):
    return covariance(X, Y, condition, **kwargs)/(std(X, condition, **kwargs)
     * std(Y, condition, **kwargs))
Correlation of two random expressions, also known as correlation
dataset/ETHPy150Open sympy/sympy/sympy/stats/rv_interface.py/correlation