Verified Jobs Live
Data Science & Machine Learning Easy Level ~3 min read

How do classification and regression differ? Give an example of each.

Interactive Practice Mode
Formulate your thoughts or take notes before revealing the model solution.
Model Answer & Deep-Dive Explanation

Classification predicts a category or category probability, such as whether a customer will cancel a subscription. Regression predicts a numerical quantity, such as next month’s energy usage. The business target determines the task, not whether the input columns contain numbers. A model that estimates cancellation probability still supports a classification problem, and the final decision needs a threshold. Evaluate classification with suitable class-sensitive metrics and regression with errors in meaningful units. The cost of errors and deployment conditions should guide metric selection.