Find Fitting Function for Plot Without Data Points

  • Thread starter Thread starter Dathascome
  • Start date Start date
  • Tags Tags
    Fitting Function
AI Thread Summary
To find a fitting function for a plot without known data points, one can use a least squares fitting approach, which requires an initial guess of the functional form. The choice of function—whether linear, quadratic, cubic, or another form—depends on the characteristics of the curves observed. If exact points are needed, an n-1 power polynomial may be used, though this can complicate the analysis. The discussion highlights the importance of having a conceptual model in mind, such as an arctan function, to guide the fitting process. Overall, exploring interpolation and least squares fitting techniques can help in parameterizing the curves effectively.
Dathascome
Messages
55
Reaction score
0
Hi there,
This might be a sort of vague question, but if I have a plot say that I don't know the data points for, how can I go about trying to find a fitting function (basically a functional form) for the curves I'm looking at?
Basically I have a figure I got from a journal paper that I want to parameterize with two variables of interest, come up with some sort of functional form for it whose parameters I can tune to change what the curve looks like and then put this into some code that I have.

I'm not really sure where to start with this. I know that there fitting procedure I can use if I have a guess at the functional form but maybe want to tweak the exponents or coefficients say, but I'm not really sure if this applies in this situation.

Sorry if this is to general and vague.

Thanks much.
 
Mathematics news on Phys.org
It's not clear what you want. If you want a function that is close to the given points, then a "least squares" solution is the best to use. You will need to decide, from the given points, if least squares plane, or quadratic, or cubic, etc. is what you need. If you want a function that passes exactly through the points, then you will need an n-1 power polynomial in both parameters. That, typically, is far more complicated than a least squares approximation.
 
I think part of the reason that it's not so clear what I'm trying to do is that I'm not 100% sure what I need to be doing and I'm trying to figure that out.

Here's the figure (since I got it from a journal article I thought it best to leave it unlabled).

screen-capture.jpg


The solid line is say f(x,y=const). At some specific x I change y to some other value and get the dashed line and at the same x if i change y to another value I get the dotted line. At some different x I change y again and get the thin solid line. Basically x is time and y is energy. The solid line is no extra energy injected, dashed and dotted lines are differing amounts of energy injected at the same time, and the thin line is injecting energy at a different time.

I know the amounts of energy injected and at what times but I want to come up with some sort of functional form for f(x,y) where I can basically tweak x and or y and sort of cycle between the curves.

From the paper that contained this figure I know that f(x,y) is some complicated function that was numerically integrated.

Does that make more sense that what I initially said?

I've been reading a bit about interpolation and least squares fitting which sound promising but I'm not totally sure this is what I'm looking to do.

If I'm understanding them right, I need to have some function in mind that the ones I'm looking at could fit to and then do the least squares say and see how well it does fit? The curves look vaguely arctan-esque to me, so would I start with that or would I want to try to fit it to some polynomial?

Sorry if this is still confusing, it is to me to :smile:
Thanks much for the help.
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...

Similar threads

Replies
9
Views
2K
Replies
2
Views
1K
Replies
19
Views
2K
Replies
1
Views
1K
Replies
6
Views
1K
Replies
22
Views
3K
Replies
3
Views
1K
Replies
6
Views
2K
Back
Top