Код: Выделить всё
from scipy.stats import norm
import numpy as np
mean = np.array([1,5])
covariance = np.matrix([[1, 0.3 ],[0.3, 1]])
distribution = norm(loc=mean,scale = covariance)
print distribution.cdf(np.array([2,4]))
Код: Выделить всё
[[ 8.41344746e-01 4.29060333e-04]
[ 9.99570940e-01 1.58655254e-01]]
Код: Выделить всё
P (X1 ≤ x1, . . . ,Xn ≤ xn)
Подробнее здесь: https://stackoverflow.com/questions/305 ... sing-scipy