A Linear Regression model’s main aim is to find the best fit linear line and the optimal values of intercept and coefficients such that the error is minimized. Error is the difference between the actual value and Predicted value and the goal is to reduce this difference. The vertical distance between the data point and the regression line is known as the error or residual. Each data point has one residual and the sum of all the differences is known as the Residual Sum of Squares (RSS). Linear regression is an effective statistical method for understanding business, profitability-influencing variables, and consumer behavior. It originates from statistics and is used as a statistical model to show relationships between dependent and independent variables from various datasets such as real-estate price prediction, stock market data, medical diagnostic dataset, weather analysis, and various socioeconomic indicators. Businesses can assess trends and create estimates or forecasts using linear regressions. For example - If a company’s sales have increased steadily over the past few years and by conducting a linear regression analysis on the sales data with monthly sales, the company can forecast sales in future months.