- Thread starter stony
- Start date

http://en.wikipedia.org/wiki/Histogram#Number_of_bins_and_width

FWIW, I've found Scott's rule (which is also an option in R's hist() function) to be best overall, but YMMV.

Then, comparing histogram and KDE, is there any condition that can indicate which method is better to use?

I am using matlab. Is there any built-in function to determine bandwidth for KDE?

Does Gaussian as kernal mean decomposing the pdf as mixture of Gaussians?

If it matters there are different rules built into software to determine the number of bins and width. I can find those.

Then, for KDE with uniform as kernal funciton, is there a good bandwidth formula that one could say in most cases perform no worse than histogram using Scott's rule?