Linear regression and correlation analysis (with solution)