Linear regression attempts to model the relationship between two variables by fitting a linear equation to observed data. The most common method for fitting a regression line is the method of least squares, which minimizes the vertical deviations between observed data points and the fitted line. Outliers and influential observations are data points far from the regression line that can significantly impact the slope and strength of the linear relationship. Residual plots are used to investigate the validity of assuming a linear relationship between variables and to identify potential lurking variables not included in the model.