This question is directly connected with my problem in Python section HERE. Basically I've programmed a method with mathematical and physical background that forms a polynomial of selected degree whose coefficients are calculated by the measured data.
The final result is a graph that has a correlation between time to rapture and stress at different temperatures. The measurements (measured points) are done at specific temperatures, but with this method you can, after determination of polynomial coefficients, extrapolate a curve for any desired temperature.
You can check out the graphs with the use of 2nd, 3rd, 4th and 5th degree polynomials HERE (to get a better feeling).
2 problems seem to appear:
It is especially noticeable in the mid section of 4th and 5th degree polynomial and in case of higher order polynomials it may be even worse.
2. Physical incorrectness of polynomial derivative
This appears in 4th degree polynomial where the curve at the bottom section changes its path from left to right - the derivative goes from negative to positive which is physically impossible. It should go in the same direction and manner like 5th degree. Same goes for 3rd degree.
1. QUESTION: How to fix the waving and derivative problem
I would like some general mathematical or numerical advice on how this problems are normally solved (with some extra conditions?). For smoothing of the waves I was thinking of an averaging algorithm (similar to Savitzky–Golay filter).
2. QUESTION: What is the best/normal way of determining the Goodness-of-fit for non-linear regression
For linear models it's very easy (R squared), but in non-linear cases I'm not familiar with the procedure. Basically I need to determine the Goodness-of-fit for n-th degree polynomial (for any of the shown polynomials)
Any given advice is highly appreciable!