My Math Forum (http://mymathforum.com/math-forums.php)
-   Physics (http://mymathforum.com/physics/)
-   -   Equation of a line (http://mymathforum.com/physics/22652-equation-line.html)

 Zilee November 16th, 2011 04:13 PM

Equation of a line

This isn't exactly a chemistry related question, but it does in the context I have to work with(The data are pressure versus volume).

I've analyzed a sample of around 15 volume's with their corresponding pressure. The document I have to fill asks me to get an approximation of the linear graph equation. Clearly getting two points and finding ax + b would be the idea here. But it states that I need to account all the points I've collected. Therefore I'm left clueless on how I could deal with finding the equation.

Here are some of the values:

Volume (ml) 1/P (kPa)
15 0.005179
20 0.006653
25 0.008244
30 0.009814
35 0.011325

So does anyone have any idea on how I should get the linear graph equation considering most points to get an average?

 mathman November 17th, 2011 01:35 PM

Re: Equation of a line

You need to do a least squares fit.
http://en.wikipedia.org/wiki/Least_squares

http://mathworld.wolfram.com/LeastSquaresFitting.html

 All times are GMT -8. The time now is 10:21 PM.