12000121126_priyajitdutta_ML
12000121126_priyajitdutta_ML
CONTINUOUS ASSIGNMENT-I
NAME : Priyajit Dutta
UNI. ROLL: 12000121126
Semester: 7th Semester
STREAM: Computer Science And Engineering
SUB: Machine Learning
PAPER CODE: PEC-CS701E
SEC.: CSE-2(Y)
Linear
Regression
INTRODUCTION
In Machine Learning lingo, Linear Regression (LR) means
simply finding the best fitting line that explains the
variability between the dependent and independent
features very well or we can say it describes the linear
relationship between independent and dependent features,
and in linear regression, the algorithm predicts the
continuous features(e.g. Salary, Price ), rather than deal
with the categorical features (e.g. cat, dog).
3 MAIN STEPS
IN LINEAR REGRESSION
Model Selection Model Training
● Choose the linear regression model (simple or ● Fit the linear regression model to the data by finding
multiple) based on the number of independent the best-fitting line (or hyperplane).
variables. ● Minimize the difference between the actual and
● Identify the dependent variable (target) and the predicted values using a method like Ordinary Least
independent variable(s) (features). Squares (OLS).
Model Evaluation
● Assess the model's performance using metrics like
R-squared, Mean Squared Error (MSE), and Root
Mean Squared Error (RMSE).
● Interpret the coefficients to understand the
relationship between variables and validate the
model's assumptions.
Types of Linear Regression
● Simple linear regression involves modeling the relationship between a single independent variable and
a dependent variable.
● The goal is to find the linear equation that best predicts the dependent variable using the independent
variable.
Equation: y = β0 +β1 X + ϵ
y: Dependent variable | x: Independent variable | β0: Intercept | β1: Slope | ε: Error term
Example:
● Multiple linear regression extends the concept of simple linear regression to include multiple independent
variables.
● This method models the relationship between two or more independent variables and a dependent variable.
Equation: y = β0 + β1 X1 + β2 X2 +...+ βn Xn + ϵ
y: Dependent variable | x_1, x_2, ..., x_n: Independent variables | β0: Intercept
β1, β2, ..., βn: Coefficients of the independent variables | ε: Error term
Example:
● Predicting house prices based on square footage, number of bedrooms, and location.
Applications
Economics Healthcare
Predicting Economic
Indicators Disease
Progression
Demand and Supply
Analysis
Finance Environmental
Stock Price
Science
Prediction Climate Modeling
CONCLUSION
In conclusion, linear regression is a fundamental statistical method used to model the
relationship between a dependent variable and one or more independent variables. It is widely
applicable across various fields such as economics, healthcare, marketing, finance, social
sciences, engineering, and environmental science, providing valuable insights and predictions. By
understanding and utilizing both simple and multiple linear regression models, we can make
informed decisions, identify trends, and forecast future outcomes, thus driving progress and
innovation in numerous domains.
Thank You