Description Usage Arguments Details Value Source See Also
View source: R/goldenshluger_lepski.R
The Goldenshluger-Lepski method is used to estimate an optimal bandwidth for kernel density estimation from a given set of bandwidths.
1 2 3 4 5 6 7 | goldenshluger_lepski(
kernel,
samples,
bandwidths = logarithmic_bandwidth_set(1/length(samples), 1, 10),
kappa = 1.2,
subdivisions = 1000L
)
|
kernel |
S3 object of class |
samples |
numeric vector; the observations. |
bandwidths |
strictly positive numeric vector; the bandwidth set from which the bandwidth with the least estimated risk will be selected. |
kappa |
numeric scalar greater 1; a tuning parameter. |
subdivisions |
positive numeric scalar; subdivisions parameter
internally passed to |
The Goldenshluger-Lepski method aims to minimize an upper bound for the mean integrated squared error (MISE) of a kernel density estimator. The MISE is defined as the expectation of the squared L2-Norm of the difference between estimator and (unknown) true density.
This methods works with the popular bias-/variance-decomposition. A double-kernel approach is used for an estimator of the bias term as it still depends on the unknown density.
The estimator used for an upper bound of the variance depends on the tuning
parameter kappa
. The recommended value for kappa
is 1.2.
Subsequently the bandwidth with the minimal associated risk is selected.
The estimated optimal bandwidth contained in the bandwidth set.
Nonparametric Estimation, Comte [2017], ISBN: 978-2-36693-030-6
kernel_density_estimator
for more information about
kernel density estimators, pco_method
and
cross_validation
for more automatic bandwidth-selection
algorithms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.