Docsity

ISYE 6501 - Data Analytics & Machine Learning Final Quiz, Exams of Introduction to Machine Learning

Toggle sidebar
bg1
Page 1 of 49
ISYE 6501 FINAL QUIZ: INTRO TO
ANALYTICS MODELING (GEORGIA
INSTITUTE OF TECHNOLOGY)
CURRENT TESTING
QUESTIONS AND CORRECT ANSWERS
WITH RATIONALES
SECTION 1: ADVANCED CLASSIFICATION & REGRESSION – Questions 1–50
1. In logistic regression, the interpretation of the coefficient β₁ for a continuous predictor x₁ is:
A) A one-unit change in x₁ changes the log-odds of the outcome by β₁
B) A one-unit change in x₁ changes the probability of the outcome by β₁
C) A one-unit change in x₁ changes the odds ratio by β₁
D) A one-unit change in x₁ changes the predicted class by β₁
Answer: A
Rationale: Logistic regression models logit(p) = β₀ + β₁x₁. The exponentiated coefficient exp(β₁)
is the odds ratio for a one-unit increase in x₁.
2. Which of the following is a limitation of linear discriminant analysis (LDA)?
A) Assumes that predictors are normally distributed within each class
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31

Partial preview of the text

Download ISYE 6501 - Data Analytics & Machine Learning Final Quiz and more Exams Introduction to Machine Learning in PDF only on Docsity!

ISYE 6501 FINAL QUIZ: INTRO TO

ANALYTICS MODELING (GEORGIA

INSTITUTE OF TECHNOLOGY)

CURRENT TESTING

QUESTIONS AND CORRECT ANSWERS

WITH RATIONALES

SECTION 1: ADVANCED CLASSIFICATION & REGRESSION – Questions 1– 50

  1. In logistic regression, the interpretation of the coefficient β₁ for a continuous predictor x₁ is: A) A one-unit change in x₁ changes the log-odds of the outcome by β₁ B) A one-unit change in x₁ changes the probability of the outcome by β₁ C) A one-unit change in x₁ changes the odds ratio by β₁ D) A one-unit change in x₁ changes the predicted class by β₁ Answer: A Rationale: Logistic regression models logit(p) = β₀ + β₁x₁. The exponentiated coefficient exp(β₁) is the odds ratio for a one-unit increase in x₁.
  2. Which of the following is a limitation of linear discriminant analysis (LDA)? A) Assumes that predictors are normally distributed within each class

B) Assumes equal covariance matrices across classes C) Cannot handle categorical predictors directly (needs transformation) D) All of the above Answer: D Rationale: LDA makes strong assumptions: multivariate normality, equal covariance matrices; it can be extended (QDA relaxes equal covariance).

  1. Quadratic discriminant analysis (QDA) differs from LDA because QDA: A) Allows each class to have its own covariance matrix (quadratic decision boundary) B) Assumes linear decision boundary C) Is a special case of logistic regression D) Is non-parametric Answer: A Rationale: QDA estimates separate covariance matrices per class, leading to quadratic boundaries; more flexible but with more parameters.
  2. Which of the following is a non-parametric classification method? A) k-Nearest Neighbors (k-NN) B) Logistic regression C) LDA D) Linear SVM Answer: A Rationale: k-NN makes no distributional assumptions; it uses the training data directly.
  3. The “kernel trick” in SVM allows: A) Efficient computation of dot products in a high-dimensional feature space without explicitly transforming data B) Only linear classification C) Faster training on large datasets D) Removal of support vectors Answer: A Rationale: Kernels (RBF, polynomial) map data implicitly; the decision boundary can be non- linear.
  4. Which kernel is most commonly used for non-linear SVM?

A) Reduce overfitting by removing branches that provide little predictive power B) Increase the depth of the tree C) Increase the number of leaves D) Add more features Answer: A Rationale: Pruning simplifies the tree, improving generalization (cost-complexity pruning).

  1. Random Forest reduces overfitting compared to a single decision tree by: A) Bagging (bootstrap aggregating) and random feature selection B) Using only one tree C) Increasing tree depth D) Removing all features Answer: A Rationale: Bootstrapping creates diverse trees; random feature selection reduces correlation.
  2. Gradient Boosting builds trees sequentially; each new tree tries to: A) Correct the errors (residuals) of the previous ensemble B) Fit the original targets directly C) Randomly sample features D) Reduce the number of trees Answer: A Rationale: In gradient boosting, each tree fits the negative gradient of the loss function.
  3. Which boosting algorithm explicitly uses the “AdaBoost” approach with exponential loss? A) AdaBoost B) Gradient Boosting Machine (GBM) C) XGBoost D) LightGBM Answer: A Rationale: AdaBoost uses exponential loss and adjusts sample weights; GBM uses arbitrary differentiable loss functions.
  4. In XGBoost, regularization terms (L1 and L2) are added to the objective to:

