Creating equation out of 5 point or more from graph plot.

  • Context: Undergrad 
  • Thread starter Thread starter David Roger
  • Start date Start date
  • Tags Tags
    Graph Plot Point
Click For Summary

Discussion Overview

The discussion revolves around finding an equation for a graph line based on five given points, with the line being non-linear. Participants explore various methods for deriving equations, including polynomial fitting and least squares approaches, while considering the implications of these methods for extrapolation and accuracy.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants suggest using a fourth degree polynomial to fit the five points, noting that this would allow for an exact fit but may not be useful for extrapolation.
  • Others propose drawing a straight line or using least squares fitting to approximate the points, emphasizing that these methods may not pass through all points.
  • One participant highlights the challenge of finding a non-linear curve from the five points and questions the utility of various fitting techniques.
  • There is a suggestion to clarify the project's requirements and the specific problem being addressed to better determine the appropriate method for finding the equation.
  • Another participant mentions that using least squares for an nth order polynomial may not be beneficial if the desired 6th point lies outside the range of the given points.
  • Basic linear equation methods are referenced, but their relevance to the overall problem is questioned.

Areas of Agreement / Disagreement

Participants express differing opinions on the best approach to derive an equation from the points, with no consensus on a single method being established. The discussion remains unresolved regarding the most effective technique for this scenario.

Contextual Notes

Participants note that the choice of method may depend on the specific context of the project and the importance of accuracy, indicating that assumptions about the data and its application are significant factors in the discussion.

David Roger
Messages
2
Reaction score
0
Hi,

I need to find the 6th point of a graph line. The line is not totally straight.

Is there step I can take to find the equation from the 5 point alone?
 
Physics news on Phys.org
Depends on what exactly you want.
You can always draw a fourth degree polynomial through the five points (i.e. determine a, b, c, d, e in y = ax4 + bx3 + cx2 + dx + e).
Or you can draw a straight line that doesn't go through all the points but comes as close to them as possible (e.g. do a least square fit).
Or you can just write down some ugly (non-differentiable) function going through the five points.
 
I have Point 1 (1103, 7093.16702) and Point 2 (1104, 20553.56911).

How do I ever determine the equation correctly?
 
Again, which equation do you want?
You can draw straight lines between each pair of points but that will give you a very "edgy" graph. You can find a smooth polynomial through the points, but that will not be of much use if you want to, say, extrapolate the data.
Or you can do a fit of a straight line (or other function) which will be of use for extrapolating, but then the given points will not necessarily be on the line.
 
David Roger said:
I have Point 1 (1103, 7093.16702) and Point 2 (1104, 20553.56911).

How do I ever determine the equation correctly?

Well, you can determine a straight line that passes through these two points pretty easily, but unfortunately, the techniques involved in that won't really help you here, where you're trying to find a non-linear curve from 5 points. You can find a 4th order polynomial that will exactly touch all five of your points, but a lot of times (like CompuChip said) this will be useless for extrapolating, because it will tend to oscillate between the points and then shoot off into space on both ends. Unfortunately, curve fitting is not as easy as it seems like it should be.

To help you answer this, more information is needed:
-what's the project that this is for? (how important is accuracy?)
-what exactly is the problem you're solving? (is there some known formula that you would expect to describe your results?)
 
Could try using least squares to give you an nth order polynomial but if that 6th point isn't between your first and last ones then it won't really help (not that it'd help much if it wasn't)
Also, to get the line between point 1 and 2 it's just the basic
y = m x + c
y = (delta x/delta y)x + c

don't see how much use that would be to you though
 

Similar threads

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