How do I generate samples from multivariate kernel density estimated distribution?
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Linus Schumacher
am 6 Aug. 2018
Kommentiert: Linus Schumacher
am 13 Aug. 2020
Unlike the univariate counterpart, there is no documentation for how to draw random samples from a multivariate kernel density estimation, as obtained from mvksdensity.
One possibility would be to query the mvksdensity at uniform random points, and accept the samples with the right probability.
Presumably one could replicate the estimated density using gmdistribution, with the number of components equal to the number of samples used in the kernel density estimation. But what is the right variance to use, and how does this relate to the bandwidth parameter used in mvksdensity?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!