scipy.stats.Uniform.
峰度#
- Uniform.峰度(*, method=None, convention='non-excess')[原始碼]#
峰度 (標準化四階動差)
預設情況下,這是標準化四階動差,也稱為「非超額」或「皮爾森」峰度 (例如,常態分佈的峰度為 3)。「超額」或「費雪」峰度 (標準化四階動差減 3) 可透過 convention 參數取得。
- 參數:
- method{None, ‘formula’, ‘general’, ‘transform’, ‘normalize’, ‘cache’}
用於計算標準化四階動差的方法。並非所有方法都適用於所有分佈。詳情請參閱
moment
。- convention{‘non-excess’, ‘excess’}
提供兩種不同的慣例
'non-excess'
:標準化四階動差 (皮爾森峰度)'excess'
:標準化四階動差減 3 (費雪峰度)
預設值為
'non-excess'
。
參考文獻
[1]峰度, Wikipedia, https://en.wikipedia.org/wiki/Kurtosis
範例
使用所需的參數實例化分佈
>>> from scipy import stats >>> X = stats.Normal(mu=1., sigma=2.)
評估峰度
>>> X.kurtosis() 3.0 >>> (X.kurtosis() ... == X.kurtosis(convention='excess') + 3. ... == X.moment(order=4, kind='standardized')) True