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

Experiment - 2: To Implement Multiple Regression in Python

To Implement Multiple Regression In Python

Uploaded by

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

Experiment - 2: To Implement Multiple Regression in Python

To Implement Multiple Regression In Python

Uploaded by

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

NISHEETA THAKUR

121A1114 D2
EXPERIMENT – 2
AIM: To Implement Multiple Regression In Python

THEORY:

Machine Learning is a branch of Artificial intelligence that focuses on the development of


algorithms and statistical models that can learn from and make predictions on data. Linear
regression is also a type of machine-learning algorithm, more specifically a supervised machine-
learning algorithm that learns from the labelled datasets and maps the data points to the most
optimized linear functions. which can be used for prediction on new datasets.

Linear regression is a type of supervised machine learning algorithm that computes the linear
relationship between the dependent variable and one or more independent features by fitting
a linear equation to observed data.

When there is only one independent feature, it is known as Simple Linear Regression, and when
there is more than one feature, it is known as Multiple Linear Regression.
Similarly, when there is only one dependent variable, it is considered Univariate Linear
Regression, while when there is more than one dependent variable, it is known as Multivariate
Regression.
Multiple Linear Regression

 Multiple linear regression extends simple linear regression to handle multiple


independent variables. It models the relationship between two or more features and
a dependent variable. The general equation for multiple linear regression is:
 y=β0 +β1 X1 +β2 X2 +⋯+βn Xn
 where:
 y is the dependent variable (the outcome you want to predict).
 X1, X2 ,…,Xn are the independent variables (the features used to make predictions).
 β0 is the intercept of the regression line.
 β1, β2 ,…, βn are the coefficients of the independent variables, representing their
respective contributions to the prediction of y.
Code: -

Output :
Conclusion: -

Hence Multi Linear Regression was implemented using Python.

You might also like