Practical 3
Aim: Implement simple and multiple linear regression models.
Theory:
Linear regression is a type of supervised machine-learning algorithm that learns from the labelled datasets
and maps the data points with most optimized linear functions which can be used for prediction on new
datasets. It assumes that there is a linear relationship between the input and output.
Multiple Linear Regression extends this concept by modelling the relationship between a dependent
variable and two or more independent variables. This technique allows us to understand how multiple
features collectively affect the outcomes.
Program:
9
10
11
12
13
14