InterviewStack.io LogoInterviewStack.io

Classification and Regression Fundamentals Questions

Covers the core concepts and distinctions between classification and regression in supervised learning. Classification predicts discrete categories, either binary or multi class, while regression predicts continuous numerical values. Candidates should understand how to format and encode target variables for each task, common algorithms for each family, and the theoretical foundations of representative models such as linear regression and logistic regression. For regression, know least squares estimation, coefficients interpretation, residual analysis, assumptions of the linear model, R squared, and common loss and error measures including mean squared error, root mean squared error, and mean absolute error. For classification, know logistic regression with its sigmoid transformation and probability interpretation, decision trees, k nearest neighbors, and other basic classifiers; understand loss functions such as cross entropy and evaluation metrics including accuracy, precision, recall, F one score, and area under the receiver operating characteristic curve. Also be prepared to discuss model selection, regularization techniques such as L one and L two regularization, handling class imbalance, calibration and probability outputs, feature preprocessing and encoding for targets and inputs, and trade offs when choosing approaches based on problem constraints and data characteristics.

EasyTechnical
23 practiced
Define logistic regression mathematically and explain how the sigmoid function converts linear outputs into probabilities. In a one-paragraph explanation, describe why logistic regression is suitable for binary conversion-prediction problems in an e-commerce BI context.
EasyBehavioral
26 practiced
You need to explain multicollinearity to a product manager who uses a linear regression model to prioritize product features for investment. Provide a concise explanation of what multicollinearity is, why it affects coefficient interpretation, and two remediation strategies you would implement in the BI modeling workflow.
HardTechnical
22 practiced
A BI dashboard needs to display an ensemble model's predictions but stakeholders want a simple explanation of how the prediction was made. Describe two techniques to explain ensemble outputs and how feasible they are for real-time dashboard tooltips.
MediumTechnical
23 practiced
Explain cross-entropy loss for binary classification and why it is preferred over 0/1 loss in training probabilistic classifiers. Describe in simple terms what minimizing cross-entropy does to model probabilities and how that relates to calibration.
EasyTechnical
32 practiced
Implement a Python function using NumPy to compute Mean Squared Error (MSE) and Root Mean Squared Error (RMSE) between two arrays: y_true and y_pred. Assume both are 1D NumPy arrays of the same length. Provide the function signature and a short explanation of when RMSE is preferred over MAE in reporting business impact.

Unlock Full Question Bank

Get access to hundreds of Classification and Regression Fundamentals interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.