Create a data file that stores data points (the x values in one column and then the y values in a…

Create a data file that stores data points (the x values in one column and then the y values in a second column). Write a script that will execute the following:

∎ Read the data points.

∎ Fit a straight line to the points.

∎ Create a vector diffv that stores for every x value the difference between the actual y value and the y value predicted by the straight line.

∎ Find and print the standard deviation of the vector diffv.

∎ Plot the original data points and the line.

∎ Print how many of the actual y values were greater than the predicted.

∎ Print how many of the actual data y values were within 1 (+ or ) of the predicted y value.

 

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer