Linear regression
Linear Regression is one of the most fundamental and widely used algorithms in machine learning and statistical modeling. It is used to understand the relationship between two or more variables by fitting a straight line through the data points.
This line, called the regression line, helps in predicting outcomes based on input variables — making it one of the most essential tools for data analysis and prediction.
Y = Dependent (target) variable
X = Independent (input) variable
a = Intercept (value of Y when X = 0)
b = Slope (how much Y changes for each unit change in X)
ε = Error term (difference between predicted and actual values)