SciPy

scipy.stats.gaussian_kde.scotts_factor

gaussian_kde.scotts_factor(self)[source]

Computes the coefficient (kde.factor) that multiplies the data covariance matrix to obtain the kernel covariance matrix. The default is scotts_factor. A subclass can overwrite this method to provide a different method, or set it through a call to kde.set_bandwidth.