scipy.stats.gaussian_kde.marginal

gaussian_kde.marginal(dimensions)[source]

Return a marginal KDE distribution

Parameters
dimensionsint or 1-d array_like

The dimensions of the multivariate distribution corresponding with the marginal variables, that is, the indices of the dimensions that are being retained. The other dimensions are marginalized out.

Returns
marginal_kdegaussian_kde

An object representing the marginal distribution.

Notes

New in version 1.10.0.