58 questions pulled from past papers whose wording matches this week's topics, newest first, duplicates removed. Pick your answers, then press Check answers. Figures and answer keys are the originals.
A K-Means algorithm has a cluster centroid: C=(6,6) During the next iteration, a new data point: (10,10) is assigned to this cluster. Before the update step, this cluster contained 4 data points. The individual points are not available, but the centroid of the cluster before adding the new point was: (6,6) After adding the new point and performing the centroid update step, the new centroid becomes: (6.8,6.8) What is the sum of the coordinates of the original 4 data points combined?
After training a KMeans clustering algorithm on a dataset we find a data point is sitting exactly on or extremely close to the decision boundary between two neighboring clusters. Which of the following values will the silhouette score be close / equal to?
Four data points are given: A=(1,1), B=(2,2), C=(8,8), D=(10,10) A hierarchical agglomerative clustering algorithm using single linkage and Euclidean distance is applied. Initially, each point is considered as an individual cluster. Which two clusters will be merged in the first step?
A company uses K-Means clustering to divide its customers into 4 groups based on their purchasing behavior. After training the model, the data science team observes the following: Two different runs of K-Means on the same dataset produce different customer groups. One cluster contains customers that are much farther away from their assigned cluster center compared to other clusters. Which of the following statements are most likely to explain these observations?
K-Means can converge to different solutions because the initial placement of cluster centroids can affect the final clusters.
The cluster with customers far from its centroid may indicate that the chosen value of K does not represent the natural grouping structure of the data.
K-Means guarantees finding the globally optimal clustering solution regardless of initialization.
K-Means assigns clusters by maximizing the distance between points within the same cluster.
You are given a dataset where each row represents a customer using two numerical features. You apply K-means clustering with K=3 clusters using the following code:
What does the variable labels represent after the model is fitted?
The values of the input features used for clustering.
In top-down (divisive) hierarchical clustering, clusters are recursively split until each data point is its own cluster. The choice of a distance metric plays a crucial role in determining the quality of clustering.
Which of the following distance (similarity) metrics are commonly used in hierarchical clustering?
In top-down hierarchical clustering, clusters are recursively split until each data point is its own cluster. The choice of a distance metric plays a crucial role in determining the quality of clustering. Which of the following distance (similarity) metrics are commonly used in hierarchical clustering?
You’re working on a dataset containing customer purchase data, and you want to segment the customers into distinct groups based on their purchasing behavior. Each data point represents a customer and includes features like “Total Amount Spent” and “Number of Items Purchased.” Which algorithm is suitable for this scenario?
You’re working with a large image and want to group similarly coloured segments in the image together. No other information is provided with the image. Which of the following techniques will you use to accomplish the task?
While performing exploratory data analysis (EDA) on a dataset, you come across some columns with a high percentage of missing values. Along with that, a few categorical columns have a large number of unique categories. Which of the following actions would typically be a recommended initial approach during EDA? (Choose multiple correct options.)
Visualizing the data distribution of columns to understand their characteristics.
Using dimensionality reduction techniques, like PCA, to handle columns withmany unique categories.
Visualizing the distribution of missing values across the dataset to ascertainany patterns or systematic missingness.
Removing columns that have more than 90% missing values without anycontext.
You’re analyzing a dataset of customer transaction histories. Each transaction includes the purchase amount and timestamp. You want to identify groups of customers based on their spending behavior. Which clustering approach would be most appropriate for this scenario?
You’re working with a dataset of customer purchase behavior, including attributes “Total Amount Spent” and “Number of Items Purchased.” You decide to use K-means clustering to segment customers into groups based on these features. The following code snippet demonstrates the K-means clustering process:
You’re working with a dataset of customer purchase behavior, including attributes “Total Amount Spent” and “Number of Items Purchased.” You decide to use K-means clustering to segment customers into groups based on these features. The following code snippet demonstrates the K-means clustering process:
The total amount spent by each customer.
The cluster assignments indicating which group each customer belongs to.
Suppose that we have 10000 samples in a dataset. Suppose further we use the K − means algorithm to find clusters in the dataset. Then, the statement that K-Means algorithm always converges with zero inertia (or zero Sums Square Error) for some value of K is
Suppose that we use k-means clustering for a dataset having 100 samples. The initial centroids for k clusters can be initialized in multiple ways. One such as way is shown below
Suppose that we use k-means clustering for a dataset having 100 samples. The initial centroids for k clusters can be initialized in multiple ways. One such as way is shown below
20 centroids are randomly initialized 10 times
10 centroids are randomly initialized 20 times
20 samples in the dataset are selected as initialization point such that they areat least 10 units away from each other
10 samples in the dataset are selected as initialization point such that they areat least 20 units away from each other
The code given below attempts to find the clusters in the dataset, X using the K-means algorithm.
The code given below attempts to find the clusters in the dataset, X using the K-means algorithm.
The code attempts to find 2 clusters in the given dataset
The dataset X can be visualized in the Euclidean space
The code raises an error upon execution
The code gets executed without an error upon execution
Consider following statements regarding a decision tree model? 1. It is a parametric model. 2. It has a tendency to overfit if allowed to grow unconditionally. 3. It can be used for regression, classification and clustering problems. 4. It is one of the easiest machine learning models to interpret. 5. For classification problems, decision tree’s loss function is same as evaluation metric. Choose the option with all the correct statements:
Consider following statements regarding a decision tree model: 1. It is a non-parametric model. 2. It has a tendency to underfit if allowed to grow unconditionally. 3. It can be used for regression and classification problems only, but not for clustering. 4. It is one of the most difficult machine learning models to interpret. 5. For regression problems, decision tree’s loss function and evaluation metric can be same. Choose the option with all the correct statements:
Consider following statements: 1. The K-means algorithm aims to choose centroids that minimise the inertia. 2. The K-Means algorithm requires the number of clusters to be specified Choose the correct option of the following:
Both statement 1 and 2 are correct.
Statement 1 is correct but statement 2 is incorrect.
Statement 1 is incorrect but statement 2 is correct.
Which of the following options represent the possible type of machine learning algorithm does the cluster plot shown in Figure 2 demonstrate?
Which of the following options represent the possible type of machine learning algorithm does the cluster plot shown in Figure 2 demonstrate?
Which of the following options is correct explained variance score for the following code snippet applying PCA technique.
Which of the following options is correct explained variance score for the following code snippet applying PCA technique.