Book Image

Data Science Algorithms in a Week

By : Dávid Natingga
Book Image

Data Science Algorithms in a Week

By: Dávid Natingga

Overview of this book

<p>Machine learning applications are highly automated and self-modifying, and they continue to improve over time with minimal human intervention as they learn with more data. To address the complex nature of various real-world data problems, specialized machine learning algorithms have been developed that solve these problems perfectly. Data science helps you gain new knowledge from existing data through algorithmic and statistical analysis.</p> <p>This book will address the problems related to accurate and efficient data classification and prediction. Over the course of 7 days, you will be introduced to seven algorithms, along with exercises that will help you learn different aspects of machine learning. You will see how to pre-cluster your data to optimize and classify it for large datasets. You will then find out how to predict data based on the existing trends in your datasets.</p> <p>This book covers algorithms such as: k-Nearest Neighbors, Naive Bayes, Decision Trees, Random Forest, k-Means, Regression, and Time-series. On completion of the book, you will understand which machine learning algorithm to pick for clustering, classification, or regression and which is best suited for your problem.</p>
Table of Contents (12 chapters)
11
Glossary of Algorithms and Methods in Data Science

Household incomes - clustering into k clusters

For example let us take households with the yearly earnings in USD dollars 40k, 55k, 70k, 100k, 115k, 130k, 135k. Then if we require to cluster the households into the two clusters taking their earnings as a measure of similarity, then the first cluster would have the households earning 40k, 55k, 70k; the second cluster would have the households earning 100k, 115k, 130k, 135k.

This is because 40k and 135k are furthest away from each other, and we require to have two clusters, so they have to be in the different clusters. 55K is closer to 40k than to 135k, so 40k and 55k will be in the same cluster. Similarly, 130k and 135k will be in the same cluster. 70K is closer to 40k and 55k than to 130k and 135k, so 70k should be in the cluster with 40k and 55k. 115K is closer to 130k and 135k than to the first cluster with 40k, 55k and 70k...