0% found this document useful (0 votes)
635 views4 pages

NPTEL Data Analytics with Python Overview

This document contains details about an assignment submitted for an NPTEL online course on Data Analytics with Python. The assignment contains 10 multiple choice questions related to clustering analysis techniques in python. It provides the student's answers to the questions and indicates whether each answer was correct or not.

Uploaded by

D Barik
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
635 views4 pages

NPTEL Data Analytics with Python Overview

This document contains details about an assignment submitted for an NPTEL online course on Data Analytics with Python. The assignment contains 10 multiple choice questions related to clustering analysis techniques in python. It provides the student's answers to the questions and indicates whether each answer was correct or not.

Uploaded by

D Barik
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
  • Assignment Overview
  • Questionnaire

X

[Link]@[Link] 

([Link]

([Link]

NPTEL ([Link]
»
Data Analytics with Python (course)

Course outline
Week11 : Assignment 11
How does an NPTEL The due date for submitting this assignment has passed.
online course work? () Due on 2022-04-13, 23:59 IST.

Week 0 ()
Assignment submitted on
2022-04-12, 01:45 IST
Week 1 () 1) ________ is used for
calculating distance measures in clustering using python 1 point

Week 2 ()
distance_matrix

spatial_matrix
Week 3 ()
scipy_matrix

[Link]
Week 4 ()
Yes, the answer is correct.
Score: 1

Week 5 ()
Accepted Answers:
distance_matrix
Week 6 ()
2) The formula for dissimilarity computation between two objects for categorical variables is –  1 point
Week 7 () Here p is a categorical variable and m denotes the number of matches.

Week 8 ()
D(i,j) = p-m / p
Week 9 ()
D(i,j) = p-m / m

D(i,j) = m-p / p
Week 10 ()
D(i,j) = m-p / m

Week 11 () Yes, the answer is correct.


Score: 1

Clustering analysis: Part III Accepted Answers:


(unit?unit=95&lesson=96)
D(i,j) = p-m / p

Cluster analysis: Part IV 3) Select the correct option for a data set with 7 objects and an interval-scaled variable ‘f’ we have the following measurements:  1 point
(unit?unit=95&lesson=97) f = (1, 2, 3, 4, 5, 8, 50) containing one outlying value.

Cluster analysis: Part V


Std deviation (std_f) and mean absolute deviation (s_f) are equally affected
(unit?unit=95&lesson=98)

Mean absolute deviation (s_f) is more affected by the outlier
K- Means Clustering (unit?
Std deviation (std_f) is more affected by the outlier
unit=95&lesson=99)

None of these
Hierarchical method of
Yes, the answer is correct.
clustering -I (unit? Score: 1

unit=95&lesson=100)
Accepted Answers:
Important data files (unit? Std deviation (std_f) is more affected by the outlier
unit=95&lesson=101)
4) Which of the following is true for K-means clustering? 1 point
Quiz: Week11 :
Assignment 11
It comes under the partitioning method
(assessment?name=144)
The number of clusters is predefined for this method

Cluster similarity is measure in regard to the mean value of the objects in a cluster
Week 12 ()

All of the above

Download Videos () Yes, the answer is correct.


Score: 1

Weekly Feedback () Accepted Answers:


All of the above

Text Transcripts () 5) Which of the following can act as possible termination conditions in K-Means? 1 point

1. For a fixed number of iterations.


Books () 2. Assignment of observations to clusters does not change between iterations. Except for cases with a bad local minimum.
3. Centroids do not change between successive iterations.
Live sessions - Solve 4. Terminate when Residual Sum of Squares (RSS) falls below a threshold.
sample problems with
us ()
1,3 and 4

1,2,3 and 4
 

2 and 3

None of these
Yes, the answer is correct.
Score: 1
Accepted Answers:
1,2,3 and 4

6) In the figure below, if you draw a horizontal line on y-axis for y=2. What will be the number of clusters formed? 1 point

(Image link: [Link]


1

2

3

4

Yes, the answer is correct.


Score: 1

Accepted Answers:
2

7) Which of the following clustering requires merging approach? 1 point


