How to resample continuous random variables based on a 2D probability density function
Mostra commenti meno recenti
I have two-dimensional data and n number of data. I can have the Kernel density estimation of this data, how can I generate more data based on this distribution?
Risposte (1)
Arun Mathamkode
il 26 Set 2018
0 voti
I believe the randsample function will be helpful to you. You can use the density estimate from the kernel density estimation as the weights in randsample. You can also use Metropolis-Hastings sample method ( mhsample ) but it may be more suited if you have an analytical expression of the pdf.
Categorie
Scopri di più su Kernel Distribution in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!