Use the k-means algorithm and Euclidean distance to cluster the following samples into 3 clusters: A1= (2,10), A2= (2,5), A3= (8,4), A4= (5,8), A5= (7,5), A6= (6,4), A7= (1,2), A8= (4,9). Suppose that the initial seeds (centers of each cluster) are A1, A4 and A7. Run the k-means algorithm for 1 epoch only. At the end of this epoch show: (i)The new clusters (i.e. the examples belonging to each cluster The centers of the new clusters Draw a 10 by 10 space with all the 8 points and show the clusters after the first epoch and the new centroids.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

QUESTION ONE

Use the k-means algorithm and Euclidean distance to cluster the following samples into 3 clusters:

A1= (2,10), A2= (2,5), A3= (8,4), A4= (5,8), A5= (7,5), A6= (6,4), A7= (1,2), A8= (4,9).

Suppose that the initial seeds (centers of each cluster) are A1, A4 and A7. Run the k-means algorithm for 1 epoch only. At the end of this epoch show:

  • (i)The new clusters (i.e. the examples belonging to each cluster
  • The centers of the new clusters
  • Draw a 10 by 10 space with all the 8 points and show the clusters after the first epoch and the new centroids.
  • How many more iterations are needed to converge? Draw the result for each epoch.

 

  • Use the Nearest Neighbor clustering algorithm and Euclidean distance to cluster the examples from the previous exercise: A1= (2,10), A2= (2,5), A3= (8,4), A4= (5,8), A5= (7,5), A6= (6,4), A7= (1,2), A8= (4,9). Suppose that the threshold t is 4.

 

  • Explain the difference between feed forward neural networks and deep learning networks.

QUESTION THREE

  1. Consider the K-means cost function for clustering N d-dimensional data points into K Compute the optimal parameters when K = 1.

 

  1. Derive the optimal parameters of the model when K = N.

 

Now, we use Gaussian mixture models (GMM) to cluster the data, wherein the covariance matrices are fixed and given in advance. In addition, we aim to obtain the correct number of clusters via Akaike information criterion (AIC) and Bayesian information criterion (BIC).

 

Assume we know that all the estimated clusters should have the same size. Describe how you would apply AIC and BIC to compute the correct number of clusters. Discard the steps for calculating the log-likelihoods.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 2 images

Blurred answer
Knowledge Booster
Types of trees
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education