Given data , OLS picks coefficients to minimize the sum of squared residuals . The closed-form solutions are
In matrix form, with response vector and design matrix :
OLS rests on five assumptions: linearity, independent errors, homoscedasticity (constant error variance), no perfect multicollinearity, and (for classical inference) Normally distributed errors. Under the Gauss-Markov conditions (the first four), OLS is BLUE — the best linear unbiased estimator — even without Normality. Normality just buys you exact - and -distributions for inference.
In quant finance, OLS is the warhorse of factor models — regressing returns on market, size, value, and other factors gives you a portfolio's exposures.