Working backwards from the Area Under a Curve?

  • I
  • Thread starter mikejm
  • Start date
  • Tags
    Area Curve
In summary: AUC" and..."c"?There is not a line of best fit that would give a good approximation of the relationship between "AUC" and "c". However, you could use a root-finding method (like Newton-Raphson perhaps) to find an approximate value for c. To do that you could rewrite the equation as (1-c)AUC - (100,000,000^(1-c) - 1) = 0 and use the root-finding method to find a value of c that makes the left
  • #1
mikejm
40
2
I am working on a synthesizer project and have reached a point that I am stumped on.

I am in this part trying to work from a basic curve of y=1/x^c (where x≥1):
y-1xc.PNG


As I understand, area under the curve between x=1 and x=100,000,000 (ie. more than I need for a rough approximation) would be:
y-1xcinteg.PNG

(Symbolab Integral calculator link)

So essentially,

AUC = (100,000,000^(-c+1) - 1)/(-c+1)

Can this equation be re-arranged to roughly approximate for "c="?


I would like to be able to give an "AUC" level between an arbitrary range, and from each AUC level given, calculate approximately "c". This "c" will then be put back into the original y=1/x^c equation. The shape of the y=1/x^c curve will then dictate a part of the synth's sound.

The point is to be able to adjust the y=1/x^c curve with a knob based on "AUC" rather than directly based on "c", as "AUC" makes more sense in this case.

Is this possible to do even approximately in this way?

Thanks a lot,
Mike
 

Attachments

  • y-1xc.PNG
    y-1xc.PNG
    6.6 KB · Views: 1,006
  • y-1xcinteg.PNG
    y-1xcinteg.PNG
    1.6 KB · Views: 895
Last edited:
Physics news on Phys.org
  • #2
mikejm said:
I am working on a synthesizer project and have reached a point with some math to be solved that I am stumped on.

I am in this part trying to work from a basic curve of y=1/x^c (where x≥1):View attachment 226125

As I understand, area under the curve between x=1 and x=100,000,000 (ie. more than I need for a rough approximation) would be:
View attachment 226126
(Symbolab Integral calculator link)

So essentially,

AUC = (100,000,000^(-c+1) - 1)/(-c+1)

I would like to be able to give an "AUC" level between an arbitrary range, and from each AUC level given, calculate approximately "c". This "c" will then be put back into the original y=1/x^c equation. The shape of the y=1/x^c curve will then dictate a part of the synth's sound.

The point is to be able to adjust the y=1/x^c curve with a knob based on "AUC" rather than directly based on "c", as "AUC" makes more sense in this case.

Is this possible to do even approximately in this way?

Thanks a lot,
Mike
If you are asking if there is some way to solve the equation AUC = (100,000,000^(-c+1) - 1)/(-c+1) for c, then the answer is no. However, you can use a root-finding method (like Newton-Raphson perhaps) to find an approximate value for c. To do that you could rewrite the equation as (1-c)AUC - (100,000,000^(1-c) - 1) = 0 and use the root-finding method to find a value of c that makes the left hand side zero.
 
  • #3
tnich said:
If you are asking if there is some way to solve the equation AUC = (100,000,000^(-c+1) - 1)/(-c+1) for c, then the answer is no. However, you can use a root-finding method (like Newton-Raphson perhaps) to find an approximate value for c. To do that you could rewrite the equation as (1-c)AUC - (100,000,000^(1-c) - 1) = 0 and use the root-finding method to find a value of c that makes the left hand side zero.

Thanks for clarifying tnich! Looks like that type of math would be very over my head and excessively burdensome to be doing continuously on an ongoing basis for my synth.

What about a simpler way? If I can work out a table of relationships between "AUC" and "c", should I not be able to find a line of best fit that would give a good approximation of the relationship?

I tried to start doing that here:

AUC calc.PNG


Which lead to this table and graph of AUC ~ c:

graph data.PNG


Is there any way to get a good approximate equation to describe the relationship from this or an expanded data set? How would I get that?

If not, worse case scenario, I can set up a table with 500 such values or so, and use that as a "reference" for the conversion when needed, but that's less favorable.

Thanks again!
 

Attachments

  • AUC calc.PNG
    AUC calc.PNG
    9.9 KB · Views: 943
  • graph data.PNG
    graph data.PNG
    15.5 KB · Views: 1,033
Last edited:
  • #4
mikejm said:
Thanks for clarifying tnich! Looks like that type of math would be very over my head and excessively burdensome to be doing continuously on an ongoing basis for my synth.

What about a simpler way? If I can work out a table of relationships between "AUC" and "c", should I not be able to find a line of best fit that would give a good approximation of the relationship?

I tried to start doing that here:

View attachment 226128

Which lead to this table and graph of AUC ~ c:

View attachment 226129
mikejm said:
Thanks for clarifying tnich! Looks like that type of math would be very over my head and excessively burdensome to be doing continuously on an ongoing basis for my synth.

What about a simpler way? If I can work out a table of relationships between "AUC" and "c", should I not be able to find a line of best fit that would give a good approximation of the relationship?

I tried to start doing that here:

View attachment 226128

Which lead to this table and graph of AUC ~ c:

View attachment 226129

Is there any way to get a good approximate equation to describe the relationship from this or an expanded data set? How would I get that?

