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.
Train the model to see metrics
Add at least 2 points to train
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
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.