How to resample continuous random variables based on a 2D probability density function
1 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
Arun Mathamkode
2018-9-26
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multirate Signal Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!