Description Usage Arguments Details Value Author(s) References See Also Examples
The (S3) generic function h.mlcv
computes the maximum
likelihood cross-validation (Kullback-Leibler information)
bandwidth selector of a one-dimensional kernel density estimate.
1 2 3 4 5 |
x |
vector of data values. |
lower, upper |
range over which to maximize. The default is almost always satisfactory. |
tol |
the convergence tolerance for |
kernel |
a character string giving the smoothing kernel to be used, with default
|
... |
further arguments for (non-default) methods. |
h.mlcv
maximum-likelihood cross-validation implements for choosing
the optimal bandwidth h of kernel density estimator.
This method was proposed by Habbema, Hermans, and Van den Broeck (1971) and by Duin (1976). The maximum-likelihood cross-validation (MLCV) function is defined by:
MLCV(h) = n^-1 sum( log(hat(f(h))),i=1...n)
the estimate hat(f)(x) on the subset (X_j)_(j != i) denoting the leave-one-out estimator, can be written:
hat(f)(X_i) = 1/(n-1) h sum(K(x(j)-x(i)/h), j != i)
Define that h(mlcv) as good which approaches the finite maximum of MLCV(h):
h(mlcv)= argmax MLCV(h) = argmax n^-1 sum(log(sum(K(x(j)-x(i)/h),j != i)),i=1...n) - log((n-1)h)
x |
data points - same as input. |
data.name |
the deparsed name of the |
n |
the sample size after elimination of missing values. |
kernel |
name of kernel to use |
h |
value of bandwidth parameter. |
mlcv |
the maximal likelihood CV value. |
Arsalane Chouaib Guidoum acguidoum@usthb.dz
Habbema, J. D. F., Hermans, J., and Van den Broek, K. (1974) A stepwise discrimination analysis program using density estimation. Compstat 1974: Proceedings in Computational Statistics. Physica Verlag, Vienna.
Duin, R. P. W. (1976). On the choice of smoothing parameters of Parzen estimators of probability density functions. IEEE Transactions on Computers, C-25, 1175–1179.
plot.h.mlcv
, see lcv
in package locfit.
1 2 |
Call: Maximum-Likelihood Cross-Validation
Data: bimodal (200 obs.); Kernel: gaussian
Max CV = -1.419; Bandwidth 'h' = 0.2303
Call: Maximum-Likelihood Cross-Validation
Data: bimodal (200 obs.); Kernel: epanechnikov
Max CV = -1.414; Bandwidth 'h' = 0.448
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.