scipy.stats.Mixture.

標準差#

Mixture.standard_deviation(*, method=None)[來源]#

標準差(第二中心矩的平方根)

參數:
method{None, ‘formula’, ‘transform’, ‘normalize’, ‘quadrature’, ‘cache’}

用於計算中心第二矩的方法。並非所有方法都適用於所有分佈。請參閱 moment 以了解詳細資訊。

另請參閱

變異數
平均數

參考文獻

範例

使用所需的參數實例化分佈

>>> from scipy import stats
>>> X = stats.Normal(mu=1., sigma=2.)

評估標準差

>>> X.standard_deviation()
2.0
>>> X.standard_deviation() == X.moment(order=2, kind='central')**0.5 == X.sigma
True