0% found this document useful (0 votes)
0 views

Assignment_2_with_questions

Regression is a supervised learning technique used to predict continuous outcomes based on predictor variables, minimizing error between predicted and actual values. In contrast, classification predicts discrete labels or categories, focusing on assigning the correct class label. Both techniques utilize different algorithms and evaluation metrics specific to their respective tasks.

Uploaded by

Calmer Music
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Assignment_2_with_questions

Regression is a supervised learning technique used to predict continuous outcomes based on predictor variables, minimizing error between predicted and actual values. In contrast, classification predicts discrete labels or categories, focusing on assigning the correct class label. Both techniques utilize different algorithms and evaluation metrics specific to their respective tasks.

Uploaded by

Calmer Music
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment 2

Question 1: What is Regression?

Regression is a supervised learning technique used to predict a continuous outcome variable based

on one or more predictor variables.

In regression, the model learns a mapping from the input data (features) to a continuous value. The

goal is to minimize the error between the predicted values

and the actual values. Common algorithms for regression include Linear Regression, Polynomial

Regression, and Decision Trees.

For example, predicting the price of a house based on features like its size, location, and age is a

regression task.

Justification:

- The outcome variable is continuous.

- Regression assumes a functional relationship between variables.

- It minimizes error metrics like Mean Squared Error (MSE) or Mean Absolute Error (MAE).

Question 2: What is Classification?

Classification is also a supervised learning technique, but it is used to predict a discrete label or

category. The model learns to

map input features to a specific class label. Unlike regression, the output is categorical, and the

focus is on assigning the correct class label rather

than predicting a numerical value. Popular algorithms for classification include Logistic Regression,

Support Vector Machines, and Random Forests.

For example, identifying whether an email is spam or not based on its content is a classification

task.
Justification:

- The outcome variable is categorical.

- Classification models predict discrete class labels.

- Metrics like accuracy, precision, and recall are used to evaluate classification models.

You might also like