contestada

next you will implement gauss-newton for non-linear least squares in def nonlinear regression gn(x, y, initialp). remember that gauss-newton is an iterative-improvement algorithm so you will need a loop to repeat the calculation a number of times. for this assignment, you may hard code a fixed number of iterations. when you are working with the data set below, try to find the minimal number of iterations to get a decent answer. (it doesn't need to be precise, more along the lines of do you need 10, 100, 1000, etc.)