Linear regression is a supervised machine learning algorithm used to predict a continuous numerical value given a set of input features. It is a widely used algorithm in a variety of applications, such as predicting stock prices, forecasting sales, and predicting the outcome of medical treatments. This article explores the basics of linear regression, including the different types, assumptions, and how to evaluate the performance of a linear regression model. Common pitfalls of linear regression and how to avoid them are also discussed.