[SciPy-User] R: Re: Get bandwidth from gaussian_kde

francescoboccacci@libe... francescoboccacci@libe...
Wed Feb 20 03:03:29 CST 2013


----Messaggio originale----

Da: pierre@barbierdereuille.net

Data: 20/02/2013 9.55

A: "francescoboccacci@libero.it"<francescoboccacci@libero.it>, "SciPy Users List"<scipy-user@scipy.org>

Ogg: Re: [SciPy-User] Get bandwidth from gaussian_kde

Yes, it is possible. Or more precisely, it is possible to get the covariance matrix with the 'covariance' attribute.The bandwidth is simply the square root of the covariance ...

Barbier de Reuille Pierre

On 20 February 2013 09:10, francescoboccacci@libero.it <francescoboccacci@libero.it> wrote:

Hi all,

i have a question about gaussian_kde method.

I use that method in this way:

kernel = stats.kde.gaussian_kde(values)

I think as write in the documentation "If None (default), ‘scott’ is used."

the scott method is used as default.

My question is: Is it possible to get the bandwidth  value used ? I would like

to show this value in my script.




SciPy-User mailing list



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20130220/074e2001/attachment.html 

More information about the SciPy-User mailing list