Get bandwidth from gaussian_kde
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. Thanks Francesco
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.
Thanks
Francesco _______________________________________________ SciPy-User mailing list SciPy-User@scipy.org http://mail.scipy.org/mailman/listinfo/scipy-user
participants (2)
-
francescoboccacci@libero.it -
Pierre Barbier de Reuille