cloudsandai

Multiple Linear Regression: An Interactive Learning Lab

Explore how multiple features combine in a linear model, see how feature scaling affects training, and fit predictions with gradient descent.

Section A

Explore the dataset

Estimate a home's price in $10,000 units using four features. Incomplete rows are ignored until all values are entered.

Area (100 sq ft)BedroomsAge (years)Commute (minutes)Price ($10k)Action

10 complete observations. Maximum $100 observations.

Section C

Try your own inputs

Enter feature values to run inference with the current model. The prediction updates as you change the inputs, model parameters, training data, or feature scaling.

Estimated price

$0.00

0.00 in $10,000 units

Contribution breakdown

  • Area (100 sq ft)0.00
  • Bedrooms0.00
  • Age (years)0.00
  • Commute (minutes)0.00
  • Bias / intercept0.00

Predictions use the current model parameters and are shown in the same units as the dataset. Train the model in the next section or adjust its parameters above to change the result.

Section D

Fit and evaluate

Ready for training. Step 0

MSE

4131.100

R squared

-11.742

Valid rows

10

Prediction breakdown

Feature contributions

Observation 1: each term shows its contribution to this prediction.

Area (100 sq ft)8.00 (z -1.14)0.00
Bedrooms2.00 (z -1.17)0.00
Age (years)12.00 (z -0.09)0.00
Commute (minutes)18.00 (z -0.07)0.00
Bias0.00
Predicted price0.00 ($10k)

Section E

Predicted versus actual

Points closer to the diagonal represent more accurate predictions.

Actual price ($10k)Predicted price ($10k)
Observations Perfect prediction
ObservationActual ($10k)Predicted ($10k)Residual
143.000.00-43.00
255.000.00-55.00
337.000.00-37.00
465.000.00-65.00
574.000.00-74.00
645.000.00-45.00
786.000.00-86.00
857.000.00-57.00
996.000.00-96.00
1059.000.00-59.00

Training history

Loss versus step

Starting MSE: 4131.100 | Current MSE: 4131.100

WhatsApp us