Click in the box above to add values and start generating the regression line.
Simple linear regression - a basic way to generate a regression line for x, y values.
See the literate source code to understand the inner workings. This demo uses d3.js for visualization. It's part of the classifiers experiments, a collection of literate statistics and related algorithms.
The r-squared algorithm also has a Literate implementation.