[SciPy-user] stats.gaussian_kde prevent oversmoothing

Robert Kern robert.kern@gmail....
Sat Jan 3 23:05:24 CST 2009


On Sat, Jan 3, 2009 at 23:00,  <josef.pktd@gmail.com> wrote:
> I was working on an example for stats.gaussian_kde.
>
> In one example I have a 1 dimensional mixture of normal distribution,
> and the estimated distribution stats.gaussian_kde is too smooth, the
> peaks are to small compared to the original distribution.
>
> What's the easiest way to reduce the bandwidth for stats.gaussian_kde?
> I didn't find any direct option. Is subclassing the only way?

Currently, yes. Feel free to enhance the code to allow for more flexibility.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco


More information about the SciPy-user mailing list