Best Method for Calculating % Error Between Two Curves?

  • Thread starter Thread starter member 428835
  • Start date Start date
  • Tags Tags
    Curves Error
Click For Summary
The discussion centers on finding an effective method to calculate the percentage error between two curves, specifically in the context of comparing functions over a growing domain. The original poster proposes a formula involving integrals but seeks clarity on defining "% error" in this context. Participants emphasize the need to consider the curves as traces on surfaces in three dimensions, suggesting that the focus should shift to measuring the average distance between the curves rather than percentage error. The conversation reveals a misunderstanding about how the domains of the functions change over time, leading to a consensus that the average distance might be a more appropriate metric. Ultimately, the discussion highlights the complexity of comparing curves and the necessity of precise definitions in mathematical analysis.
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 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 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 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 20 ·
Replies
20
Views
4K