本文簡要介紹 python 語言中 scipy.stats.yeojohnson_normmax
的用法。
用法:
scipy.stats.yeojohnson_normmax(x, brack=None)#
計算最佳Yeo-Johnson 變換參數。
使用最大似然估計計算輸入數據的最佳Yeo-Johnson 變換參數。
- x: array_like
輸入數組。
- brack: 2 元組,可選
使用 Optimize.brent 進行下坡括號搜索的起始間隔。請注意,這在大多數情況下並不重要;最終結果允許在這個括號之外。如果沒有,則將 optimize.fminbound 與避免溢出的邊界一起使用。
- maxlog: 浮點數
找到的最佳變換參數。
參數 ::
返回 ::
注意:
例子:
>>> import numpy as np >>> from scipy import stats >>> import matplotlib.pyplot as plt
生成一些數據並確定最佳
lmbda
>>> rng = np.random.default_rng() >>> x = stats.loggamma.rvs(5, size=30, random_state=rng) + 5 >>> lmax = stats.yeojohnson_normmax(x)
>>> fig = plt.figure() >>> ax = fig.add_subplot(111) >>> prob = stats.yeojohnson_normplot(x, -10, 10, plot=ax) >>> ax.axvline(lmax, color='r')
>>> plt.show()
相關用法
- Python SciPy stats.yeojohnson_normplot用法及代碼示例
- Python SciPy stats.yeojohnson_llf用法及代碼示例
- Python SciPy stats.yeojohnson用法及代碼示例
- Python SciPy stats.yulesimon用法及代碼示例
- Python SciPy stats.anderson用法及代碼示例
- Python SciPy stats.iqr用法及代碼示例
- Python SciPy stats.genpareto用法及代碼示例
- Python SciPy stats.skewnorm用法及代碼示例
- Python SciPy stats.cosine用法及代碼示例
- Python SciPy stats.norminvgauss用法及代碼示例
- Python SciPy stats.directional_stats用法及代碼示例
- Python SciPy stats.invwishart用法及代碼示例
- Python SciPy stats.bartlett用法及代碼示例
- Python SciPy stats.levy_stable用法及代碼示例
- Python SciPy stats.page_trend_test用法及代碼示例
- Python SciPy stats.itemfreq用法及代碼示例
- Python SciPy stats.exponpow用法及代碼示例
- Python SciPy stats.gumbel_l用法及代碼示例
- Python SciPy stats.chisquare用法及代碼示例
- Python SciPy stats.semicircular用法及代碼示例
- Python SciPy stats.gzscore用法及代碼示例
- Python SciPy stats.gompertz用法及代碼示例
- Python SciPy stats.normaltest用法及代碼示例
- Python SciPy stats.dirichlet_multinomial用法及代碼示例
- Python SciPy stats.genlogistic用法及代碼示例
注:本文由純淨天空篩選整理自scipy.org大神的英文原創作品 scipy.stats.yeojohnson_normmax。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。