- a developer's blog

Line of Best Fit Calculator + Trend Line Graphing Tool

Enter one data set in the format x,y per line:

For example:

Line of Best Fit :(y=a+bx)

About Linear Regression and Trend Line

Formulating a equation for the line of best fit for two sets of variables allows us describe a relationship between the two variables expressed in the form of a linear equation of the form.

y = a+bx

The most common method for this approximation is the least square method, where:


This enables forecasting values of dependent variable(y) in terms of the independent variable(x).

Authors note: I built this tool for personal educational use when my sweet old TI calculator went dead. Bug report, feedback, suggestion for improvement or request for free tools of similar kind may be made through my contact page. If you like it share it :)