Question 1
Which of the following best captures the difference between supervised and unsupervised machine learning?
- Supervised learning identifies clusters, while unsupervised learning predicts labels.
- Supervised learning uses labeled data, while unsupervised learning does not. — Correct
- Unsupervised learning requires a training/validation/test split, supervised does not.
- Unsupervised learning always performs better out-of-sample than supervised learning.
Correct answer
Supervised learning uses labeled data, while unsupervised learning does not.
Explanation
Supervised learning requires labeled inputs (features + target), whereas unsupervised learning discovers patterns without labels.
Question 2
A dataset contains five features: X1, X2, X3, X4, X5. PCA shows that the first two components explain 96% of the variance. What is the most appropriate conclusion?
- All five features must be retained to avoid underfitting.
- The model should keep only one feature.
- Dimensionality can likely be reduced to two components without major information loss. — Correct
- The dataset is unsuitable for PCA.
Correct answer
Dimensionality can likely be reduced to two components without major information loss.
Explanation
If two components explain 96% of variance, PCA can reduce the feature space from five to two while preserving structure.
Question 3
Which statement best describes the purpose of data standardization before applying K-means clustering?
- It ensures that K-means identifies spherical clusters.
- It prevents features with large scales from dominating the distance calculations. — Correct
- It makes the dataset normally distributed.
- It ensures the silhouette coefficient equals 1.
Correct answer
It prevents features with large scales from dominating the distance calculations.
Explanation
K-means uses distance measures; without standardization, high-scale features dominate distance computations and distort clustering.
Question 4
In K-means, the inertia (within-cluster sum of squares) always decreases as K increases. What is the practical implication?
- K should be set equal to the number of data points.
- The elbow method is needed to select a reasonable K. — Correct
- The optimal K is always 2.
- Inertia cannot be used for model selection.
Correct answer
The elbow method is needed to select a reasonable K.
Explanation
Because inertia falls mechanically with higher K, the 'elbow point' helps identify when additional clusters yield diminishing improvement.
Question 5
A model has very low training error but high error on the validation set. What is the most likely issue?
- Underfitting
- Overfitting — Correct
- Too little variance in predictions
- Insufficient bias
Correct answer
Overfitting
Explanation
Overfitting occurs when a model learns noise from the training set, causing poor generalization to new data.
Question 6
A researcher splits data into 70% training, 15% validation, and 15% test. Which statement is correct?
- The validation set is used to compute the final out-of-sample error.
- The test set is used to tune hyperparameters.
- The validation set is used to choose among competing model specifications. — Correct
- The training set must contain labels, while the other sets do not.
Correct answer
The validation set is used to choose among competing model specifications.
Explanation
The validation set chooses the best model; the test set evaluates final performance.
Question 7
In reinforcement learning, what is the purpose of the exploration–exploitation tradeoff?
- To maximize bias while minimizing variance
- To ensure the algorithm occasionally tries new actions rather than always choosing the current best — Correct
- To ensure the model never updates Q-values
- To guarantee deterministic outcomes
Correct answer
To ensure the algorithm occasionally tries new actions rather than always choosing the current best
Explanation
Exploration allows the algorithm to discover better strategies; exploitation uses known good actions.
Question 8
Given the Q-learning update: Q_new = Q_old + α(R − Q_old), with Q_old = 0.5, R = 1.0, α = 0.10, compute Q_new.
- 0.55
- 0.60 — Correct
- 0.65
- 0.70
Correct answer
0.60
Explanation
Q_new = 0.5 + 0.10 × (1.0 − 0.5) = 0.5 + 0.05 = 0.55.
Question 9
Which of the following is a key preprocessing step in natural language processing (NLP)?
- Increasing text length through padding
- Tokenization and stop-word removal — Correct
- Converting text into polynomial features
- Applying PCA to words
Correct answer
Tokenization and stop-word removal
Explanation
Tokenization and stop-word removal are standard NLP preprocessing steps.
Question 10
Which scenario most clearly illustrates underfitting?
- A model fits the training data extremely well but performs poorly on validation data.
- A linear model is used for a clearly nonlinear relationship. — Correct
- A neural network with many layers learns noise in the training set.
- A model's test error is lower than its training error.
Correct answer
A linear model is used for a clearly nonlinear relationship.
Explanation
Underfitting occurs when the model is too simple to capture structural patterns, such as fitting a nonlinear relationship with a linear model.