This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: You may do it manually or use a software or your calculator. You may learn about least squares method by reading about it in one of your math texts or on the web. If you have never done this before in a class you can read about it under Least Squares on Wikipedia.org. Here is how it works. If you have a set of N x and y values and want to fit a line y=mx+b you do the following. Calculate the sum of all x, S x =x 1 +x 2 +x 3 +x N Calculate the sum of all y, S y =y 1 + 2 +y 3 +y N Calculate the sum of all x 2 , S xx =x 1 2 + x 2 2 + x 3 2 + x N 2 Calculate the sum of all xy, S xy =x 1 y 1 + x 2 y 2 + x 3 y 3 + x N y N Slope is xy x y xx x x NS S S m NS S S = and the intercept is y x S mS b N = . Most of your calculators and programs like excel use these formulas to do linear regression....
View Full
Document
 Spring '08
 Staff

Click to edit the document details