How to resample continuous random variables based on a 2D probability density function
이전 댓글 표시
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?
답변 (1개)
Arun Mathamkode
2018년 9월 26일
0 개 추천
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.
카테고리
도움말 센터 및 File Exchange에서 Kernel Distribution에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!