2nd Order Polynomial Regression/Best Fit
Basically what I'm wanting to do is get a 2nd order polynomial equation of a best fit from a given set of data, stored in a 2D double array called data. (doesn't have to be a 2D, just the way I've read it in.) I've got my array set up, and I'm reading the data in from a .CSV file.
Now, I've looked for libraries/code that would do this for me, but can't seem to make head nor tail of it all! One of the things I found in a Google search were:
The idea being that using the given polynomial, I could input a new bit of data, and basically using the polynomial it would calculate (or predict) a new value.
Any ideas/pointers/anything how I would go about this? It's all gotten a bit confusing.