Question: Write a function that will receive data points in the form of x and y vectors. If the lengths of the vectors are not the
Write a function that will receive data points in the form of x and y vectors. If the lengths of the
vectors are not the same, then they cant represent data points, so an error message should be
printed. Otherwise, the function will fit a polynomial of a random degree through the points, and will
plot the points and the resulting curve with a title specifying the degree of the polynomial. The
degree of the polynomial must be less than the number of data points, n so the function must
generate a random integer in the range from to n for the polynomial degree.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
