Which of the following is a regression task

Which of the following is a regression task? (multiple options may be correct)

(a) Predicting the monthly sales of a cloth store in rupees.

(b) Predicting if a user would like to listen to a newly released song or not based on historicaldata.

(c) Predicting the confirmation probability (in fraction) of your train ticket whose currentstatus is waiting list based on historical data.

(d) Predicting if a patient has diabetes or not based on historical medical records

The Correct Answer and Explanation is :

The correct options for regression tasks are:

(a) Predicting the monthly sales of a cloth store in rupees.
(c) Predicting the confirmation probability (in fraction) of your train ticket whose current status is waiting list based on historical data.

Explanation:

Regression tasks involve predicting a continuous value. In other words, the output variable (target variable) is a real number, often representing quantities or probabilities.

  • Option (a) Predicting the monthly sales of a cloth store in rupees: This is a regression task because the sales amount is a continuous value (measured in rupees). The task involves predicting a real-valued number based on historical data, such as previous sales, seasonality, or marketing efforts. Sales data is inherently continuous, so this task is a classic example of a regression problem.
  • Option (c) Predicting the confirmation probability (in fraction) of your train ticket whose current status is waiting list based on historical data: This is also a regression task. The output here is a probability, which is a continuous value between 0 and 1, representing the likelihood that the waiting-list ticket will get confirmed. Probabilities are continuous values and are typically predicted using regression models, especially when dealing with historical data.

Why the other options are not regression tasks:

  • Option (b) Predicting if a user would like to listen to a newly released song or not based on historical data: This is a classification task, not regression. The output is categorical, either “Yes” or “No,” meaning it’s a binary classification problem, where the goal is to classify the user’s preference, not predict a continuous value.
  • Option (d) Predicting if a patient has diabetes or not based on historical medical records: This is also a classification task. The output is categorical, with two classes—diabetic or not—so it involves assigning the patient to one of these two categories, not predicting a continuous value.

In summary, regression tasks predict continuous values, whereas classification tasks predict discrete categories. Therefore, (a) and (c) are regression tasks, while (b) and (d) are classification tasks.

Scroll to Top