Premium
A practical implementation of weighted kernel density estimation for handling shape constraints
Author(s) -
Wolters Mark Anthony,
Braun Willard John
Publication year - 2018
Publication title -
stat
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.61
H-Index - 18
ISSN - 2049-1573
DOI - 10.1002/sta4.202
Subject(s) - kernel density estimation , estimator , kernel (algebra) , simple (philosophy) , computer science , process (computing) , density estimation , algorithm , variable kernel density estimation , multivariate kernel density estimation , mathematical optimization , software , kernel method , mathematics , artificial intelligence , statistics , discrete mathematics , philosophy , epistemology , support vector machine , programming language , operating system
The weighted kernel density estimator is an attractive option for shape‐restricted density estimation, because it is simple, familiar, and potentially applicable to many different shape constraints. Despite this, no reliable software implementation has appeared since the method's original proposal in 2002. We found that serious numerical and practical difficulties arise when attempting to implement the method. We overcame these difficulties and in the process discovered that the weighted method and our own recently proposed method—controlling the shape of a kernel density using an adjustment curve—can be unified in a single computational framework. This article describes our findings and introduces the R package scdensity , which can be used to easily obtain density estimates that are unimodal, bimodal, symmetric, and more. © 2018 The Authors. Stat Published by John Wiley & Sons Ltd