I would like to do polynominal regression on a set of data. Theoritically, it should be that the deeper the polynominal, the higher (R^2) I can get, but it is also known that overfitting could be a bigger problem if I go too deep. Then how should I do this polynominal regression? How can I determine how many items are there in such a task?