Thanks again!

Is there any way to get a good approximate equation to describe the relationship from this or an expanded data set? How would I get that?

Thanks again!
For AUC < 9 a pretty good approximation is c = 1 + 1/AUC.
 
  • #5
tnich said:
For AUC < 9 a pretty good approximation is c = 1 + 1/AUC.
You changed your upper limit of integration from ##10^8## to ##10^9##. Did you mean to?
 
  • #6
tnich said:
You changed your upper limit of integration from ##10^8## to ##10^9##. Did you mean to?
Haha good eye. No I didn't mean to. Good eye. I don't think it will make a significant difference either way at that level though. I'll have to be more careful overall though.

tnich said:
For AUC < 9 a pretty good approximation is c = 1 + 1/AUC.

That looks perfect actually! For all readings where c>=1.3 it lines up beautifully to at least two decimal places with rounding. This is more than good enough. I will try it with AUC max setting of 3.333 (c>=1.3) and see what happens.

Thanks!
 
  • #7
Unfortunately, I dug into my synth and I actually most typically need "c" values in the 0.7-0.8 range, which looks like a much crazier range:

auc sub 1.PNG


But I also seem to have found a more ideal solution via mycurvefit.com:

Here is their 4 PL logistic fit model with c data for c=0.5-0.9 where they are able to get a perfect fit with not too complicated an equation:

4 PL logistic fit.PNG


Here is their 5 PL logistic fit with the full data from 0.1 to 0.9, again matching all points well, and creating what appears to be a good curve.
5 PL logistic fit.PNG


If I redo these graphs with the x & y swapped, it will give me an equation that represents c = ___ * AUC ... which is exactly what I need.

So looks like the best solution is sampling some data and plugging it into this fit caclulator.

Thanks for the help! Does that make sense? Any diff between 5PL and 4PL If I want accuracy? Both look good so far.

(Awesome...)
 

Attachments

  • auc sub 1.PNG
    auc sub 1.PNG
    18.3 KB · Views: 908
  • 4 PL logistic fit.PNG
    4 PL logistic fit.PNG
    26.4 KB · Views: 967
  • 5 PL logistic fit.PNG
    5 PL logistic fit.PNG
    26.4 KB · Views: 843
Last edited:
  • #8
mikejm said:
Unfortunately, I dug into my synth and I actually most typically need "c" values in the 0.7-0.8 range, which looks like a much crazier range:

View attachment 226130

But I also seem to have found a more ideal solution via mycurvefit.com:

Here is their 4 PL logistic fit model with c data for c=0.5-0.9 where they are able to get a perfect fit with not too complicated an equation:

View attachment 226131

Here is their 5 PL logistic fit with the full data from 0.1 to 0.9, again matching all points well, and creating what appears to be a good curve.
View attachment 226132

If I redo these graphs with the x & y swapped, it will give me an equation that represents c = ___ * AUC ... which is exactly what I need.

So looks like the best solution is sampling some data and plugging it into this fit caclulator.

Thanks for the help! Does that make sense? Any diff between 5PL and 4PL If I want accuracy? Both look good so far.

(Awesome...)
Looks like a good approach, but that standard error (SE) is about the same size as the values you are trying to approximate. The graph is a little deceptive because of the scale (in millions). The AUC values in the 0.6 to 0.9 range all look like zero and you can't really tell if you matched them well or not. If you are not interested in values of c less than say 0.5, I suggest that you try leaving those out of your curve fit to get a better fit for the values you do care about.
 

1. What is the Area Under a Curve?

The Area Under a Curve, also known as the integral, is a mathematical concept that measures the total area between a curve and the x-axis on a graph. It is represented by the symbol ∫ and is used to find the total value or quantity of a function over a specific interval.

2. Why is working backwards from the Area Under a Curve important?

Working backwards from the Area Under a Curve allows us to find the original function or equation that produced the curve. This is useful in many scientific and mathematical fields, such as physics, economics, and engineering, as it helps us understand and model real-world phenomena.

3. How do you work backwards from the Area Under a Curve?

To work backwards from the Area Under a Curve, we use a process called integration. This involves finding the antiderivative of the function represented by the curve. The antiderivative is the original function that, when differentiated, gives the curve. We can then solve for any unknown constants or variables to find the specific equation.

4. What are some real-world applications of working backwards from the Area Under a Curve?

Working backwards from the Area Under a Curve has many practical applications. For example, in physics, it can be used to find the displacement, velocity, or acceleration of an object from its corresponding graph. In economics, it can be used to find the total profit or revenue from a production function. In biology, it can be used to find the total number of species in an ecosystem.

5. Are there any limitations to working backwards from the Area Under a Curve?

While working backwards from the Area Under a Curve is a powerful tool, it does have its limitations. It is not always possible to find the exact equation from a given curve, especially if the curve is complex or if the function involved is not integrable. In these cases, we may need to use approximations or other methods to estimate the original function.

Similar threads

Replies
2
Views
268
Replies
3
Views
336
Replies
2
Views
2K
  • Calculus
Replies
14
Views
1K
Replies
4
Views
1K
Replies
20
Views
2K
Replies
24
Views
2K
  • Calculus
Replies
4
Views
1K
Replies
3
Views
1K
Back
Top