[go: up one dir, main page]

0% found this document useful (0 votes)
25 views3 pages

Classification Vs Regression Interview Questions

The document outlines the differences between classification and regression, highlighting that classification predicts class labels while regression predicts continuous values. It provides examples, evaluation metrics, and discusses scenarios for choosing one approach over the other. Additionally, it addresses advanced topics such as handling imbalanced classes and the role of loss functions in both types of models.

Uploaded by

benbaby53
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views3 pages

Classification Vs Regression Interview Questions

The document outlines the differences between classification and regression, highlighting that classification predicts class labels while regression predicts continuous values. It provides examples, evaluation metrics, and discusses scenarios for choosing one approach over the other. Additionally, it addresses advanced topics such as handling imbalanced classes and the role of loss functions in both types of models.

Uploaded by

benbaby53
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Classification vs Regression - Interview Q&A

Basic Interview Questions

1. What is the main difference between classification and regression?

- Classification predicts class labels; regression predicts continuous values.

2. Can you give real-world examples of both classification and regression?

- Classification: Fraud detection, Email spam detection.

- Regression: House price prediction, Stock price forecasting.

3. How do you evaluate a classification model vs a regression model?

- Classification: Accuracy, Precision, Recall, F1 Score.

- Regression: MAE, MSE, RMSE, R2.

4. Is logistic regression used for regression or classification?

- Logistic regression is used for classification.

5. When would you choose classification over regression and vice versa?

- Based on the type of output: categorical -> classification; continuous -> regression.

6. Can you convert a regression problem into a classification problem?

- Yes, by binning continuous output into categories.

Intermediate Interview Questions

7. What happens if you use a regression algorithm for a classification problem?

- You get continuous output; need post-processing like thresholds.

8. What is the role of the loss function in classification and regression?

- Classification: Cross-Entropy Loss.

- Regression: MSE, MAE, Huber Loss.


Classification vs Regression - Interview Q&A

9. How does model performance differ in imbalanced classification vs normal classification?

- Accuracy is misleading. Use Precision, Recall, F1-Score.

10. Can you use decision trees for both classification and regression?

- Yes, Decision Trees support both.

Advanced Interview Questions

11. Explain how SVMs differ in classification and regression.

- Classification: Find a hyperplane to separate classes.

- Regression: Fit within a margin of tolerance.

12. What is ordinal classification and how is it different from regression?

- Ordinal: Ordered categories.

- Regression: Predicts numeric values.

13. How would you handle a classification problem where classes are imbalanced?

- Techniques: Resampling, SMOTE, class weights, anomaly detection.

14. How do metrics like R2 and RMSE help in regression?

- R2 shows variance explained; RMSE indicates average error magnitude.

15. Medical dataset scenario - classification vs regression?

- Classification: Disease diagnosis (Yes/No).

- Regression: Predicting cholesterol or sugar level.

Mini Quiz

Q: Estimating car prices - classification or regression?


Classification vs Regression - Interview Q&A

A: Regression

Q: Email spam detection - classification or regression?

A: Classification

Q: Predicting movie ratings from 1 to 5?

A: Depends - classification (discrete) or regression (continuous float).

You might also like