This program 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:
- Click the mouse in the graph panel to set from 2 up to 100 data points.
- Click the Regression line button to plot the regression line.
- You can add more data points and click the Regression line button again.
- Click the Reset button to start over.
The original Java Applets do not run in modern browsers, but you can download the Java code and run it locally on your desktop. Check back for JavaScript and Python versions - coming soon!