A) Prevent overfitting and penalize complex trees B) Increase training speed C) Remove missing values D) Convert classification to regression Answer: A Rationale: XGBoost includes regularization on leaf weights and number of leaves.

  1. Which of the following is a method for handling imbalanced classification? A) SMOTE (Synthetic Minority Over-sampling Technique) B) Under-sampling the majority class C) Using class weights in the loss function D) All of the above Answer: D Rationale: These techniques help models learn the minority class without being overwhelmed by the majority.
  2. The ROC curve plots: A) Sensitivity (TPR) vs. 1-Specificity (FPR) across thresholds B) Precision vs. Recall C) Specificity vs. Sensitivity D) Accuracy vs. Threshold Answer: A Rationale: ROC curve shows the trade-off; AUC (Area Under Curve) measures overall performance.
  3. The Precision-Recall curve is more informative than ROC when: A) The dataset is highly imbalanced (rare positive class) B) The dataset is balanced C) The cost of false positives equals false negatives D) There is no class imbalance Answer: A Rationale: ROC curves can be overly optimistic in imbalanced settings; PR curves focus on the minority class.
  1. Which of the following is an example of a discriminative model? A) Logistic regression B) Linear discriminant analysis (LDA) C) Both A and B (LDA is discriminative but also makes distributional assumptions) D) Naïve Bayes (generative) Answer: C Rationale: Discriminative models model P(Y|X); generative models model P(X,Y). LDA and logistic regression are discriminative; naïve Bayes is generative.
  2. Naïve Bayes assumes conditional independence of features given the class. This means: A) Features are independent within each class B) Features are independent overall C) There is no correlation between features D) Features are normally distributed Answer: A Rationale: P(X₁,...,Xₚ|Y) = Π P(Xⱼ|Y). This assumption often works well even when violated.
  3. In the context of regularization, the “bias-variance trade-off” states that: A) Increasing model complexity reduces bias but increases variance B) Increasing model complexity increases bias and reduces variance C) Bias and variance are independent D) Total error = bias² + variance + irreducible error Answer: A Rationale: Simple models (high bias) underfit; complex models (high variance) overfit.
  4. Ridge regression (L2 penalty) tends to produce: A) Coefficients that are shrunk toward zero but rarely exactly zero B) Sparse solutions with many coefficients exactly zero C) Unbiased estimates D) Coefficients that are multiplied by a constant Answer: A Rationale: L2 shrinks coefficients proportionally but does not set them to zero; L1 (Lasso) can set to zero.
  1. Elastic net combines L1 and L2 penalties. Its advantage is: A) It can perform feature selection (like Lasso) and group effect (like Ridge) B) It is faster to compute C) It requires no hyperparameter tuning D) It works only for classification Answer: A Rationale: Elastic net mixes penalties controlled by α; useful when there are correlated features.
  2. The “kernel trick” applies to methods that depend only on inner products between data points. Which algorithm can be kernelized? A) Principal Component Analysis (kernel PCA) B) Ridge regression (kernel ridge regression) C) k-Means (kernel k-means) D) All of the above Answer: D Rationale: Kernel methods map data implicitly, creating non-linear versions of linear algorithms.
  3. Gaussian Process Regression (GPR) provides: A) Probabilistic predictions (mean and variance) with a prior over functions B) Deterministic point predictions only C) Hard classification boundaries D) Linear decision boundaries Answer: A Rationale: GPR is a Bayesian non-parametric method; it returns a predictive distribution.
  4. The covariance function (kernel) in a Gaussian Process determines: A) The smoothness and correlation of the function values B) The mean function C) The noise variance D) The number of inducing points Answer: A Rationale: Common kernels: RBF (smooth), Matern (allows less smooth), periodic.
  5. In Gaussian Process Regression, the computational complexity is O(n³) where n is the number of training points, which limits its use with large datasets.

C) Weighted average by class support D) Taking the harmonic mean Answer: A Rationale: Micro-averaging gives equal weight to each instance; macro-averaging gives equal weight to each class.

  1. Which of the following is a method for feature extraction (not selection)? A) Principal Component Analysis (PCA) B) Recursive Feature Elimination (RFE) C) Lasso regression (feature selection) D) Forward selection Answer: A Rationale: PCA creates new features (principal components) as linear combinations of original features.
  2. PCA is sensitive to the scale of features. Therefore it is important to: A) Standardize features before applying PCA B) Use original scale only C) Remove outliers first D) Center but not scale Answer: A Rationale: Variables measured in different units (e.g., kg vs. cm) would dominate the variance; standardization ensures equal weighting.
  3. In PCA, the number of principal components is at most: A) The number of features (p) B) The number of observations (n) C) p or n, whichever is smaller D) The rank of the data matrix (≤ min(n, p)) Answer: D Rationale: The number of non-zero eigenvalues equals the rank of the covariance matrix, which is ≤ min(n, p).
  4. Factor analysis differs from PCA in that factor analysis assumes: A) A latent variable model that explains correlations among observed variables

