Challenge

Week 5 - Curve fitting

1)

popt = the command use for the return or remove the elements from index or data file and it's minimuze the sum of squre of residual

cvov = 2d array for rhe covariance of popt. The diagonals provide the variance of the parameter estimate. use for the compare one standard deviation errors on the parameters.

2)np.array = it's use for the work for the array and solve the various value at the time.

3)reference to popt / the values stored in the array popt

4)

for linear polynomial

for cubic polynomial

result is good

5)

first I change the power of the value in multiple time and they shows the result and some time later i can use the same power given in the value then its work and shows the best cubic polynomial curve than liniear polynomial curve

6)

A cubic curve has been almost fit into original data curve with some tolerance compared to linear predicted curve. If curve fit overlapped to original data under the defined some tolerances it's means best curve fit.

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.