Linear Regression is a program that accepts up to 1,000 ( X, Y ) coordinate pairs, plots these pairs, and calculates and plots the linear regression for the best straight line fit. The program will also tell you when the line has an infinite slope.
Tips for using this program:
When you want to add a data point, type the data point in the text field and press add, the program will automatically display your point on the graph as well as in text.
When you want to clear your data, press the clear button and start all over again!
If you want to learn the math behind the program read the following:
Even though many types of phenomena obey a linear relationship
y = A x + B
data taken in the real world and plotted on a sheet of graph paper will not lie along a perfect straight line. The task of finding the best straight line is called linear regression. Assume you have a set of data,
(x1,y1), (x2,y2), (x3,y3), (x4,y4) .... (xN,yN),
that you feel fairly certain obeys a linear relationship. You can find the slope, A, and intercept, B, of the best fit from the following formulas:
| Sx = SiN ( xi ) | Sy = SiN ( yi ) |
| Sxx = SiN ( xi * xi ) | Sxy = SiN ( xi * yi ) |
| A
= (N * Sxy - Sx * Sy) / (N * Sxx - Sx* Sx) |
B = Sy / N - A * Sx / N |
To get Documentation for the program, click on the following link:
I want to go back home