Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Unsupervised Learning with Python

You're reading from  Hands-On Unsupervised Learning with Python

Product type Book
Published in Feb 2019
Publisher Packt
ISBN-13 9781789348279
Pages 386 pages
Edition 1st Edition
Languages
Author (1):
Giuseppe Bonaccorso Giuseppe Bonaccorso
Profile icon Giuseppe Bonaccorso
Toc

Table of Contents (12) Chapters close

Preface 1. Getting Started with Unsupervised Learning 2. Clustering Fundamentals 3. Advanced Clustering 4. Hierarchical Clustering in Action 5. Soft Clustering and Gaussian Mixture Models 6. Anomaly Detection 7. Dimensionality Reduction and Component Analysis 8. Unsupervised Neural Network Models 9. Generative Adversarial Networks and SOMs 10. Assessments 11. Other Books You May Enjoy

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 probability can be easily obtained by detecting the bin containing xt and using the following formula:

Before analyzing the pros and cons of this approach, let's consider a simple example based on the distribution of...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime