hi i'm not sure how to start this program.
The program is:
to take in a set of x and y data, perform the least squares regression, and use the coefficients to predict values for the x values given and print the x, y and predicted y values.
Input should come from A FILE in the form: x y. The x-values should be read in to one floating point array and the y-values into another floating point array, so that the array index (element) identifies the dependent (y) and independent (x) values that belong together. For example, the first x, y values will be stored in position (or element, or index) 1 in each of the array of x values and array of y values. Reading of the values should be accomplished using a function called in the following way:
[fXValues, fYValues, iNValues] = readXYPairs(FIDIn)