Skip to content

Instantly share code, notes, and snippets.

@emilyhunt
Created December 19, 2025 09:13
Show Gist options
  • Select an option

  • Save emilyhunt/f656ac05e42e32efa723df7e741b006f to your computer and use it in GitHub Desktop.

Select an option

Save emilyhunt/f656ac05e42e32efa723df7e741b006f to your computer and use it in GitHub Desktop.
Making histograms is a common way to estimate the true density distribution of a sample. But how can we choose the number of histogram bins? And if we get fancy and use kernel density estimation (KDE), how do we choose a KDE bandwidth?
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment