Machine Learning

Linear Regression Visualizer

Predict the value of a dependent variable based on an independent variable using the Least Squares method and Gradient Descent.

Click on the canvas to add custom data points.

📜 Learning Equation

y = 0x + 0

Ready. Add points and click 'Train' to see the line learn.

📉 Loss (MSE)

0.0000

Goal: Minimize the Mean Squared Error.

💡 How it works

1. Start with random m (slope) and c (intercept).

2. Calculate the Loss (difference between line and points).

3. Use Gradient Descent to nudge m and c in the direction that reduces error.