Unit 4: Regression and Clustering - Practice Quiz

INT394 — Machine Learning Algorithms 50 Questions
0 Correct 0 Wrong 50 Left
0/50

1 What is the fundamental difference between the target variables in classification and regression problems?

A. Classification predicts discrete class labels, while regression predicts continuous numerical values.
B. Both predict continuous values, but regression uses a different loss function.
C. Classification predicts continuous values, while regression predicts discrete categories.
D. Classification requires unsupervised learning, while regression requires supervised learning.

2 Which of the following scenarios is a regression problem?

A. Predicting the price of a house based on its square footage.
B. Recognizing handwritten digits (0-9).
C. Grouping customers into segments based on purchasing behavior.
D. Predicting whether an email is spam or ham.

3 In Simple Linear Regression, the relationship between the independent variable and the dependent variable is modeled as:

A.
B.
C.
D.

4 Which statement regarding Polynomial Regression is true?

A. It is a form of linear regression because it is linear in the parameters (coefficients).
B. It strictly requires non-parametric methods.
C. It is considered a non-linear regression because the curve is non-linear.
D. It cannot be solved using Ordinary Least Squares (OLS).

5 What happens if the degree of the polynomial in polynomial regression is chosen to be too high?

A. The model will generalize better to unseen data.
B. The model will overfit the data (High Variance).
C. The computational cost decreases significantly.
D. The model will underfit the data (High Bias).

6 Which loss function is most commonly used for Ordinary Least Squares (OLS) regression?

A. Mean Squared Error (MSE)
B. Kullback-Leibler Divergence
C. Cross-Entropy Loss
D. Hinge Loss

7 The Mean Squared Error (MSE) is calculated as:

A.
B.
C.
D.

8 Which loss function is more robust to outliers in a regression problem?

A. Root Mean Squared Error (RMSE)
B. L2 Norm
C. Mean Absolute Error (MAE)
D. Mean Squared Error (MSE)

9 In the context of regression regularization, Lasso Regression adds which penalty term to the loss function?

A. L2 penalty (Squared magnitude of coefficients: )
B. A combination of L1 and L2 penalties
C. L1 penalty (Absolute magnitude of coefficients: )
D. No penalty term

10 What is a defining characteristic of Non-Parametric Regression?

A. It requires the data to be normally distributed.
B. It only works for classification problems.
C. It assumes a fixed mathematical form (e.g., a line) with a finite set of parameters.
D. The number of parameters grows with the size of the training data.

11 In K-Nearest Neighbors (KNN) regression, how is the prediction for a new data point made?

A. By calculating the probability using Bayes' theorem.
B. By taking the average (or weighted average) of the target values of the 'K' closest training neighbors.
C. By taking the majority vote of the class labels of neighbors.
D. By solving a linear equation .

12 Which of the following is true regarding the choice of 'k' in KNN regression?

A. A very small 'k' (e.g., k=1) leads to high variance (overfitting).
B. The value of 'k' does not affect the model performance.
C. A very small 'k' (e.g., k=1) leads to high bias (underfitting).
D. A very large 'k' leads to overfitting (high variance).

13 What is the primary difference between Supervised Learning (Classification/Regression) and Unsupervised Learning (Clustering)?

A. Supervised learning groups data, while unsupervised learning predicts values.
B. Supervised learning requires labeled data (input-output pairs), while unsupervised learning uses unlabeled data.
C. Supervised learning is faster than unsupervised learning.
D. Unsupervised learning always yields better accuracy.

14 The Euclidean distance between two points and is given by:

A.
B.
C.
D.

15 Which distance measure corresponds to the norm and is calculated as the sum of absolute differences?

A. Manhattan Distance
B. Euclidean Distance
C. Chebyshev Distance
D. Cosine Distance

16 Cosine Similarity is particularly useful for:

A. Calculating distance on a grid.
B. Geometric clustering of low-dimensional data.
C. Measuring the similarity between text documents (represented as vectors) irrespective of magnitude.
D. Time series forecasting.

17 The Minkowski distance is a generalization of both Euclidean and Manhattan distances defined as . If , it becomes:

A. Manhattan Distance
B. Chebyshev Distance
C. Mahalanobis Distance
D. Euclidean Distance

18 Which of the following is a Partition-based clustering algorithm?

A. BIRCH
B. K-Means
C. DBSCAN
D. Agglomerative Clustering

19 What is the objective function that the K-Means algorithm tries to minimize?

A. Between-Cluster Sum of Squares
B. Within-Cluster Sum of Squares (WCSS)
C. Silhouette Coefficient
D. The number of clusters

20 Which of the following is a step in the K-Means algorithm?

A. Drawing a separating hyperplane.
B. Assigning points to the nearest cluster centroid.
C. Selecting the 'k' nearest neighbors for voting.
D. Merging the two closest clusters.

21 A major limitation of the standard K-Means algorithm is:

A. It is computationally very expensive for small datasets.
B. It works well with non-convex cluster shapes.
C. It requires the number of clusters to be specified in advance.
D. It always finds the global optimum.

22 How does K-Medoids differ from K-Means?

A. K-Medoids uses the mean of the points as the center.
B. K-Medoids uses actual data points as centers (medoids) and is more robust to outliers.
C. K-Medoids uses Euclidean distance exclusively.
D. K-Medoids is faster than K-Means.

23 Hierarchical clustering can be divided into two main types:

A. Linear and Non-linear
B. Supervised and Unsupervised
C. Agglomerative (Bottom-Up) and Divisive (Top-Down)
D. Centroid-based and Density-based

24 In Agglomerative Hierarchical Clustering, what does 'Single Linkage' measure?

