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

Problems

  1. Compute the centroid of the following clusters:

a) 2, 3, 4
b) 100$, 400$, 1000$
c) (10,20), (40, 60), (0, 40)
d) (200$, 40km), (300$, 60km), (500$, 100km), (250$, 200km)
e) (1,2,4), (0,0,3), (10,20,5), (4,8,2), (5,0,1)

  1. Cluster the following datasets into the 2, 3 and 4 clusters using k-means clustering algorithm:

a) 0, 2, 5, 4, 8, 10, 12, 11.
b) (2,2), (2,5), (10,4), (3,5), (7,3), (5,9), (2,8), (4,10), (7,4), (4,4), (5,8), (9,3).

  1. (Couples and the number of their children) We are given the following ages of the couples and their number of the children.
Couple number
Wife age
Husband age
Number of children
1
48
49
5
2
40
43
2
3
24
28
1
4
49
42
3
5
32
34
0
6
24
27
0
7
29
32
2
8
35
35
2
9
33
36
1
10
42
47
3
11
22
27
2
12
41
45
4
13
...