Best Method for Calculating % Error Between Two Curves?

  • Context: Graduate 
  • Thread starter Thread starter member 428835
  • Start date Start date
  • Tags Tags
    Curves Error
Click For Summary

Discussion Overview

The discussion revolves around the best method for calculating the percentage error between two curves, specifically in the context of comparing traces of surfaces defined by functions over time. Participants explore different interpretations of "% error" and seek a method that accounts for varying domains as time progresses.

Discussion Character

  • Exploratory
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant proposes a method involving a line integral to calculate the percentage error between two curves.
  • Another participant questions the definition of "% error between two curves," indicating that clarity is needed for a meaningful response.
  • A participant expresses the desire to measure how different two curves are over a domain, emphasizing the need for a domain-independent measure.
  • Concerns are raised about the nature of the data and the hypothesis being tested, suggesting that the context of the curves is crucial for analysis.
  • Clarification is sought regarding the relationship between the curves and their representation as surfaces in three dimensions, with a focus on traces at specific time points.
  • One participant suggests that the goal may be to find the average distance between the two curves rather than a percentage error, based on the mathematical formulation presented earlier.
  • Another participant notes that the proposed method may only be valid if the traces share the same concavity, indicating a potential limitation in the approach.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method for calculating the percentage error, and multiple competing views regarding the interpretation of the problem and the nature of the curves remain evident throughout the discussion.

Contextual Notes

Participants express uncertainty about the definition of "% error" and the implications of changing domains over time, highlighting the need for further clarification on these aspects.

member 428835
Hi PF!

Can anyone tell me what you think the best method is to calculate the % error between two curves?

My thoughts were to take $$100\frac{ \sqrt{\int_a^b (f-g)^2 \, dx}}{\int_s f \, ds}$$

where the integral in the denominator is a line integral. What are your thoughts? Thanks for looking!
 
Physics news on Phys.org
It is impossible to answer this question unless you specify what you mean by "% error between two curves".
 
  • Like
Likes   Reactions: jim mcnamara
I'm trying to find a good way to see how different two curves are from each other given a domain. I don't want the measure to be domain dependent, where perhaps two curves over a large domain are in fact very close to the same but since the domain is large it may appear as if both graphs are less unrelated than they actually are.

Does this clarify or am I still being too vague?
 
Are the data from a normally distributed population? Or 'what are you testing?' -- state your hypothesis and then explain the data sources. As is I cannot help either.
 
I have two curves, call them ##f(x,t)## and ##g(x,t)##. Given some point in time, call it ##t_0##, I want to see how "close" ##f(x,t_0)## and ##g(x,t_0)## are. Whatever scheme is proposed, I am hoping that scheme will account for a growing domain, because as time increases the ##x## domain expands.

Is this clear, or still poorly described?
 
joshmccraney said:
I have two curves, call them ##f(x,t)## and ##g(x,t)##. Given some point in time, call it ##t_0##, I want to see how "close" ##f(x,t_0)## and ##g(x,t_0)## are. Whatever scheme is proposed, I am hoping that scheme will account for a growing domain, because as time increases the ##x## domain expands.

Is this clear, or still poorly described?
No, not clear. The graphs of z = f(x, t) and z = g(x, t) are not curves, but are surfaces in three dimensions. If you fix t = ##t_0## you get traces (which are curves) on the two surfaces. Does that agree with what you're thinking?

I am hoping that scheme will account for a growing domain
I don't understand this part. The domains of f and g are subsets of the plane. How are the domains supposed to be changing?
 
  • Like
Likes   Reactions: jim mcnamara
Mark44 said:
No, not clear. The graphs of z = f(x, t) and z = g(x, t) are not curves, but are surfaces in three dimensions. If you fix t = ##t_0## you get traces (which are curves) on the two surfaces. Does that agree with what you're thinking?
Sorry, this is exactly what I was thinking, but obviously didn't do a great job wording it.

Mark44 said:
I don't understand this part. The domains of f and g are subsets of the plane. How are the domains supposed to be changing?
Sorry again. So as you consider different traces for different values of ##t## the domain in the ##z-x## plane apparently changes.
 
I'm starting to understand your question, which involves level curves or traces on two surfaces. Instead of talking about the "% error" it seems that what you want is the distance between the two curves. At least that's what I infer from the ##(f - g)^2## business in the integral of post #1.It looks sort of like you're trying to find the average distance between the two curves.
 
Yes, the average distance sounds like what I'm looking for. Any ideas? After talking to a friend, I believe the proposition I first posed would only be valid if the traces for ##f## and ##g## share the same concavity (otherwise the line integral in the denominator could be very large).
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K