scipy.stats.rv_histogram. nnlf# rv_histogram.nnlf(theta, x)[source]# 負對數概似函數。 註解 —– 這是 -sum(log pdf(x, theta), axis=0),其中 theta 是參數(包括 loc 和 scale)。