A. The maximum distance between points in two clusters.
B. The distance between the centroids of two clusters.
C. The average distance between all pairs of points in two clusters.
D. The minimum distance between the closest pair of points in two clusters.

25 What is a Dendrogram?

A. A scatter plot of the clusters.
B. A plot showing the loss function over iterations.
C. A diagram representing the tree structure of hierarchical clustering.
D. A method to calculate the derivative of a function.

26 In hierarchical clustering, 'Complete Linkage' uses which distance metric to merge clusters?

A. Minimum distance between points (nearest neighbors).
B. Maximum distance between points (farthest neighbors).
C. Distance between centroids.
D. Average distance between points.

27 Which clustering method does NOT require specifying the number of clusters upfront?

A. K-Means
B. K-Medoids
C. Hierarchical Clustering
D. Gaussian Mixture Models

28 What is the Elbow Method used for?

A. To prevent overfitting in regression.
B. To visualize high-dimensional data.
C. To determine the optimal number of clusters () in K-Means.
D. To calculate the distance between clusters.

29 The Silhouette Score ranges between:

A. 0 and 1
B. -infinity and +infinity
C. 0 and 100
D. -1 and 1

30 A Silhouette Score close to +1 implies:

A. The point is assigned to the wrong cluster.
B. The point is on or very close to the decision boundary between two neighboring clusters.
C. The clustering algorithm failed.
D. The point is well matched to its own cluster and far from neighboring clusters.

31 Which metric is used for cluster validation when ground truth labels are available?

A. Davies-Bouldin Index
B. Elbow Method
C. Rand Index (or Adjusted Rand Index)
D. Silhouette Score

32 In the context of Ridge Regression, as the penalty parameter approaches infinity, the regression coefficients tend towards:

A. The OLS estimates
B. Zero
C. 1
D. Infinity

33 Which regression technique fits a local regression model to a subset of the data surrounding the query point?

A. Logistic Regression
B. LOESS (Locally Estimated Scatterplot Smoothing)
C. Linear Regression
D. Ridge Regression

34 Jaccard Similarity is defined as:

A.
B.
C.
D.

35 K-Means++ is an algorithm used for:

A. Calculating the final centroids.
B. Initializing the cluster centers to improve convergence speed and quality.
C. Post-processing the clusters.
D. Determining the value of K automatically.

36 Which of the following data shapes is K-Means least likely to handle correctly?

A. Concentric circles (e.g., a donut shape).
B. Spherical clusters of equal size.
C. Clusters with similar variances.
D. Compact, well-separated blobs.

37 The Dunn Index is an internal cluster validation metric where a higher value indicates:

A. Poor clustering performance.
B. Loose and overlapping clusters.
C. Compact and well-separated clusters.
D. High computational complexity.

38 Which statement regarding the bias-variance trade-off in regression is correct?

A. Variance refers to the error on the training set.
B. Complex non-linear models usually have low bias and high variance.
C. Simple linear models usually have low bias and high variance.
D. We want to maximize both bias and variance.

39 What is Ward's Method in hierarchical clustering?

A. A method that uses random linkage.
B. A method equivalent to single linkage.
C. An agglomerative method that minimizes the increase in total within-cluster variance when merging.
D. A divisive method that splits based on density.

40 Hamming distance is primarily used for:

A. Continuous numerical data.
B. Categorical data or strings of equal length.
C. Image pixel intensity.
D. Geospatial coordinates.

41 In kernel regression (e.g., Nadaraya-Watson), the 'bandwidth' parameter controls:

A. The smoothness of the fit (width of the kernel window).
B. The number of clusters.
C. The learning rate of the gradient descent.
D. The number of iterations.

42 Which of the following is NOT a metric for calculating the distance between two clusters in hierarchical clustering?

A. Gradient Descent
B. Average Linkage
C. Complete Linkage
D. Single Linkage

43 For a dataset with points, what is the time complexity of one iteration of K-Means with clusters and dimensions?

A.
B.
C.
D.

44 What is the main advantage of Hierarchical Clustering over K-Means?

A. It is computationally faster for large datasets.
B. It scales linearly with the number of data points.
C. It provides a taxonomy/hierarchy of clusters and doesn't require pre-specifying .
D. It handles missing values natively.

45 If a regression model has an (Coefficient of Determination) score of 1.0, it means:

A. The model is underfitting.
B. The model is a constant line.
C. The model explains none of the variability of the response data.
D. The model perfectly fits the data.

46 Which of these is a 'lazy learning' algorithm often used for regression?

A. K-Means
B. K-Nearest Neighbors (KNN)
C. Linear Regression
D. Ridge Regression

47 In the context of clustering, what is 'inter-cluster distance'?

A. The distance from a point to the origin.
B. The sum of squared errors.
C. The distance between different clusters.
D. The distance between points within the same cluster.

48 When using the Manhattan distance, the set of points at a constant distance from the origin forms a:

A. Square (rotated 45 degrees)
B. Circle
C. Sphere
D. Hyperbola

49 Which statement regarding outlier sensitivity is correct?

A. K-Means is sensitive to outliers because the mean is influenced by extreme values.
B. Median-based methods are more sensitive to outliers than Mean-based methods.
C. K-Means is less sensitive to outliers than K-Medoids.
D. Least Squares Regression is robust to outliers.

50 What is the 'Kernel Trick' in the context of non-linear regression (e.g., Support Vector Regression)?

A. Mapping data to a higher-dimensional space to make it linearly separable/fittable without explicitly calculating coordinates.
B. Ignoring non-linear data points.
C. Using a GPU kernel for faster processing.
D. A method to reduce dimensionality.