Aspect Capital interview question

Linear regression maths problem and coding problem