Partitional

Naive Bayes

Hierarchical

None of these

Yes, the answer is correct.


Score: 1

Accepted Answers:
Hierarchical

8) State True or False:


Hierarchical clustering should primarily be used for exploration 1 point


True

False

Yes, the answer is correct.


Score: 1

Accepted Answers:
True

9) State True or False: For


finding dissimilarity between two clusters in hierarchical clustering,
average-link is the only 1 point
metric used


True

False
Yes, the answer is correct.
Score: 1
Accepted Answers:
False

10) Hierarchical clustering


can either be an agglomerative or divisive algorithm 1 point


True

False

Yes, the answer is correct.


Score: 1

Accepted Answers:
True

Common questions

Powered by AI

Predefining the number of clusters in K-means can significantly impact the clustering outcome since an inappropriate choice can lead to suboptimal clusters. This requirement contrasts with methods like hierarchical clustering, which determine clusters as part of the process and adaptively find the structure in data. The predetermined number of clusters influences K-means' performance in terms of convergence and computational efficiency but may overlook the data's natural structure .

The possible termination conditions in the K-means clustering algorithm include: a fixed number of iterations; no change in observations' assignment to clusters between iterations (except in cases of a bad local minimum); no change in centroids between successive iterations; and when the residual sum of squares (RSS) falls below a pre-defined threshold .

The main difference between partitional clustering and hierarchical clustering is the approach used to form clusters. Partitional clustering, like K-means, assigns data points to a fixed number of clusters, seeking to optimize clusters in a flat structure. In contrast, hierarchical clustering involves creating a tree-based representation (dendrogram) of clusters by either merging smaller clusters into larger ones (agglomerative) or dividing a single cluster into smaller clusters (divisive).

Hierarchical clustering techniques can be agglomerative or divisive based on the direction of building the dendrogram. Agglomerative clustering starts with each data point as a separate cluster and merges clusters iteratively, while divisive clustering starts with all data points in a single cluster and divides them into smaller clusters. Both approaches reflect a bottom-up and top-down strategy respectively for organizing the data .

The average-link metric in hierarchical clustering calculates the dissimilarity between clusters by averaging the pairwise distances between all pairs of objects from the two clusters. Unlike single-link or complete-link metrics, it provides a more balanced measure of cluster similarity, reducing sensitivity to noise and outliers .

Hierarchical clustering is most useful for exploratory data analysis because it does not require a preset number of clusters and provides a visual representation of how data points are grouped together at various levels of similarity. This flexibility helps in gaining insights into the inherent structure of the data .

The formula for computing dissimilarity between two objects for categorical variables is given by D(i,j) = (p - m) / p, where p denotes the number of parameters, and m represents the number of matches between the two objects .

K-means clustering is a partitioning method because it divides the dataset into mutually exclusive subsets so that the similarity within a subset is higher compared to that between different subsets. It measures cluster similarity based on the mean value of the objects within each cluster, which serves as the cluster's centroid .

Standard deviation is more affected by an outlier than mean absolute deviation due to the squaring of differences from the mean, which amplifies the influence of outliers more than the absolute differences used in mean absolute deviation. The larger squared values of deviations contribute significantly to higher standard deviations in the presence of outliers, making it more responsive to extreme values .

In a dataset, the presence of an outlier affects the standard deviation more significantly than it does the mean absolute deviation. This occurs because standard deviation measures dispersion based on the squared differences from the mean, which amplifies the effect of extreme values like outliers .


X
NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL)  (https://swayam.gov.in/explorer?ncCode=NPTEL)
» 
Data Analytics with
Week 9 () (https://onlinecourses.nptel.ac.in/noc22_cs08/)
Week 10 () (https://onlinecourses.nptel.ac.in/noc22_cs08/)
Week 11
1 point
6)
1 point
7)
1 point
8)
1 point
9)
Yes, the answer is correct. 
Score: 1
Accepted Answers:
1,2,3 and 4
In the figure
1 point
10)
Yes, the answer is correct. 
Score: 1
Accepted Answers:
False
Hierarchical clustering
can either be an agglomerat

You might also like