Linear regression and beyond