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
Predictive Analytics Using Rattle and Qlik Sense

You're reading from  Predictive Analytics Using Rattle and Qlik Sense

Product type Book
Published in Jun 2015
Publisher
ISBN-13 9781784395803
Pages 242 pages
Edition 1st Edition
Languages
Authors (2):
Ferran Garcia Pagans Ferran Garcia Pagans
Profile icon Ferran Garcia Pagans
Fernando G Pagans Fernando G Pagans
Profile icon Fernando G Pagans
View More author details
Toc

Table of Contents (16) Chapters close

Predictive Analytics Using Rattle and Qlik Sense
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Getting Ready with Predictive Analytics 2. Preparing Your Data 3. Exploring and Understanding Your Data 4. Creating Your First Qlik Sense Application 5. Clustering and Other Unsupervised Learning Methods 6. Decision Trees and Other Supervised Learning Methods 7. Model Evaluation 8. Visualizations, Data Applications, Dashboards, and Data Storytelling 9. Developing a Complete Application Index

Entropy and information gain


Before we explain how to create a Decision Tree, we need to introduce two important concepts—entropy and information gain.

Entropy measures the homogeneity of a dataset. Imagine a dataset with 10 observations with one attribute, as shown in the following diagram, the value of this attribute is A for the 10 observations. This dataset is completely homogenous and is easy to predict the value of the next observation, it'll probably be A:

The entropy in a dataset that is completely homogenous is zero. Now, imagine a similar dataset, but in this dataset each observation has a different value, as shown in the following diagram:

Now, the dataset is very heterogeneous and it's hard to predict the following observation. In this dataset, the entropy is higher. The formula to calculate the entropy is , where is the probability of x.

Try to calculate the entropy for the following datasets:

Now, we understand how entropy helps us to know the level of predictability of a dataset...

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 €14.99/month. Cancel anytime}