Plug-in approach of Sheater and Jones estimation bandwidth
조회 수: 10 (최근 30일)
이전 댓글 표시
Hi, there is some algorithm that has the "Plug-in approach of Sheater and Jones estimation bandwidth 1991" instead using the "optimal bandwidth for the normal distribution" . I ask that because my data is bimodal distribution and I need estimate the bandwidth of the kernel estimated with the Sheater and Jones method.
" The default is optimal for estimating normal densities [1], but you might want to choose a larger or smaller value to smooth more or less "
I have MATLAB 2020B, and there some toolbox wich could help me?
Thank you in advance
댓글 수: 0
답변 (1개)
Ayush Anand
2023년 10월 20일
Hi Maximiliano,
I understand you are trying to estimate the “bandiwidth” of your data “kernal” using the Sheater and Jones method. The "ksdensity" function in MATLAB does not directly provide an option for the same, but you can do it by specifying a custom bandwidth as follows:
data = ... % your bimodal data
% Estimate the bandwidth using the Sheather and Jones plug-in approach
n = numel(data);
h_sj = 1.06 * std(data) * n^(-1/5); % Sheather and Jones bandwidth estimation
[f, xi] = ksdensity(data, 'Bandwidth', h_sj); % Estimate the kernel density using the estimated bandwidth
Alternatively, you can also refer to the following:
I hope this helps!
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!