代写 math Here is a file called ​

Here is a file called ​
labdata.txt​
that contains some sample data from a lab experiment.
Data file: l​ abdata.txt 44 71
79 37
78 24
41 76
19 12
19 32
28 36
22 58
89 92
91 6
53 7
27 80
14 34
8 81
80 19
46 72
83 96
88 18
96 48
77 67
Interpret the data file such that each line contains a an x,y coordinate pair. Write a
​labdata.txt​
​plotRegression​
setworldcoordinates​
function called
points and a best fit line according to the following formulas:
that reads the data from this file and uses a turtle to plot those
y=y ̄+m(x−x ̄) m=​∑x​i​y​i​−nx ̄y ̄∑x​2i​−nx ̄​2
where ​x ̄​ is the mean of the x-values, ​y ̄​ is the mean of the y- values and ​n​ is the number of points. If you are not familiar with the mathematical ​∑​ it is the sum operation. For example ​∑x​i​ means to
add up all the x values.
Your program should analyze the points and correctly scale the window using
so that that each point can be plotted. Then you should draw the best fit
line, in a different color, through the points.
Submit a repl.it link, but the assignments will be tested in VS code.
Rubric:
75%: your program opens the file and plots the points for the given data set
85%: In addition to 75%, your program correctly calculates the slope for the given data set
95%: In addition to 85%, your program correctly calculates and plots the line of best for the given data set, and displays the equation of the line of best fit on the plot.
100%+: In addition to 95%, your program works with ANY data set. The challenge here is getting your
program to display a nice plot and equation for DIFFERENT data sets that contain different ranges of
values. For your convenience some sample data files are attached.