B) Orthogonal components maximizing variance C) That all variance is common variance D) No measurement error Answer: A Rationale: PCA is a variance-maximizing transformation; factor analysis explicitly models latent factors.

  1. Which of the following is a measure of multicollinearity in regression? A) Variance Inflation Factor (VIF) B) Durbin-Watson statistic C) AIC D) R² Answer: A Rationale: VIF = 1/(1 – R²ⱼ). VIF > 5-10 indicates problematic multicollinearity.
  2. Stepwise regression (forward, backward, or both) is a method for: A) Feature selection (variable selection) B) Regularization C) Non-linear modeling D) Outlier detection Answer: A Rationale: Stepwise selection is greedy; it is criticized for high variance and overfitting, especially with p close to n.
  3. The Akaike Information Criterion (AIC) is used for model selection and is defined as: A) AIC = – 2 log-likelihood + 2k (k = number of parameters) B) AIC = – 2 log-likelihood + log(n)k C) AIC = R² + 2k D) AIC = MSE + 2k Answer: A Rationale: Lower AIC indicates better fit with penalty for complexity. BIC uses log(n)k.
  4. Bayesian Information Criterion (BIC) differs from AIC in that BIC penalizes complex models more heavily when n is large.

B) The model fits perfectly C) The data are non-linear D) The model is overfitted Answer: A Rationale: R² = 1 – SSE/SST; if SSE > SST, R² < 0.

  1. Adjusted R² penalizes for the number of predictors and is always ≤ R². A) True B) False Answer: A Rationale: Adjusted R² = 1 – (1 – R²)(n-1)/(n-p-1).
  2. Which of the following is a method for variable selection that uses a penalty term proportional to the number of non-zero coefficients (L0 penalty)? It is computationally intensive but can be approximated with SCAD or MCP. A) Best subset selection B) Forward selection C) Backward elimination D) Ridge regression Answer: A Rationale: Best subset evaluates all 2ᵖ models; feasible only for small p.
  3. How does leave-one-out cross-validation (LOOCV) compare to 10-fold CV? A) LOOCV has lower bias but higher computational cost and higher variance B) LOOCV has higher bias but lower variance C) LOOCV is always better D) LOOCV uses less computation Answer: A Rationale: LOOCV uses n-1 training samples → low bias; the models are highly correlated → high variance.
  4. Which of the following is a criterion for model selection that asymptotically chooses the true model if it is among the candidates (consistent)? A) BIC (consistent under certain conditions) B) AIC (minimizes prediction error, not consistent)

C) Adjusted R² D) Cross-validation Answer: A Rationale: BIC is consistent (selects the true model with probability → 1 as n → ∞); AIC is efficient for prediction. SECTION 2: ADVANCED CLUSTERING & UNSUPERVISED LEARNING – Questions 51– 80

  1. In K-means clustering, the objective function is the sum of squared Euclidean distances from each point to its assigned centroid (WCSS). This is equivalent to minimizing: A) Within-cluster variance B) Between-cluster variance C) Number of clusters D) Silhouette width Answer: A Rationale: K-means aims to make clusters as compact (low intra-cluster variance) as possible.
  2. K-means clustering with the Euclidean distance implicitly assumes that clusters are: A) Spherical and of similar size B) Arbitrarily shaped C) Hierarchical D) Density-based Answer: A Rationale: K-means works well for convex, spherical clusters; it struggles with non-spherical shapes (e.g., concentric circles, crescents).
  3. The K-means++ initialization method improves upon random initialization by: A) Choosing initial centroids far apart from each other B) Using hierarchical clustering first C) Using the mean of the whole dataset D) Choosing points at random without replacement

Rationale: Single linkage merges clusters based on the minimum distance; it is prone to chaining.

  1. Ward’s linkage minimizes the increase in within-cluster variance when merging clusters. It tends to produce: A) Compact, spherical clusters B) Chained clusters C) Clusters of equal size D) Clusters with high variance Answer: A Rationale: Ward’s method is similar to K-means in objective (minimize WCSS) and produces similarly shaped clusters.
  2. DBSCAN stands for Density-Based Spatial Clustering of Applications with Noise. It identifies clusters as regions of high density separated by low density. A) True B) False Answer: A Rationale: DBSCAN groups core points (with minPts neighbors within ε) and expands reachable points.
  3. Which of the following is a disadvantage of DBSCAN? A) It requires the user to set ε (radius) and minPts, which can be difficult for varying densities B) It cannot find arbitrarily shaped clusters C) It requires the number of clusters k D) It is very slow for large datasets (but can be accelerated with R-tree) Answer: A Rationale: DBSCAN works well with cost-based methods; performance depends on parameters. OPTICS addresses varying density.
  4. OPTICS (Ordering Points To Identify Clustering Structure) is an extension of DBSCAN that: A) Produces a reachability plot to visualize hierarchical density-based clustering without specifying ε B) Requires multiple ε values C) Is only for Euclidean distance D) Is non-deterministic

