ML
    beginner

    Linear Regression

    algorithms.live

    Linear Regression

    Learn how machines find the best line through data using gradient descent
    Slope (m)
    0.500
    Intercept (b)
    2.000
    Learning Rate
    0.010

    Try 0.001 (slow), 0.01 (steady), or 0.05 (fast). Too high may cause the loss to oscillate.

    0.6302
    MSE Loss
    0
    Epochs
    RMSE:0.794
    MAE:0.670
    xy
    Data pointsRegression linePrediction errors
    Current Model
    y=0.500x+2.000y = 0.500x + 2.000
    Mean Squared Error: 0.6302

    Fit a line

    Sequence

    Order how ordinary least squares reaches a fit.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    1. 1Drop a step here
    2. 2Drop a step here
    3. 3Drop a step here
    4. 4Drop a step here
    5. 5Drop a step here
    5 pieces left to place

    Test your knowledge

    22 questions
    Question 1 of 22
    Score: 0

    What method is commonly used to find the best fit line?

    Interview Questions

    Google
    Amazon
    Facebook
    Netflix
    Uber

    Love this visualization?

    Sign up to track your progress, earn achievements, use the AI assistant, and access your personal learning dashboard.

    100% free • No credit card required