# How To Find "n" For Method Of Least Squares?

• Apr 6th 2010, 08:17 PM
AlphaRock
How To Find "n" For Method Of Least Squares?
If you're given ANY set of points, how do you find n?

In method of least squares, the formulas are:
m(sum(xi^2)) + b(sum(xi)) = sum(xi * yi)
m(sum(xi)) + nb = sum(yi)

For example, how would you find n to do the method of least squares, if you're given these set of points?

Eg.
If you're given:
(-3, 0.3)
(-1, -1.1)
(1, -1.9)
(3, -3.2)
(5, -3.7)

is n delta x? or the number of x terms? etc. how do you find n?
• Apr 6th 2010, 11:49 PM
Opalg
Quote:

Originally Posted by AlphaRock
If you're given ANY set of points, how do you find n?

In method of least squares, the formulas are:
m(sum(xi^2)) + b(sum(xi)) = sum(xi * yi)
m(sum(xi)) + nb = sum(yi)

For example, how would you find n to do the method of least squares, if you're given these set of points?

Eg.
If you're given:
(-3, 0.3)
(-1, -1.1)
(1, -1.9)
(3, -3.2)
(5, -3.7)

is n delta x? or the number of x terms? etc. how do you find n?

n is the number of points, in this case n = 5.