Which methods used in the "ksdensity" function for the selection of optimal bandwidth
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Young Jin Kang
am 7 Jan. 2016
Kommentiert: Young Jin Kang
am 7 Jul. 2016
"ksdensity" function returns the bandwidth of the kernel smoothing window. The default bandwidth is th optimal for normal densities.
Which methods used in the ksdensity for the selection of optimal bandwidth in the default bandwidth. (ex. Normal scale rules, Cross-validation; Least squares cross-validation, Biased cross-validation, ...)
Thank you.
0 Kommentare
Akzeptierte Antwort
the cyclist
am 7 Jan. 2016
If you look inside the ksdensity, you will see that it calls mvksdensity, which in turn calls the internal function apply_censoring_get_bandwidth, which calculates the bandwidth using "Scott's rule".
3 Kommentare
the cyclist
am 6 Jul. 2016
When I stated that that is "Scott's rule", I was just reading off the comment in the code. That comment could be out of date, I suppose, if the formula changed but the comment did not.
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!