Linear regression helps us predict score of a variable X from the scores on other variables Y. When the variables Y are plotted, linear regression finds the best-fitting straight line through the points. The best-fitting line is called a regression line.
<ahref='https://www.mladdict.com/linear-regression-simulator'target='_blank'rel='nofollow'>Online linear regression simulator</a>
Code example is from <ahref='http://blog.floydhub.com/coding-the-history-of-deep-learning/'target='_blank'rel='nofollow'>this article</a>. It also explains gradient descent and other essential concepts for deep learning.
It is important to note that not all linear regression is done with gradient descent. The normal equation can also be used for finding the linear regression coefficients, however, this uses matrix multiplication, and therefore can be very time consuming to use for more than 100,000 or 1,000,000 instances.