Question: Write a program to estimate the parameters for an unknown polynomial using the polyfit() function of the numpy package. Change variable number_of_samples to 40, 30,
Write a program to estimate the parameters for an unknown polynomial using the polyfit() function of the numpy package.
Change variable number_of_samples to 40, 30, 20, 10 respectively, re-ran the algorithm and plot the polynomials with the m found in 2). Discuss the impact of the number of samples on the accuracy of the returned parameters. [You need to plot a figure as in 1) for each choice of number_of_samples.]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