Answer: A Rationale: OPTICS generates an ordering of points; clusters correspond to valleys in the reachability plot.

  1. The silhouette coefficient ranges from – 1 to 1. A value near 1 indicates: A) Points are well-clustered (tight in their own cluster and far from other clusters) B) Points are on the cluster boundary C) Points are probably assigned to the wrong cluster D) The optimal number of clusters is 1 Answer: A Rationale: Silhouette high = good clustering; negative scores suggest misclassification.
  2. Gap statistic compares the intra-cluster dispersion to that of a null reference distribution (uniform data) to estimate k. A) True B) False Answer: A Rationale: Gap statistic chooses k where the gap between log(Wₖ) and its expectation under null is maximized.
  3. Which of the following is a method for clustering binary data (e-g-, presence/absence)? A) Jaccard distance (1 – Jaccard similarity) B) Euclidean distance (often not appropriate) C) Hamming distance (proportion of mismatches) D) All of the above can be used; choose appropriate metric Answer: D Rationale: The choice of distance/similarity matters. For binary data, Jaccard is common.
  4. In clustering high-dimensional data, one common challenge is the “curse of dimensionality,” where distances become less meaningful. A common approach is to: A) Perform dimensionality reduction (PCA, UMAP, t-SNE) before clustering B) Increase the number of clusters C) Use Euclidean distance without modification D) Use hierarchical clustering only Answer: A
  1. Clustering evaluation without ground truth labels is called internal validation. Which of the following is an internal validation measure? A) Silhouette coefficient B) Adjusted Rand Index (ARI) C) Mutual Information D) Purity Answer: A Rationale: Silhouette uses only the data; ARI, mutual information, purity require true labels.
  2. The Adjusted Rand Index (ARI) is an external cluster validation measure that: A) Adjusts for chance agreement between cluster assignments and true labels B) Is not affected by label permutations C) Ranges from – 1 to 1 (1 = perfect agreement, 0 = random) D) All of the above Answer: D Rationale: ARI is widely used; it is corrected-for-chance mutual information.
  3. The Davies-Bouldin index is an internal validation measure that computes the average similarity between each cluster and its most similar cluster. Lower values indicate better clustering. A) True B) False Answer: A Rationale: DBI is based on intra-cluster distance and inter-cluster separation.
  4. In the context of clustering, the term “noise” (as in DBSCAN) refers to points that: A) Are not assigned to any cluster (outliers) B) Are core points C) Are border points D) Have many neighbors Answer: A Rationale: Noise points are density-reachable from no core point; they are excluded from clusters.
  5. For datasets with clusters of significantly different densities, DBSCAN with a single ε may fail. OPTICS (ordering points) can handle varying densities by producing a reachability plot.

A) True B) False Answer: A Rationale: OPTICS does not require ε; clusters are identified from the steepness of reachability distances.

  1. Which of the following clustering algorithms is deterministic (always produces the same result given the same parameters and data order)? A) K-means (depends on initialization) B) DBSCAN (order-independent if all core points and reachable set are defined, but tie-breaking may affect) C) Agglomerative hierarchical clustering (can be order-dependent in ties) D) K-medoids (depends on initialization) Answer: B Rationale: DBSCAN’s definition of core points and density reachability is deterministic if implementation handles ties consistently; however, ordering can affect border point assignment.
  2. In agglomerative clustering, the Lance-Williams update formula generalizes different linkage methods. Which linkage is not representable in this form? A) Ward’s method B) Single linkage C) Complete linkage D) Average linkage Answer: A Rationale: Ward’s method also fits the Lance-Williams framework with a specific formula (so all common linkages are representable). Trick question: all are representable.
  3. For categorical data, the simple matching coefficient (SMC) and Jaccard coefficient are common similarity measures. Jaccard ignores true negatives and is preferred when the presence of a feature is more informative than its absence. A) True B) False Answer: A Rationale: For binary vectors, Jaccard = a/(a+b+c) where a = matches of 1, b = mismatches, c = mismatches; it does not count double zeros.
  4. Which of the following is a strong assumption of Gaussian Mixture Models (GMM)?