Skip to Content
Hands-On Unsupervised Learning with Python
book

Hands-On Unsupervised Learning with Python

by Giuseppe Bonaccorso
February 2019
Intermediate to advanced
386 pages
9h 54m
English
Packt Publishing
Content preview from Hands-On Unsupervised Learning with Python

Histograms

The simplest way to find out an approximation of the probability density function is based on a frequency count. If we have a dataset X containing m samples xi ∈ ℜ (for simplicity, we are considering only univariate distributions, but the process is exactly equivalent for multidimensional samples), we can define m and M as follows:

The interval (m, M) can be split into a fixed number b of bins (which can have either the same or different widths denoted as w(bj) so that np(bj) corresponds to the number of samples included into the bin bj. At this point, given a test sample xt, it's easy to understand that the approximation of the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Unsupervised Learning Using Python

Hands-On Unsupervised Learning Using Python

Ankur A. Patel
Introduction to Machine Learning with Python

Introduction to Machine Learning with Python

Andreas C. Müller, Sarah Guido

Publisher Resources

ISBN: 9781789348279Supplemental Content