KDEMultivariateConditional.loo_likelihood()

statsmodels.nonparametric.kernel_density.KDEMultivariateConditional.loo_likelihood

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

Returns the leave-one-out conditional likelihood of the data.

If func is not equal to the default, what’s calculated is a function of the leave-one-out conditional likelihood.

Parameters:

bw: array_like

The bandwidth parameter(s).

func: callable, optional

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

Returns:

L: float

The value of the leave-one-out function for the data.

Notes

Similar to KDE.loo_likelihood`, but substitute ``f(y|x)=f(x,y)/f(x) for f(x).

© 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.KDEMultivariateConditional.loo_likelihood.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部