Kernel density estimation - Which approach is used by matlab?

3 次查看(过去 30 天)
Hi,
I used the function "ksdensity(x)" to estimate a kernel density. Due to the fact that there are in generel different approaches to do so, I would like to know which is the standard algorithm that matlab uses while estimate this density.
In the help of matlab I just found a general reference for kernel density estimators.
Does someone can help me with this additional information?
Thanks in advance!
Greets, phanta

采纳的回答

the cyclist
the cyclist 2015-8-24
I'm guessing you are referring to the documentation for the ksdensity command specifically. The broader page about kernel distributions has more discussion, and might get you what you need.
Often, looking at the code itself, for example by typing
edit ksdensity
will help you glean specific algorithmic info, but it doesn't look like it will be that helpful in this case.

更多回答(1 个)

phanta
phanta 2015-8-25
Hi,
thanks for your reply.
In the function I found the following statement:
'kernel' The type of kernel smoother to use, chosen from among
% 'normal' (default), 'box', 'triangle', and
% 'epanechnikov'
So I used the "normal" kernel, but I still not know which approach is behind that :-/
  1 个评论
the cyclist
the cyclist 2015-8-25
Did you look at the documentation to kernel distribution, which I put in my answer? There is a picture that illustrates the kernel shapes (including "normal"), and also a description of the bandwidth parameter. It all seems pretty well explained to me.
[Also, note that what you wrote here as an "answer" would have more logically been placed as a comment on my answer.]

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by