statsmodels.nonparametric.kernel_density.KDEMultivariate.loo_likelihood

KDEMultivariate.loo_likelihood(bw, func=<function KDEMultivariate.<lambda>>)[source]

Returns the leave-one-out likelihood function.

The leave-one-out likelihood function for the unconditional KDE.

Parameters:
bwarray_like

The value for the bandwidth parameter(s).

funccallable, optional

Function to transform the likelihood values (before summing); for the log likelihood, use func=np.log. Default is f(x) = x.

Notes

The leave-one-out kernel estimator of fi is:

fi(Xi)=1(n1)hj=1,jiKh(Xi,Xj)

where Kh represents the generalized product kernel estimator:

Kh(Xi,Xj)=s=1qhs1k(XisXjshs)

Last update: Oct 03, 2024