如何检测一组数据是否符合对数正态分布,极值I分布。
14 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
求助:
1.
x=lognrnd(20,5,1,10000)
假如我用此代码产生一组对数分布随机数,但是我不确定代码是否正确,我应该怎样检测这组数据是否真的符合对数正态分布
2.同时请教一下极值I分布随机数如何产生,怎么检测。
在网上看了一些东西,只看到正态分布随机数检测,没有看到对数正态分布和极值I分布类型数据检测方法,希望知道的朋友能够提供帮助和指点,在此谢过。。
0 Commenti
Risposta accettata
jodders
il 17 Mag 2023
1. KS检验,比如按照你的数据
x=lognrnd(20,5,1,10000);
ln_cdf=[x', cdf('logn',x',20,5)];
[h p ks cv]= kstest(x,'CDF', ln_cdf, 'alpha', 0.1) %默认是α=0.05,h=0即通过检验
2. Anderson-Darling 检验,这个比较简单
x=lognrnd(20,5,1,10000);
[h p ad cv]=adtest(x,'distribution','logn','alpha',0.1)
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su 对数正态分布 in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!