I have a question about bandwidth selection of kernel density estimate in scipy.stats. In the method, if we use Scott's rule, the bandwidth is equal to n**(-1./(d+4)), which means that the bandwidth is only related to the number and dimensions of samples. However, samples with the same n and d can have different variances. Do large unit datas have the same bandwidth as those with small unit? That doesn't make sense, if the data unit is large (large covariance) but the bandwidth is small (n is small), the kernel function can cover almost only one data. As a result, when using n**(-1./(d+4)), should the data be normalized (Z-score) first?
The bandwidth, in my opinion, should be related to the covariance of the data in addition to the n、d, but why is the bandwidth equal to only n**(-1./(d+4))?
see SciPy document: https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gaussian_kde.html
really need your help, guys