Question: Following is a dataset.Write a simple python code to find the best - fit polynomial line for the dataset and plot the best fit line

Following is a dataset.Write a simple python code to find the best-fit polynomial line for
the dataset and plot the best fit line against the dataset. 4
x y
0.01.0
0.51.6
1.02.2
1.52.9
2.03.5
2.54.3
3.05.1
3.56.0
4.07.0
4.58.0
5.09.1
5.510.3
6.011.5
6.512.8
7.014.2
7.515.7
8.017.2
8.518.8
9.020.5
9.522.3
10.024.1
B) Can you think of a Genetic Algorithm strategy to provide an alternative way to find out the
coefficients for the above best fit line? Explain your strategy. 6
C) Write a computer code implementing your Genetic Algorithm strategy to find out the
coefficients. Compare them to what you obtained in question no (1.A).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!