KDEMultivariateConditional.pdf()

statsmodels.nonparametric.kernel_density.KDEMultivariateConditional.pdf

KDEMultivariateConditional.pdf(endog_predict=None, exog_predict=None) [source]

Evaluate the probability density function.

Parameters:

endog_predict: array_like, optional

Evaluation data for the dependent variables. If unspecified, the training data is used.

exog_predict: array_like, optional

Evaluation data for the independent variables.

Returns:

pdf: array_like

The value of the probability density at endog_predict and exog_predict.

Notes

The formula for the conditional probability density is:

f(y|x)=\frac{f(x,y)}{f(x)}

with

f(x)=\prod_{s=1}^{q}h_{s}^{-1}k
\left(\frac{x_{is}-x_{js}}{h_{s}}\right)

where k is the appropriate kernel for each variable.

© 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.pdf.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部