Working out the equation for coordinates on a graph

Click For Summary
SUMMARY

The discussion focuses on deriving an equation for a trend line from a set of data points using linear least-squares fitting. The user presents coordinates and seeks guidance on calculating averages and applying specific equations to determine the slope and intercept. While a linear model is suggested, the user expresses interest in exploring exponential curve fitting. The conversation highlights the necessity of using software tools like Matlab for effective data analysis and curve fitting.

PREREQUISITES
  • Understanding of linear least-squares fitting
  • Familiarity with calculating averages and statistical measures
  • Basic knowledge of curve fitting techniques
  • Experience with Matlab for data analysis
NEXT STEPS
  • Learn how to implement linear least-squares fitting in Matlab
  • Explore the use of Matlab for nonlinear regression analysis
  • Study the mathematical foundations of exponential curve fitting
  • Investigate additional graphing software options for trend analysis
USEFUL FOR

Data analysts, statisticians, and researchers looking to derive equations from data points and optimize curve fitting techniques using software tools like Matlab.

Saints-94
Messages
63
Reaction score
1
I have a series of data points for X and Y points on a graph. The data is quite random and I am trying to work out a trend line so I can then form an equation for the line. How would I go about working out the equation for the data below.
(0, 580)
(6.7, 495)
(13.4, 445)
(18.7, 365)
(22.8, 350)
(27, 340)
upload_2017-3-6_20-7-31.png
 
Physics news on Phys.org
Unless there is an underlying model that would suggest otherwise, I would consider that to be a straight line and do a linear least-square fit.
 
  • Like
Likes   Reactions: jedishrfu
I'm not sure how I can apply that to the data that I have. Where would I start with working out an equation?
 
You need to first calculate the averages, ##\bar{x}## and ##\bar{y}##. Then use eqs. (16) and (20) in the link I gave you to get ##\mathrm{ss}_{xx}## and ##\mathrm{ss}_{xy}##. You then get the slope from eq. (27) and the intercept from eq. (28).
 
I was expecting to get a trend line that looked like an exponential curve. Is it possible to work out an equation that would give me an exponential curve?
 
Saints-94 said:
I was expecting to get a trend line that looked like an exponential curve. Is it possible to work out an equation that would give me an exponential curve?
The problem with the non-linear case is that you can't get a direct answer. It becomes a multidimensional minimization problem.

The best is to use existing software to do this. Most graphing programs can do this, as well as other software such as Matlab.
 
Ok, thanks. I have the Matlab software, but am unsure how to programme my data.
 

Similar threads

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