Ron Mak @ Apropos Logic

ron@apropos-logic.com
Publications and books by Ronald Mak

Java Number Cruncher

Program 6-2

Linear Regression

This applet demonstrates linear regression. Given n data points, it uses the least squares algorithm to generate and plot a regression line among the points.

To run the demo:

  1. Click the mouse in the graph panel to set from 2 up to 100 data points.
  2. Click the Regression line button to plot the regression line.
  3. You can add more data points and click the Regression line button again.
  4. Click the Reset button to start over.