Build me a C# program without library that performs 2nd and 3rd order polynomial regression over n XY data points.

Job ID: 35790504

Budget: $30 – $250 USD

Very simply, I am looking for help in modifying the 2nd order polynomial regression matrix process for C#, without any external library, to also perform the 3rd order polynomial regression also without an external library in C#. I have the functional 2nd order C# code here as a .cs file. In any case the code was downloaded from here:

https://www.codeproject.com/Articles/63170/Least-Squares-Regression-for-Quadratic-Curve-Fitti

And may provide a place to start the additional modification to the 3rd order polynomial regression.

It would be great to have a parameter to choose between 2nd and 3rd order.

Thank you for your consideration,

Equitymasters