statsmodels.nonparametric.kernel_density.KDEMultivariate.cdf¶
-
KDEMultivariate.
cdf
(data_predict=None)[source]¶ Evaluate the cumulative distribution function.
- Parameters
- data_predictarray_like,
optional
Points to evaluate at. If unspecified, the training data is used.
- data_predictarray_like,
- Returns
- cdf_estarray_like
The estimate of the cdf.
Notes
See https://en.wikipedia.org/wiki/Cumulative_distribution_function For more details on the estimation see Ref. [5] in module docstring.
The multivariate CDF for mixed data (continuous and ordered/unordered discrete) is estimated by:
F(xc,xd)=n−1n∑i=1[G(xc−Xih)∑u≤xdL(Xdi,xdi,λ)]where G() is the product kernel CDF estimator for the continuous and L() for the discrete variables.
Used bandwidth is
self.bw
.