1Which of the following best defines Unsupervised Learning?
A.Learning where the model predicts a categorical target variable
B.Learning where the model predicts a continuous target variable
C.Learning where the data has no predefined labels or target variables
D.Learning where the model is rewarded or punished based on actions
Correct Answer: Learning where the data has no predefined labels or target variables
Explanation:
Unsupervised learning involves training algorithms on data that does not have labels, aiming to find hidden structures or patterns.
Incorrect! Try again.
2In K-Means clustering, what does 'K' represent?
A.The distance metric used
B.The number of clusters the algorithm forms
C.The number of iterations
D.The number of features in the dataset
Correct Answer: The number of clusters the algorithm forms
Explanation:
K is a hyperparameter that determines the specific number of centroids (and thus clusters) the algorithm attempts to identify.
Incorrect! Try again.
3What is the primary objective function that K-Means minimizes?
A.The number of outliers
B.Inter-cluster distance
C.Within-Cluster Sum of Squares (WCSS)
D.The Silhouette coefficient
Correct Answer: Within-Cluster Sum of Squares (WCSS)
Explanation:
K-Means aims to minimize the variance within each cluster, calculated as the sum of squared distances between data points and their respective cluster centroids.
Incorrect! Try again.
4Which of the following is the first step in the standard K-Means algorithm?
A.Calculate the centroid of all points
B.Randomly initialize K centroids
C.Assign points to the nearest cluster
D.Calculate the total variance
Correct Answer: Randomly initialize K centroids
Explanation:
The algorithm begins by selecting K random points from the dataset (or random coordinates) to serve as initial centroids.
Incorrect! Try again.
5The 'Random Initialization Trap' in K-Means refers to:
A.The inability to handle categorical data
B.The algorithm selecting the wrong number of K
C.The algorithm running indefinitely without convergence
D.Different initial centroid positions leading to different, suboptimal results
Correct Answer: Different initial centroid positions leading to different, suboptimal results
Explanation:
Because K-Means uses a greedy approach, poor random starting points can cause the algorithm to get stuck in a local minimum rather than the global minimum.
Incorrect! Try again.
6Which technique is commonly used to mitigate the Random Initialization Trap?
A.Gradient Descent
B.Agglomerative Clustering
C.Principal Component Analysis
D.K-Means++
Correct Answer: K-Means++
Explanation:
K-Means++ is an initialization algorithm that selects initial centroids far apart from each other, improving the chances of finding the global optimum.
Incorrect! Try again.
7What is the 'Elbow Method' used for in K-Means clustering?
A.Calculating the distance between centroids
B.Determining the optimal number of clusters
C.Visualizing high-dimensional data
D.Stopping the algorithm early
Correct Answer: Determining the optimal number of clusters
Explanation:
The Elbow Method plots WCSS against the number of clusters (K). The 'elbow' point represents the K where adding more clusters yields diminishing returns in variance reduction.
Incorrect! Try again.
8In an Elbow Method plot, what variable is typically on the Y-axis?
A.WCSS (Inertia)
B.Computation Time
C.Number of Clusters (K)
D.Accuracy
Correct Answer: WCSS (Inertia)
Explanation:
The Y-axis represents the Within-Cluster Sum of Squares (or Inertia), which decreases as the number of clusters increases.
Incorrect! Try again.
9When does the K-Means algorithm stop iterating?
A.When the number of clusters equals the number of data points
B.When every point is in its own cluster
C.When the WCSS becomes zero
D.When the centroids no longer move significantly between iterations
Correct Answer: When the centroids no longer move significantly between iterations
Explanation:
Convergence is reached when the assignment of points to clusters does not change and centroids remain stable.
Incorrect! Try again.
10Which of the following is a limitation of K-Means clustering?
A.It can only handle binary data
B.It is computationally expensive for small datasets
C.It requires the number of clusters to be specified in advance
D.It always finds the global optimum
Correct Answer: It requires the number of clusters to be specified in advance
Explanation:
Unlike hierarchical clustering, K-Means requires the user to define K before running the algorithm, which is not always known.
Incorrect! Try again.
11Agglomerative Hierarchical Clustering is best described as a approach.
A.Centroid-based
B.Top-down
C.Density-based
D.Bottom-up
Correct Answer: Bottom-up
Explanation:
Agglomerative clustering starts by treating each data point as a single cluster and then iteratively merges pairs of clusters until one big cluster remains.
Incorrect! Try again.
12Divisive Hierarchical Clustering is best described as a approach.
A.Top-down
B.Randomized
C.Bottom-up
D.Grid-based
Correct Answer: Top-down
Explanation:
Divisive clustering starts with all points in one cluster and recursively splits them into smaller clusters.
Incorrect! Try again.
13What diagram is commonly used to visualize Hierarchical Clustering?
A.Dendrogram
B.Histogram
C.Scatter plot
D.Box plot
Correct Answer: Dendrogram
Explanation:
A dendrogram is a tree-like diagram that records the sequences of merges or splits in hierarchical clustering.
Incorrect! Try again.
14In a dendrogram, the vertical axis typically represents:
A.The frequency of data points
B.The time taken to cluster
C.The number of clusters
D.The Euclidean distance or dissimilarity between clusters
Correct Answer: The Euclidean distance or dissimilarity between clusters
Explanation:
The height of the U-shaped lines in a dendrogram indicates the distance (dissimilarity) at which clusters were merged.
Incorrect! Try again.
15How do you determine the optimal number of clusters using a dendrogram?
A.It is impossible to determine K from a dendrogram
B.Count the number of leaves at the bottom
C.Choose the height where the first merge occurs
D.Cut the dendrogram at the point with the longest vertical distance without crossing horizontal lines
Correct Answer: Cut the dendrogram at the point with the longest vertical distance without crossing horizontal lines
Explanation:
A large vertical distance implies that the clusters formed are distinct and far apart; cutting across this gap defines the natural clusters.
Incorrect! Try again.
16Which linkage method defines the distance between two clusters as the shortest distance between any single point in one cluster and any single point in the other?
A.Ward's Method
B.Complete Linkage
C.Single Linkage
D.Average Linkage
Correct Answer: Single Linkage
Explanation:
Single linkage looks for the nearest neighbors across two clusters (minimum distance).
Incorrect! Try again.
17Which linkage method defines the distance between two clusters as the maximum distance between any point in the first cluster and any point in the second?
A.Single Linkage
B.Complete Linkage
C.Average Linkage
D.Centroid Linkage
Correct Answer: Complete Linkage
Explanation:
Complete linkage considers the farthest points (maximum distance) to determine the distance between clusters.
Incorrect! Try again.
18Average Linkage calculates the distance between clusters by:
A.Taking the average of all pairwise distances between points in the two clusters
B.Using the minimum distance between points
C.Taking the median distance of all points
D.Using the distance between the centroids of the clusters
Correct Answer: Taking the average of all pairwise distances between points in the two clusters
Explanation:
Average linkage computes the mean distance between all pairs of items from the two clusters.
Incorrect! Try again.
19Centroid Linkage measures the distance between clusters based on:
A.The closest points in the clusters
B.The furthest points in the clusters
C.The distance between the geometric centers (means) of the clusters
D.The sum of squared errors
Correct Answer: The distance between the geometric centers (means) of the clusters
Explanation:
Centroid linkage calculates the distance between the centroid vector of cluster A and the centroid vector of cluster B.
Incorrect! Try again.
20Which linkage method is most notorious for producing the 'chaining' effect (long, stringy clusters)?
A.Ward's Method
B.Single Linkage
C.Average Linkage
D.Complete Linkage
Correct Answer: Single Linkage
Explanation:
Because Single Linkage merges based on the closest points, it can merge distinct clusters if a chain of points connects them, often referred to as the chaining phenomenon.
Incorrect! Try again.
21What is a primary advantage of Hierarchical Clustering over K-Means?
A.It works better with high-dimensional data
B.It always uses Manhattan distance
C.It does not require assuming the number of clusters (K) beforehand
D.It is computationally faster on large datasets
Correct Answer: It does not require assuming the number of clusters (K) beforehand
Explanation:
Hierarchical clustering produces a dendrogram that allows the analyst to choose the number of clusters after inspecting the structure, unlike K-Means where K is an input.
Incorrect! Try again.
22Market Basket Analysis is a specific application of which technique?
A.Decision Trees
B.Association Rule Learning
C.Clustering
D.Linear Regression
Correct Answer: Association Rule Learning
Explanation:
Market Basket Analysis uses Association Rules to discover patterns in transaction data, such as products frequently bought together.
Incorrect! Try again.
23In the rule {Bread} -> {Butter}, {Bread} is the:
A.Antecedent
B.Consequent
C.Lift
D.Support
Correct Answer: Antecedent
Explanation:
The 'if' part of the rule (left-hand side) is the antecedent. The 'then' part (right-hand side) is the consequent.
Incorrect! Try again.
24What does the metric 'Support' measure in Association Rules?
A.The reliability of the rule
B.The correlation between items
C.The frequency with which an itemset appears in the dataset
D.The ratio of the rule's confidence to the expected confidence
Correct Answer: The frequency with which an itemset appears in the dataset
Explanation:
Support(A) is the proportion of transactions in the dataset that contain item A.
Incorrect! Try again.
25How is 'Confidence' for the rule A -> B calculated?
A.Support(A) / Support(B)
B.Support(A & B) / Support(A)
C.Support(B) / Support(A)
D.Support(A & B) / Support(B)
Correct Answer: Support(A & B) / Support(A)
Explanation:
Confidence measures how often B appears in transactions that contain A. It is the conditional probability P(B|A).
Incorrect! Try again.
26What does a 'Lift' value greater than 1 indicate?
A.The items are substitutes (negatively correlated)
B.The presence of the antecedent increases the likelihood of the consequent
C.The items are independent of each other
D.The rule is invalid
Correct Answer: The presence of the antecedent increases the likelihood of the consequent
Explanation:
Lift > 1 implies a positive association; the items are bought together more frequently than would be expected by chance.
Incorrect! Try again.
27If the Lift of a rule A -> B is exactly 1, what does this imply?
A.The confidence is 100%
B.A and B are independent
C.A and B are never bought together
D.A and B are perfectly correlated
Correct Answer: A and B are independent
Explanation:
A Lift of 1 means the probability of occurring together is exactly the same as the product of their individual probabilities, implying no relationship.
Incorrect! Try again.
28Which algorithm is most commonly associated with mining frequent itemsets for Association Rules?
A.K-Nearest Neighbors
B.Apriori
C.Random Forest
D.Naive Bayes
Correct Answer: Apriori
Explanation:
The Apriori algorithm is the standard algorithm used to identify frequent itemsets and generate association rules.
Incorrect! Try again.
29The Apriori algorithm uses the 'Downward Closure Property'. What does this property state?
A.All subsets of a frequent itemset must be frequent
B.Support always equals Confidence
C.If an itemset is infrequent, its subsets must be frequent
D.All supersets of a frequent itemset must be frequent
Correct Answer: All subsets of a frequent itemset must be frequent
Explanation:
This property allows the algorithm to prune the search space. If {A, B} is frequent, then {A} and {B} must also be frequent.
Incorrect! Try again.
30Which of the following is NOT a step in the K-Means algorithm?
A.Assignment of points to the nearest centroid
B.Calculation of distance matrix for all pairs of points
C.Update of centroids to the mean of assigned points
D.Initialization of centroids
Correct Answer: Calculation of distance matrix for all pairs of points
Explanation:
K-Means calculates distances from points to centroids, not a full pairwise distance matrix between all points (which is done in Hierarchical clustering).
Incorrect! Try again.
31What is the main reason to scale features (normalize/standardize) before running K-Means?
A.To increase the number of clusters
B.To convert categorical variables to numeric
C.To prevent features with large magnitudes from dominating distance calculations
D.To make the data normally distributed
Correct Answer: To prevent features with large magnitudes from dominating distance calculations
Explanation:
Since K-Means relies on Euclidean distance, a feature ranging from 0-1000 will overpower a feature ranging from 0-1 without scaling.
Incorrect! Try again.
32In the context of Association Rules, the 'Consequent' is found on which side of the arrow?
A.Right (THEN side)
B.Neither side
C.Left (IF side)
D.Both sides
Correct Answer: Right (THEN side)
Explanation:
In A -> B, B is the consequent (the item implied by the rule).
Incorrect! Try again.
33Which metric would you look at to determine if a high-confidence rule is merely a coincidence because the consequent is very popular?
A.Accuracy
B.Support
C.Lift
D.Confidence
Correct Answer: Lift
Explanation:
Lift accounts for the popularity of the consequent. If B is very popular, Confidence(A->B) might be high just by chance, but Lift will correct for this.
Incorrect! Try again.
34If Support(A) = 0.4 and Support(A, B) = 0.2, what is the Confidence(A -> B)?
Lift < 1 indicates that the occurrence of A makes B less likely to occur (e.g., people buying product A rarely buy product B).
Incorrect! Try again.
49What happens to the WCSS as the number of clusters (K) increases towards the total number of data points?
A.It increases
B.It decreases towards zero
C.It remains constant
D.It fluctuates randomly
Correct Answer: It decreases towards zero
Explanation:
If every point is its own cluster (K=N), the distance from each point to its centroid is zero, so WCSS becomes zero.
Incorrect! Try again.
50Which step ensures that the K-Means algorithm converges?
A.The use of the Elbow method
B.The randomization of initial points
C.The use of Manhattan distance
D.The fact that WCSS decreases or stays the same with every iteration
Correct Answer: The fact that WCSS decreases or stays the same with every iteration
Explanation:
The mathematical property of the K-Means update steps guarantees that the objective function (WCSS) is non-increasing, ensuring convergence (though possibly to a local minimum).