Question 1
A dataset of 1,000 firms is used to train a classifier to predict dividend payments. The confusion matrix results in 432 TP, 121 FP, 168 FN, and 279 TN. What is the accuracy?
- 55.0%
- 65.4%
- 71.1% — Correct
- 78.8%
Correct answer
71.1%
Explanation
Accuracy = (TP + TN) / Total = (432 + 279) / 1000 = 0.711.
Question 2
Which regularization method can shrink some coefficients exactly to zero, performing feature selection?
- Ridge regression
- Linear regression
- LASSO — Correct
- KNN
Correct answer
LASSO
Explanation
The LASSO (L1 penalty) drives some coefficients exactly to zero, removing irrelevant features.
Question 3
A decision tree splits on the feature that produces the largest drop in impurity. Which measure is commonly used for impurity?
- Autocorrelation
- Gini index — Correct
- Durbin-Watson statistic
- ADF test statistic
Correct answer
Gini index
Explanation
Decision trees often use the Gini index to evaluate impurity reduction at splits.
Question 4
A KNN model uses K = 5. Which statement best describes the bias–variance tradeoff at lower values of K?
- Lower bias, higher variance — Correct
- Lower bias, lower variance
- Higher bias, lower variance
- No change in bias or variance
Correct answer
Lower bias, higher variance
Explanation
Small K leads to flexible models with low bias and high variance.
Question 5
Support Vector Machines maximize which geometric property?
- Residual sum of squares
- Euclidean distance between clusters
- Margin between support vectors — Correct
- Number of classification labels
Correct answer
Margin between support vectors
Explanation
SVMs attempt to maximize the classification margin separating classes.
Question 6
In a bagging ensemble of 100 decision trees, what happens to model bias and variance?
- Bias increases, variance increases
- Bias increases, variance decreases — Correct
- Bias decreases, variance decreases
- Bias decreases, variance increases
Correct answer
Bias increases, variance decreases
Explanation
Bagging reduces variance by averaging unstable trees. Bias tends to remain the same or slightly increase.
Question 7
A feedforward neural network with one hidden layer uses the logistic activation function. What does the activation function introduce?
- Linear relationships
- Nonlinearity — Correct
- Multicollinearity
- Heteroskedasticity
Correct answer
Nonlinearity
Explanation
Activation functions introduce nonlinearity into neural networks, enabling complex pattern learning.
Question 8
Elastic Net regularization combines which two penalties?
- Ridge (L2) and LASSO (L1) — Correct
- Ridge (L2) and logistic loss
- LASSO (L1) and entropy
- Hinge loss and squared error
Correct answer
Ridge (L2) and LASSO (L1)
Explanation
Elastic Net uses both the L1 and L2 penalties to shrink parameters while performing feature selection.
Question 9
A logistic model produces predicted probabilities for default. Using threshold Z = 0.30, an observation has P=0.28. How is it classified?
- Default (1)
- No default (0) — Correct
- Unclassified
- Requires ROC curve evaluation
Correct answer
No default (0)
Explanation
Since P < Z, the observation is classified as no default.
Question 10
A confusion matrix shows FP = 24 and FN = 16. What is the model’s error rate if TP = 100 and TN = 60?
- 20% — Correct
- 25%
- 28%
- 32%
Correct answer
20%
Explanation
Error Rate = (FP + FN) / (TP + TN + FP + FN) = (24 + 16) / 200 = 40/200 = 20%.