2変量確率分布に従った乱数の発生方法について
2 views (last 30 days)
Show older comments
Kyotaro Nishimoto
on 29 Nov 2019
Answered: Hiro Yoshino
on 9 Dec 2019
2列以上の行列データから多変量のカーネル分布を作成したのち、
その分布に従う乱数を任意の数、発生させるにはどのようにすればよいでしょうか?
0 Comments
Accepted Answer
More Answers (2)
Hiro Yoshino
on 9 Dec 2019
カーネル分布というのはカーネル密度推定で得られた確率密度分布の事でしょうか?
それでしたら:
が参考になります。
また、FileExchangeからはこんなモノもあります:
多変量正規分布なら
を参考にしてみては?
1 Comment
Hiro Yoshino
on 9 Dec 2019
補足:
すぐに思いつく普通のやり方としては
pd = fitdist(x,'Kernel','Kernel','epanechnikov');
x_sampled = random(pd,N,1);
のようにやるのは上手く行きませんでしたか?
See Also
Categories
Find more on カーネル分布 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!