Solving Parabolic Curve in Excel: Find A with Given X and Y

  • Thread starter Thread starter marlon
  • Start date Start date
Click For Summary
To fit a parabolic curve to given x and y values in Excel, one effective method is to use the trendline feature. By plotting the data and selecting a polynomial trendline of order 2, Excel can generate the equation for the curve, allowing for the extraction of the parameter A from the equation y = A(x-7)². For a more precise approximation of A, the chi-squared deviation can be minimized using Excel's Solver tool. This involves inputting an initial guess for A, calculating the chi-squared value, and adjusting A to minimize this value. Alternatively, the problem can be approached through analytical methods by minimizing the chi-squared value mathematically or by using linear regression techniques. The variable for regression would be (x-7)², and Excel's LINEST function can be utilized for this purpose, providing not only the parameter A but also additional statistical insights.
marlon
Messages
3,779
Reaction score
11
Hi i have a question on excell...

How can a fit a parabolic curve when all x and y values are given in a column. What i mean is given the equation y = A(x-7)² and ten x with corresponding y values, what is the best apprximation for A ?

regards
marlon
 
Computer science news on Phys.org
if you have all the values, you could just plot it out and have Excel plot out the trendline for you. Right click a data point on the graph, select Add Trendline and select Polynomial (make sure the order is set to 2). Make sure to tell Excel to display the equation on the graph (under the options tab). You should get a second order polynomial which you can re-write to find out what A is.
 
Hi Marlon

first: you decide what you take as best approximation, let's assume chi² deviation w/r to the theoretical curve
second: you put in a cell the unknown parameter(s), with some guess value
third: you calculate in a new cell the chi² value
fourth: you use the excel solver to minimize the chi² by changing the parameter(s)

The xl solver can solve for up to 200 variables, in the standard version.

Another method:
Find out the analytical theory that gives the parameter(s). You can do that by minizing analytically the chi².
You can also find that in many textbooks.
For one parameter this will be quite simple.
For several parameters you come on a system of linear equations that you can solve also in Excel.
(use minverse and mmult functions).
For several parameters, the coefficients of the matrix are some moments of the distribution of the experimental x and y values.

Yet another method:
Your exact problem is actually a linear regression (apparently 1 parameter: A, maybe more).
The variable of the linear regression is not x but (x-7^)² in your example.
Excel offers a very powerful linear regression function called "LINEST".
It will solve your problem and it will provide additional statistical results.
 
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 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 8 ·
Replies
8
Views
794
  • · Replies 40 ·
2
Replies
40
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K