The classic linear regression model is one method to determine the relationship between two variables.
Ordinary Least Squares (OLS) is a method for estimating the unknown parameters in a linear regression model. This method minimizes the differences between the observed responses in a dataset and the responses predicted by the linear approximation of the data.