How to Calculate Uncertainty in Polynomial Fit Parameters Using Excel?

Click For Summary
To calculate uncertainty in polynomial fit parameters using Excel, one can utilize the R^2 correlation coefficient, which indicates the accuracy of the fit. The "INSERT TRENDLINE" dialog box in Excel allows users to display the equation and R^2 value on the chart. It's important to adjust the number of decimal places in the displayed equation for better correlation with the data. For non-linear fits, users may need to explore additional software or numerical methods resources. Understanding these tools can enhance the accuracy of polynomial fitting and uncertainty estimation.
JamesJames
Messages
204
Reaction score
0
I performed a fit, using EXCEL, to data and the fit gave me a polynomial. How do I get the uncertainty in the resulting parameters. For example the least squares fit gives y = Ax+B and there are equations to give the uncertainties in A and B. IS there a program that does this for non linear fits?

James
 
Computer science news on Phys.org
You'll want to output the R^2 correlation coefficient. The closer R^2 is to 1, the more accurate the equation is. I know excel can output it, but I'm not sure exactly how since I haven't used excel in a long time.
 
In the "INSERT TRENDLINE" dialog box, there is a tab for options. At the bottom of the dialog box you will see three check boxes. "SET INTERCEPT TO 0," "DISPLAY EQUATION ON CHART" and "DISPLAY R^2 ON CHART." Select the ones you want.

Word of warning, if you check the equation output, you may have to increase the number of decimal places shown in the equation to get better correlation between your regression and the data.
 
How about performing a fit to data that should obey [csc(theta/2)]^4. Would this be out of a numerical methods book or something?

James
 
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...

Similar threads

  • · Replies 28 ·
Replies
28
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
6
Views
1K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 30 ·
2
Replies
30
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K
Replies
8
Views
2K