50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

kedd (version 1.0.4)

h.amise: AMISE for Optimal Bandwidth Selectors

Description

The (S3) generic function h.amise evaluates the asymptotic mean integrated squared error AMISE for optimal smoothing parameters h of r'th derivative of kernel density estimator one-dimensional.

Usage

h.amise(x, ...)
# S3 method for default
h.amise(x, deriv.order = 0, lower = 0.1 * hos, upper = 2 * hos, 
         tol = 0.1 * lower, kernel = c("gaussian", "epanechnikov", "triweight", 
         "tricube", "biweight", "cosine"), ...)

Value

x

data points - same as input.

data.name

the deparsed name of the x argument.

n

the sample size after elimination of missing values.

kernel

name of kernel to use

deriv.order

the derivative order to use.

h

value of bandwidth parameter.

amise

the AMISE value.

Arguments

x

vector of data values.

deriv.order

derivative order (scalar).

lower, upper

range over which to minimize. The default is almost always satisfactory. hos (Over-smoothing) is calculated internally from an kernel, see details.

tol

the convergence tolerance for optimize.

kernel

a character string giving the smoothing kernel to be used, with default "gaussian".

...

further arguments for (non-default) methods.

Author

Arsalane Chouaib Guidoum acguidoum@usthb.dz

Details

h.amise asymptotic mean integrated squared error implements for choosing the optimal bandwidth h of a r'th derivative kernel density estimator.

We Consider the following AMISE version of the r'th derivative of f the r'th derivative of the kernel estimate (see Scott 1992, pp 131): AMISE(h;r)=R(K(r))nh2r+1+14h4μ22(K)R(f(r+2)) The optimal bandwidth minimizing this function is: h(r)=[(2r+1)R(K(r))μ22(K)R(f(r+2))]1/(2r+5)n1/(2r+5) whereof infh>0AMISE(h;r)=2r+54R(K(r))4(2r+5)[μ22(K)R(f(r+2))2r+1]2r+12r+5n42r+5 which is the smallest possible AMISE for estimation of f(r)(x) using the kernel K(x), where R(K(r))=RK(r)(x)2dx and μ2(K)=Rx2K(x)dx.

The range over which to minimize is hos Oversmoothing bandwidth, the default is almost always satisfactory. See George and Scott (1985), George (1990), Scott (1992, pp 165), Wand and Jones (1995, pp 61).

References

Bowman, A. W. and Azzalini, A. (1997). Applied Smoothing Techniques for Data Analysis: the Kernel Approach with S-Plus Illustrations. Oxford University Press, Oxford.

Radhey, S. S. (1987). MISE of kernel estimates of a density and its derivatives. Statistics and Probability Letters, 5, 153--159.

Scott, D. W. (1992). Multivariate Density Estimation. Theory, Practice and Visualization. New York: Wiley.

Sheather, S. J. (2004). Density estimation. Statistical Science, 19, 588--597.

Silverman, B. W. (1986). Density Estimation for Statistics and Data Analysis. Chapman & Hall/CRC. London.

Wand, M. P. and Jones, M. C. (1995). Kernel Smoothing. Chapman and Hall, London.

See Also

plot.h.amise, see nmise in package sm this function evaluates the mean integrated squared error of a density estimate (deriv.order = 0) which is constructed from data which follow a normal distribution.

Examples

Run this code
## Derivative order = 0

h.amise(kurtotic,deriv.order = 0)

## Derivative order = 1

h.amise(kurtotic,deriv.order = 1)

Run the code above in your browser using DataLab