I'm exploring a method to determine the optimal degree for polynomial regression in Python. Here's my approach:
I iteratively fit polynomials of increasing degrees (up to degree 50), calculating the adjusted R² for each fit.
I then fit a logistic function to these adjusted R² values to model how the goodness of fit changes with polynomial degree.
Finally, I identify the polynomial degree that produces the largest positive residual between the actual adjusted R² and the logistic model's prediction, and select this as the optimal degree.
Is this approach statistically sound? Are there more established or computationally efficient methods for determining polynomial degree in regression analysis?
The polynomial seems to behave well, I'm using it to generate trends on time-series data.
They don't seem to have much predictive power, in my opinion, due to the high degree of parameters, but they may be useful for analyzing historical trends.