0

The project I am working on is almost identical to the problem outlined at this link:

https://financetrain.com/multivariate-linear-regression-in-python-with-scikit-learn-library

As a summary, there are N independent x variables, and one dependent y variable. I have followed the steps on that website and replicated results on my own data.

However, I would like to get a polynomial (of any degree) to model the regression performed. Can someone point me in the right direction to doing this?

I can give more details if needed, but I have no experience statistics, so if there is a better way to go about this, recommendations are very very welcome!

StupidWolf
  • 45,075
  • 17
  • 40
  • 72
  • does this help? https://stackoverflow.com/questions/63679091/scipy-interpolate-make-interp-spline-how-to-retrieve-all-the-coefficients/63679858#63679858 – bogovicj Oct 03 '21 at 21:44
  • @bogovicj From what I understand, that is only used for relating ONE set of x values to one set of y values. My data has multiple sets of x values – scikitnoob Oct 04 '21 at 05:22
  • it really depends on how you want to model each term? I mean if you have 5 x independent variables, you want to do a polynomial on each them? – StupidWolf Oct 04 '21 at 07:11
  • can you elaborate more, right now it's a bit unclear – StupidWolf Oct 04 '21 at 07:12
  • @StupidWolf My goal is a polynomial that combines the 5 x independent variables in any way to model the relationship between x and y. So, with future x values, I can plug them into this polynomial and estimate future y values. Please let me know if you want more elaboration. – scikitnoob Oct 04 '21 at 15:30

0 Answers0