Linear Regression is the analyses of two separate variables to define a single relationship. In this, we predict one variable depending on the other variable.
The factor which we predict is known as Dependent Variable and other is Independent Variable.
We will try to understand this relationship with an example of Car's speed and Car's mileage.
Here, car's mileage is a depending variable and will denote it with 'Y' and car's speed is an independent variable and will denote it with 'X'.
Car's Speed(miles per hour-X) Car's Mileage(miles per gallon-Y)
The graph will show BEST FITTED LINE which means this is closest prediction with minimum error:
Thank you everyone for reading.