Linear Regression is a supervised machine learning algorithm used to predict a continuous numerical…
Linear Regression is a supervised machine learning algorithm used to predict a continuous numerical value.
It finds the best-fitting straight line between input variable X and output variable Y.
Formula:
Y = β₀ + β₁X + ε
Where:
Y = Dependent variable / target
X = Independent variable / feature
β₀ = Intercept
β₁ = Slope / coefficient
ε = Error
Linear regression tries to reduce the difference between actual values and predicted values.
Error = Actual value - Predicted value
It is commonly used for:
House price prediction
Salary prediction
Sales forecasting
Marks prediction
Demand prediction
A good linear regression model has:
Low MAE, MSE, RMSE
High R² score
Key point:
Linear Regression predicts continuous values by fitting the best straight line to the data.
Comments
Comments from the original post on Instagram
No comments yet
