Finding The Equations of Lines

  • Context: Undergrad 
  • Thread starter Thread starter daniel350
  • Start date Start date
  • Tags Tags
    Lines
Click For Summary
SUMMARY

To determine the equation of a line from a dataset, users can employ the least squares method, which is essential for computing the best fit line. The discussion highlights the need for a systematic approach rather than trial and error, particularly when dealing with non-linear relationships. Excel can be utilized to visualize and derive the equation of a smoothed line by enabling the trendline equation feature. The user, Daniel, seeks guidance on learning these concepts effectively.

PREREQUISITES
  • Understanding of basic algebra and linear equations
  • Familiarity with the least squares method for regression analysis
  • Basic proficiency in using Excel for data analysis
  • Knowledge of how to interpret trendlines in graphical data
NEXT STEPS
  • Research "least squares regression" for detailed computation techniques
  • Learn how to create and interpret trendlines in Excel
  • Study non-linear regression methods for complex datasets
  • Explore calculus concepts related to derivatives and slopes of curves
USEFUL FOR

Data analysts, programmers, and anyone interested in statistical modeling and data visualization will benefit from this discussion.

daniel350
Messages
13
Reaction score
0
So I'm doing some programming, and to simplify a very large amount of if statements, I've decided to put it down to a few lines with a simple equation, I've done this before with other things, but it was very much trial and error.

Therefore I'd like to see how it can be done in a more 'regulated' method. Determining the equation of a line. I'm willing to learn and spend hours reading and doing, just need to know what it is I'm looking for (calculus?).

My data
75 0 82 0 0
125 0 84 0 1
170 0 88 0 1
210 1 92 0 1
245 2 94 0 2
275 3 94 0 2
300 4 100 1 2
320 5 106 1 2
335 6 112 2 3
345 7 118 2 3
350 8 124 3 4
>350 8 130 4 5

I simply want to make an equation that relates these equations, I'm focusing firstly on the first one, which has a decrement of 5 for each iteration, the others may be easier to find.

I'm not looking for an exact solution, just some hints or tips or directions on where to learn how to do this; as they are not (at least not always) linear.

regards,

Daniel

PS: If this helps, also, is there a way to check the equation of the 'smoothed' line in EXCEL?
http://img697.imageshack.us/img697/1875/54459250.gif
 
Last edited by a moderator:
Mathematics news on Phys.org
In Excel look at the option tap of the trend line menu, check the box to show the equation.


Do a wiki search on "least squares" for the computations necessary to compute the equation of the best fit line.
 
Thanks!
 

Similar threads

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