Linear Regression Visualizer

Interactive data science playground. Click on the plot to add points, then train to find the line of best fit using the Least Squares method.

Coordinate Plane
Click to add points (0 points)
0408004080XY
Metrics
Regression statistics
Data Points0

Train the model to see metrics

Controls
Train and manage your model

Add at least 2 points to train

How to Use

1. Click anywhere on the coordinate plane to add data points

2. Click the Train button to calculate the line of best fit

3. Use Step Mode to see the regression line adjust point-by-point

4. View the MSE (Mean Squared Error) to measure fit quality

5. Remove points or clear to start over

Algorithm Details

Uses the Least Squares method to find the optimal line of best fit by minimizing the sum of squared residuals.

MSE (Mean Squared Error) measures how well the line fits your data. Lower values indicate better fit.

Requires at least 2 points to calculate regression.