Equation Fitting: Seeking Insight to Meet Requirements

  • Thread starter Thread starter CRGreathouse
  • Start date Start date
  • Tags Tags
    Fitting
CRGreathouse
Science Advisor
Homework Helper
Messages
2,832
Reaction score
0
I'm almost too embarrassed to post, but I thought someone might have insight that could help me here. I'm trying to fit an equation to data, but I'm just not sure what sort of equation I should use. I have some requirements on the form of the equation, and then I have points (yet to be determined, actually).

f'(x)>0\,\,\forall x>0 (cost is increasing)
f''(x)<0\,\,\forall x>0 (essentially, average cost is decreasing)
\lim_{x\rightarrow\infty} f(x)=k (price is bounded above in this fashion)

It would make the most sense if the origin was included, but this can be one of the data points.

So before I even think about least-squares vs. minimal points on the curve, I wanted to consider different forms that could make sense. The first that comes to mind was the elementary

y=a-\frac{ac}{x+c}

but this has some instabilities and oddities. I guess I'm just looking for thoughts on widely-used models that fit my criteria or could be modified to fit them. In the perfect case I'd have a smooth equation that was nearly linear for small x and essentially hyperbolic for large x.

Any suggestions would be welcomed.
 
Mathematics news on Phys.org
CRGreathouse said:
I'm almost too embarrassed to post, but I thought someone might have insight that could help me here. I'm trying to fit an equation to data, but I'm just not sure what sort of equation I should use. I have some requirements on the form of the equation, and then I have points (yet to be determined, actually).

f'(x)>0\,\,\forall x>0 (cost is increasing)
f''(x)<0\,\,\forall x>0 (essentially, average cost is decreasing)
\lim_{x\rightarrow\infty} f(x)=k (price is bounded above in this fashion)

It would make the most sense if the origin was included, but this can be one of the data points.

So before I even think about least-squares vs. minimal points on the curve, I wanted to consider different forms that could make sense. The first that comes to mind was the elementary

y=a-\frac{ac}{x+c}

but this has some instabilities and oddities. I guess I'm just looking for thoughts on widely-used models that fit my criteria or could be modified to fit them. In the perfect case I'd have a smooth equation that was nearly linear for small x and essentially hyperbolic for large x.

Any suggestions would be welcomed.
One equation that fits your requirements is:
f(x) = k(1 - e^{-ax}) k > 0 a > 0
Then
f´(x) = ak e^{-ax} > 0
f"(x) = -a^2k e^{-ax} < 0
 
SGT said:
One equation that fits your requirements is:
f(x) = k(1 - e^{-ax}) k > 0 a > 0
Then
f´(x) = ak e^{-ax} > 0
f"(x) = -a^2k e^{-ax} < 0

Thanks. You know, I was just so out of it I didn't think to use this. :blushing:

I'm going to play with this for a while and make it work. You gave me just what I needed to get my brain working again.
 
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...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...

Similar threads

Replies
2
Views
1K
Replies
19
Views
2K
Replies
19
Views
6K
Replies
6
Views
2K
Replies
1
Views
2K
Replies
2
Views
2K
Replies
5
Views
3K
Replies
16
Views
3K
Back
Top