
Regression is an important part of machine learning which falls under supervised learning. Reading this article will help you to clear all your doubts regarding linear regression in machine learning.
Consider this diagram and relate this with an example shared above, where temperature is an independent variable and icecream is a dependent variable which is dependent on temperature.
If the temperature rises, sales of ice cream will also increase and vice versa.