Assignment 2 Given x = [1,2,3,4] and y = [6,5,7,10], please find a line of best fit that satisfies y = B1+ B2x. Your task is to solve the values of B1 and B2 using the least squares approach and applying the partial derivatives. You need to use Python to solve this problem.
Assignment 2
Given x=[1,2,3,4]and y=[6,5,7,10],please find a line of best fit that satisfies y=B+Bx.Your task is to solve the values of Band B using the least squares approach and applying the partial derivatives
You need to use Python to solve this problem