Abstract
Histogram and kernel estimators are usually regarded as the two main classical data-based nonparametric tools to estimate the underlying density functions for some given data sets. In this paper we will integrate them and define a histogram-kernel error based on the integrated square error between histogram and binned kernel density estimator, and then exploit its asymptotic properties. Just as indicated in this paper, the histogram-kernel error only depends on the choice of bin width and the data for the given prior kernel densities. The asymptotic optimal bin width is derived by minimizing the mean histogram-kernel error. By comparing with Scott’s optimal bin width formula for a histogram, a new method is proposed to construct the data-based histogram without knowledge of the underlying density function. Monte Carlo study is used to verify the usefulness of our method for different kinds of density functions and sample sizes.
Similar content being viewed by others
References
Beer, C.F., Swanepoel, J.W.H. Simple and effective number-of-bins circumference selectors for a histogram. Statistics and Computing, 9: 27–35 (1999)
Bowman, A.W. An alternative method of cross-validation for the smoothing of density estimates. Biometrika, 71: 353–360 (1984)
Cencov, N.N. Estimation of an unknown distribution density from observations. Soviet Math., 3: 1159–1562 (1962)
Daly, J.E. The construction of optimal histogram. Commun. Statist. Theory Meth., 17(9): 2921–2931 (1988)
Devroye, L. The double kernel method in density estimation”, Annales de L’Institut Henri Poincare, 25: 533–580 (1989)
Faraway, J.J., Jhun, M. Bootstrap choice of bandwidth for density estimation. Journal of Statistical Planning and Inference, 85: 1119–1122 (1990)
Freedman, D., Diaconis, P. On the histogram as a density estimation: L 2 theory. Zeitschrift für Wahrscheinlichkeitstheorie und verwandte Gebiete, 57: 453–476 (1981)
He, K., Meeden, G. Selecting the number of bins in a histogram: A decision theoretical approach. Journal of Statistical Planning and Inference, 61: 49–59 (1997)
Parzen, E. Nonparametric statistical data modeling (with discussion). Journal of the American Statistical Association, 74: 105–131 (1979)
Rosenblatt, M. Remarks on some nonparametric estimates of a density function. Annals of Mathematical Statistics, 27: 832–837 (1956)
Rudemo, M. Empirical choice of histogram and kernel density estimators. Scandinavian Journal of Statistics, 9: 65–78 (1982)
Sain, S.R., Scott, D.W. On locally adaptive density estimation. Journal of the American Statistical Association, 91: 1525–1534 (1996)
Scott, D.W. On Optimal and Data-Based Histograms. Biometrika, 66: 605–610 (1979)
Scott, D.W., Terrell, G.R. Biased and unbiased cross-validation in density estimation. Journal of the American Statistical Association, 82: 1131–1146 (1987)
Scott, D.W. Multivariate density estimation-Theory, practice and visualization. John Wiley & Sons, New York, 1992
Simonoff, J.S., Udina, F. Measuring the stability of histogram appearance when the anchor position is changed. Computational Statistics and Data Analysis, 23: 335–353 (1997)
Sturges, H.A. The choice of a class interval. Journal of the American Statistical Association, 21: 65–66 (1926)
Taylor, C.C. Bootstrap choice of the smoothing parameter in kernel density estimation. Biometrika, 76: 705–712 (1989)
Terrell, G.R. The maximal smoothing principle in density estimation. Journal of the American Statistical Association, 85: 470–477 (1990)
Terrell, G.R., Scott, D.W. Over-smoothed nonparamtric density estimates. Journal of the American Statistical Association, 80: 209–214 (1985)
Wang, X.X. Nonparametric density estimation: Histogram and binned kernel density estimation theories and their applications. Master Thesis, Graduate University of Chinese Academy of Sciences, 2007
Author information
Authors and Affiliations
Corresponding author
Additional information
Supported by the National Natural Science Foundation of China (No. 70371018, 70572074)
Rights and permissions
About this article
Cite this article
Wang, Xx., Zhang, Jf. Histogram-kernel error and its application for bin width selection in histograms. Acta Math. Appl. Sin. Engl. Ser. 28, 607–624 (2012). https://doi.org/10.1007/s10255-007-7081-y
Received:
Revised:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10255-007-7081-y