How to find a polynomial that best fit with scatter plot?
28 ビュー (過去 30 日間)
I am trying to find a best-fit polynomial equation that works well for my data set (two parameters x, and y).
First, I attempt to fit a polynomial line using Excel (figure attached). The equation shows the best fit with the original scatter plot (the red line is the best fit polynomial line).
However, when I try to estimate values with the best-fit equation, it looks very different from actual data points.
A similar error is observed when I attempt to use the Matlab function polyfilt.
p = polyfit(x,y,2)
May someone suggets me how i can fix this.
(data is also attached).