KDEMultivariate.loo_likelihood()
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: bw: array_like
The value for the bandwidth parameter(s).
func: callable, optional
Function to transform the likelihood values (before summing); for the log likelihood, use
func=np.log
. Default isf(x) = x
.Notes
The leave-one-out kernel estimator of is:
where represents the generalized product kernel estimator:
© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.nonparametric.kernel_density.KDEMultivariate.loo_likelihood.html