How to Kernel Density Estimation with 2D data

9 visualizzazioni (ultimi 30 giorni)
Sam Tong
Sam Tong il 13 Set 2016
Modificato: Sam Tong il 13 Set 2016
Hi there, I am trying to create a pdf with my 2D data so that i could do kernel density estimation. Like calculating p(x|f=1) using my pdf.
It's sort of similar to the question here https://au.mathworks.com/matlabcentral/answers/195596-use-kernel-density-estimation-to-get-the-probability-of-a-new-observation, other than that i have 2D data.
I don't know whether its easier to use fitdist or ksdensity. This question here https://au.mathworks.com/matlabcentral/answers/18365-kernel-density-for-2d-data seems to be like i want but they didn't use the pdf to compute probability p(x|f=1).

Risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by