0% found this document useful (0 votes)
24 views8 pages

(DL Lab2)

This lab report discusses implementing linear and logistic regression models. The document provides the student's name, course, and aim to apply the regression algorithms to a dataset. It explains linear regression finds the relationship between dependent and independent variables using an equation, while logistic regression predicts categorical outcomes by calculating probabilistic values between 0 and 1. The report includes the code and output for applying the two models to the "salary_data.csv" dataset and concludes the implementations were successful.

Uploaded by

Paayas Praful
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)
24 views8 pages

(DL Lab2)

This lab report discusses implementing linear and logistic regression models. The document provides the student's name, course, and aim to apply the regression algorithms to a dataset. It explains linear regression finds the relationship between dependent and independent variables using an equation, while logistic regression predicts categorical outcomes by calculating probabilistic values between 0 and 1. The report includes the code and output for applying the two models to the "salary_data.csv" dataset and concludes the implementations were successful.

Uploaded by

Paayas Praful
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/ 8

LAB - 2

Name: Paayas P
Roll No: CH.EN.U4AIE20046
Subject: 21AIE312 - Deep Learning for Signal and Image Processing

Aim:
To implement linear regression and logistic regression on the given dataset.
Theory:
Linear regression algorithm shows a linear relationship between a dependent
(y) and one or more independent (y) variables, hence called linear regression.
Since linear regression shows the linear relationship, which means it finds how the
value of the dependent variable is changing according to the value of the
independent variable.
Mathematically, we can represent a linear regression as:
y= a0+a1x+ ε
Here,
● Y= Dependent Variable (Target Variable)
● X= Independent Variable (predictor Variable)
● a0= intercept of the line (Gives an additional degree of freedom)
● a1 = Linear regression coefficient (scale factor to each input value).
● ε = random error
Logistic regression predicts the output of a categorical dependent variable.
Therefore the outcome must be a categorical or discrete value. It can be either Yes
or No, 0 or 1, True or False, etc. but instead of giving the exact value as 0 and 1, it
gives the probabilistic values which lie between 0 and 1.

1|Page
Code & Output:

2|Page
3|Page
4|Page
5|Page
6|Page

7|Page
Conclusion:
Thus I have successfully implemented linear and logistic regression models
on the provided dataset “salary_data.csv”.

8|Page

You might also like