
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































Machine Learning Algorithms (Supervised Learning) Exam 2026 – 190 Graduate-Level Practice Questions with Answers & Detailed Rationales, Regression, Classification, Decision Trees, Ensemble Methods, Model Evaluation & Hyperparameter Tuning SECTION 1: FOUNDATIONS OF SUPERVISED LEARNING (Questions 1–20) Question 1 Which of the following best defines supervised learning? A. A paradigm where the model learns patterns from unlabeled data to discover hidden structures B. A paradigm where the model learns a mapping from input features to output labels using labeled training data C. A paradigm where an agent learns through trial-and-error interactions with an environment D. A paradigm where the model clusters data points based on similarity metrics Correct Answer : B Explanation: Supervised learning uses labeled input-output pairs to learn a mapping function. Unlabeled learning describes unsupervised learning, while trial-and-error describes reinforcement learning. Question 2 In a supervised learning context, what is the primary role of the target variable?
A. It serves as an additional input feature to improve model complexity B. It provides the ground truth signal that guides the learning algorithm to adjust parameters C. It regularizes the model to prevent overfitting D. It normalizes the input features during preprocessing Correct Answer : B Explanation: The target variable provides the ground truth that the model tries to predict; the learning algorithm minimizes error between predictions and these true targets. Question 3 Which of the following tasks is an example of regression rather than classification? A. Predicting whether an email is spam or not spam B. Identifying the species of a flower from petal measurements C. Predicting the selling price of a house based on its features D. Determining whether a tumor is malignant or benign Correct Answer : C Explanation: Regression predicts continuous numerical values like price. The other options involve discrete class labels, which are classification tasks. Question 4 What distinguishes a classification task from a regression task in supervised learning?
A. To increase the total amount of data available for learning B. To evaluate the model's ability to generalize to unseen data C. To reduce the computational cost of training D. To ensure all classes are equally represented Correct Answer : B Explanation: The test set simulates unseen data, allowing assessment of generalization. Stratification addresses class balance, and splitting reduces training data. Question 7 Which term describes a model that performs well on training data but poorly on unseen data? A. Underfitting B. Overfitting C. Regularization D. Normalization Correct Answer : B Explanation: Overfitting occurs when a model memorizes training data, including noise, and fails to generalize. Underfitting is poor performance on both training and test data. Question 8 A model that is too simple to capture the underlying pattern in the data is said to exhibit:
A. High variance B. Overfitting C. Underfitting D. Data leakage Correct Answer : C Explanation: Underfitting occurs when the model lacks capacity to learn the true relationship. High variance is associated with overfitting, not underfitting. Question 9 What does the bias-variance tradeoff describe? A. The tradeoff between model accuracy and training time B. The balance between a model's ability to fit training data and its sensitivity to fluctuations in data C. The tradeoff between the number of features and the number of samples D. The balance between precision and recall in classification Correct Answer : B Explanation: Bias refers to error from erroneous assumptions; variance refers to sensitivity to training data. The tradeoff balances underfitting and overfitting. Question 10 Which of the following is a key assumption of most supervised learning algorithms?
A. The algorithm's preference for certain hypotheses over others, independent of the data B. The tendency of the model to favor the majority class C. The bias introduced by imbalanced datasets D. The error introduced by noisy labels Correct Answer : A Explanation: Inductive bias refers to the assumptions a learning algorithm makes to generalize beyond training data. It is not about class imbalance or label noise. Question 13 What is the primary goal of supervised learning? A. To cluster data points into homogeneous groups B. To learn a function that maps inputs to outputs and generalizes well to new data C. To reduce the dimensionality of the feature space D. To generate new data samples similar to the training data Correct Answer : B Explanation: Supervised learning aims to learn a generalizable mapping from inputs to outputs. Clustering, dimensionality reduction, and generation are different paradigms. Question 14 Which of the following is an example of a binary classification problem?
A. Predicting the temperature tomorrow B. Classifying handwritten digits (0-9) C. Predicting whether a customer will churn or not D. Estimating the number of cars on a highway Correct Answer : C Explanation: Binary classification involves two classes, such as churn vs. no churn. Digit classification is multi-class; temperature and car counts are regression. Question 15 What does the term "hypothesis space" refer to in supervised learning? A. The set of all possible input features B. The set of all possible functions the model can learn C. The set of all training examples D. The set of all possible test outcomes Correct Answer : B Explanation: The hypothesis space is the collection of functions the learning algorithm can represent. It is determined by the model's architecture and parameters. Question 16 Which of the following best characterizes "semi-supervised learning"?
A. Using a holdout test set B. Normalizing the training data using statistics from the entire dataset before splitting C. Applying cross-validation D. Using a random seed for reproducibility Correct Answer : B Explanation: Computing statistics on the full dataset before splitting leaks information from test data into training. Preprocessing should be fit on training data only. Question 19 In the context of supervised learning, what is a "loss function"? A. A function that measures the discrepancy between predicted and true values B. A function that selects the best features C. A function that initializes the model weights D. A function that splits data into batches Correct Answer : A Explanation: The loss function quantifies prediction error, guiding parameter updates during training. Feature selection, initialization, and batching are separate concerns. Question 20 Which of the following scenarios best illustrates a multi-class classification problem?
A. Predicting whether a patient has diabetes (yes/no) B. Classifying an image as a cat, dog, or bird C. Predicting the exact height of a person in centimeters D. Estimating the probability of rain tomorrow Correct Answer : B Explanation: Multi-class classification involves more than two mutually exclusive classes. Binary classification has two classes; regression predicts continuous values. SECTION 2: LINEAR REGRESSION (Questions 21–40) Question 21 What is the primary objective of ordinary least squares (OLS) linear regression? A. Maximize the likelihood of the data given the model B. Minimize the sum of squared residuals between predicted and actual values C. Minimize the absolute error between predicted and actual values D. Maximize the margin between classes Correct Answer : B Explanation: OLS minimizes the sum of squared differences (residuals) between observed and predicted values. Maximizing margin is for SVMs; absolute error is for LAD regression. Question 22 In simple linear regression, what does the slope coefficient represent?
A. The correlation between the predictors B. The proportion of variance in the dependent variable explained by the model C. The statistical significance of the intercept D. The number of outliers in the dataset Correct Answer : B Explanation: R² ranges from 0 to 1 and represents the fraction of total variance in y explained by the regression model. It does not measure predictor correlation. Question 25 In multiple linear regression, what does multicollinearity refer to? A. A high correlation between the dependent variable and an independent variable B. A high correlation among two or more independent variables C. A non-linear relationship between predictors and the outcome D. The presence of outliers in the dataset Correct Answer : B Explanation: Multicollinearity is high correlation among predictors, which inflates coefficient variance and makes interpretation unstable. It does not involve the dependent variable. Question 26 Which technique is commonly used to detect multicollinearity in linear regression?
A. Residual plots B. Variance Inflation Factor (VIF) C. ROC curve D. Confusion matrix Correct Answer : B Explanation: VIF quantifies how much a coefficient's variance is inflated due to collinearity. Values above 5 or 10 typically indicate problematic multicollinearity. Question 27 What is the effect of adding an irrelevant predictor to a linear regression model? A. It always improves the model's predictive accuracy B. It may increase R² but can reduce adjusted R² and worsen generalization C. It reduces the model's variance D. It eliminates multicollinearity Correct Answer : B Explanation: Irrelevant predictors can artificially inflate R² but adjusted R² penalizes unnecessary complexity. They may also increase overfitting risk. Question 28 Which of the following is a method for regularizing linear regression by adding a penalty proportional to the sum of squared coefficients?
A. To adjust for the scale of the features B. To represent the predicted value when all predictors are zero C. To measure the strength of the linear relationship D. To penalize large coefficients Correct Answer : B Explanation: The intercept (β₀) is the expected value of y when all predictors equal zero. It may or may not be meaningful depending on the context. Question 31 Which of the following is a consequence of heteroscedasticity in linear regression? A. Unbiased but inefficient coefficient estimates B. Biased coefficient estimates C. Perfect multicollinearity D. Guaranteed overfitting Correct Answer : A Explanation: Heteroscedasticity does not bias OLS coefficients but makes standard errors unreliable, leading to inefficient inference. Robust standard errors can address this. Question 32 What does the Durbin-Watson statistic test for in regression analysis?
A. Multicollinearity among predictors B. Autocorrelation in the residuals C. Normality of the residuals D. Homoscedasticity of the residuals Correct Answer : B Explanation: The Durbin-Watson statistic detects autocorrelation (usually in time series). Values near 2 suggest no autocorrelation; values toward 0 or 4 indicate positive or negative autocorrelation. Question 33 In the context of linear regression, what is an outlier? A. A data point with a large residual B. A data point with high leverage C. A data point that is influential on the regression line D. A data point that is both an outlier and has high leverage Correct Answer : A Explanation: An outlier has a large residual (poorly fit by the model). High leverage refers to extreme predictor values; influence combines both. Question 34 Which of the following is true about the residuals in OLS regression?
A. The point has an unusually large residual B. The point has an extreme value on one or more predictors C. The point is perfectly predicted by the model D. The point is an outlier in the target variable Correct Answer : B Explanation: High leverage points have predictor values far from the mean. They can disproportionately influence the regression line, especially if combined with large residuals. Question 37 Which of the following is a valid way to handle missing data in linear regression? A. Always delete all rows with missing values B. Impute missing values using mean, median, or model-based methods C. Replace missing values with zeros D. Ignore missing values during training Correct Answer : B Explanation: Imputation preserves data and can be done via mean, median, or more sophisticated methods. Listwise deletion may introduce bias; ignoring missing values is not feasible. Question 38 What is the Akaike Information Criterion (AIC) used for in regression?
A. Testing the significance of individual coefficients B. Comparing models by balancing goodness of fit and model complexity C. Detecting multicollinearity D. Checking the normality of residuals Correct Answer : B Explanation: AIC = 2k - 2ln(L), where k is the number of parameters. Lower AIC indicates a better tradeoff between fit and complexity. It is used for model selection. Question 39 In linear regression, what does it mean if a coefficient's p-value is less than 0.05? A. The coefficient is practically significant B. The coefficient is statistically significantly different from zero at the 5% level C. The model explains 95% of the variance D. The predictor is uncorrelated with the outcome Correct Answer : B Explanation: A p-value < 0.05 suggests the coefficient is unlikely to be zero by chance. Statistical significance does not imply practical importance. Question 40 Which of the following is a limitation of linear regression?