statsmodels.nonparametric.kernels_asymmetric.kernel_pdf_gamma2(x, sample, bw)[source]

Gamma kernel for density, pdf, estimation with boundary correction.

xarray_like, float

Points for which density is evaluated. x can be scalar or 1-dim.

samplendarray, 1-d

Sample from which kde is computed.


Bandwidth parameter, there is currently no default value for it.

Components for kernel estimation



Bouezmarni, Taoufik, and Olivier Scaillet. 2005. “Consistency of Asymmetric Kernel Density Estimators and Smoothed Histograms with Application to Income Data.” Econometric Theory 21 (2): 390–412.


Chen, Song Xi. 2000. “Probability Density Function Estimation Using Gamma Krnels.” Annals of the Institute of Statistical Mathematics 52 (3): 471–80.

Last update: Feb 28, 2024