intuitiveai

Linear Regression

Linear Regression

Predicting continuous values using a linear relationship.

For a small example, estimate the line through (1,2), (2,3), and (3,5). Compute slope and intercept, inspect residuals, and see how one point changes the least-squares fit.

In practice

Temperature and occupancy predict daily consumption. Create leakage-safe time features, compare baseline and regularized models, inspect residual patterns, and report uncertainty.

Initializing Interactive Playground...

Experiment notes

Record your experiment

Before advancing, predict whether the line must rotate or shift to reduce the largest residuals.

Feedback & sharing

Helpful?